How to get the user wallet

An NFT wallet is a special kind of wallet that avails you to store and manage your NFTs. These wallets allow you to hold your NFTs securely and access it anywhere. You can also use the wallet to send, receive, and trade your digital assets.

Get user wallet address

/nft/wallet API is used to retrieve the wallet address of the user. This API uses wallet parameters as a required field and returns the details of the wallet including the address.

  • token - The API Authentication token
  • wallet - The ID of the wallet
curl \ 
 --request GET 'https://api.nft.kred/nft/wallet?token=YourTokenValue&wallet=131497' \
 --header 'Accept: application/json'
import requests

url = "https://api.nft.kred/nft/wallet?token=YourTokenValue&wallet=131497"

payload={}
headers = {
  'Accept': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Sample Response

"wallet": {
        "address": "0x3e90Bc4b1883c916Bb8E7AF1dEDCce36A2c1Fc2d",
        "balances": [
            {
                "amount": 1e-07,
                "created": "2021-10-11T07:27:29.000000",
                "currency": 1,
                "minted_amount": 200.0000076,
                "minted_coins": 78,
                "nfts": 1,
                "unminted_amount": 0.0,
                "unminted_balances": 0,
                "updated": "2022-04-18T04:04:08.000000",
                "wallet": 131497
            }
        ],
        "created": "2021-10-05T09:05:45.000000",
        "default": 0,
        "deleted": null,
        "ens_pending": null,
        "managed": 1,
        "name": "Kred Wallet",
        "platform": "ethereum",
        "reclaimed": null,
        "status": "active",
        "updated": null,
        "user": "615c1567e9b6cca632112de6",
        "uuid": "vdchsoucdzferfvkypw35jhxna",
        "wallet": 131497
    }

How to get a list of wallets

There are many cases where users want to store their NFTs on multiple wallets. NFT.Kred application support multiple wallets including “Dapper”, “MetaMask”, “Coinbase” and Stripe, Users can connect these wallets and may hold their NFTs securely.

/nft/wallets API is used to retrieve the list of user wallets. This API uses user tokens and in return provides the list of their connected wallets.

  • token - The API Authentication token
  • count - Number of results to return
  • page - Number of results to return
curl \ 
 --request GET 'https://api.nft.kred/nft/wallets?token=YourTokenValue' \
 --header 'Accept: application/json'
import requests

url = "https://api.nft.kred/nft/wallets?token=YourTokenValue"

headers = {
  'Accept': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Sample Response

"wallets": [
        {
            "address": "0x3e90Bc4b1883c916Bb8E7AF1dEDCce36A2c1Fc2d",
            "balances": [
                {
                    "amount": 1e-07,
                    "created": "2021-10-11T07:27:29.000000",
                    "currency": 1,
                    "minted": 200.0000076,
                    "minted_amount": 200.0000076,
                    "minted_coins": 78,
                    "nfts": 1,
                    "unminted": 0.0,
                    "unminted_amount": 0.0,
                    "unminted_balances": 1,
                    "updated": "2022-04-18T04:04:08.000000",
                    "wallet": 131497
                }
            ],
            "name": "Kred Wallet",
            "platform": "ethereum",
            "status": "active",
            "user": "615c1567e9b6cca632112de6",
            "uuid": "vdchsoucdzferfvkypw35jhxna",
            "wallet": 131497
        },
        {
            "address": "0x88db99442474a3a92fc2d4a5a2169e621879492b",
            "balances": [
                {
                    "amount": 0.0,
                    "created": "2022-01-10T05:19:56.000000",
                    "currency": 1,
                    "minted": 0.0,
                    "minted_amount": 0.0,
                    "minted_coins": 0,
                    "nfts": 0,
                    "unminted": 0.0,
                    "unminted_amount": 0.0,
                    "unminted_balances": 1,
                    "updated": null,
                    "wallet": 623310
                }
            ],
            "name": "metamask 9492b",
            "platform": "ethereum",
            "status": "active",
            "user": "615c1567e9b6cca632112de6",
            "uuid": "sf63txvy6bdtjm74ythmd5r4fi",
            "wallet": 623310
        }
    ]