Wallet Balance
This API endpoint allows clients to check if a specific Non-Fungible Token (NFT) is present within a wallet. This can be useful for scenarios like token gating, where access to specific resources or features is controlled based on token ownership.
Endpoint Details
Headers
Content-Type
application/json
x-api-key
API_KEY
Query Parameters
contractId
string, required
Identifier for the contract, formatted as contract_<UUID>
nftTokenId
string, required
Identifier for the NFT.
User can be identified by one of the parameter:
walletAddress
string, optional
Address
walletId
string, optional
Wallet ID (wallet_UUID)
string, optional
Wallet email
phone
string, optional
Wallet phone, format: "+!2223334444"
Response format
result: {
value: number, // 0,1,...
transactionStatus?: string // "pending" or "complete"
} | error? : IResponseErrorSuccess response
{
"result": {
"value": 3,
"transactionStatus": "finished"
}
}Error messages
More than one user ID is defined.
{ "code: 400, "message": "Validation error: \"value\" must contain at least one of [email, phone, walletId, walletAddress]" }
Contracts not found
{ "code: 400, "message": "Contracts not found" }
User wallet not found
{ "code: 400, "message": "User wallet not found" }
Examples
Last updated
Was this helpful?