Wallets

Check token ownership requirements

Check if a wallet address meets token ownership requirements.

POSThttps://picketapi.com/api/v1/chains/{chain}/wallets/{walletAddress}/tokenOwnership
Path parameters
chain*string
Example: "ethereum"
walletAddress*string
Body
contractAddressstring

The address of the ERC-20, ERC-721, or ERC-1155 contract

tokenIdsarray of string

A list of SPL token IDs

collectionstring

The SPL token Metaplex collection ID

creatorAddressstring

A verified creator of the SPL tokens

minTokenBalancestring

The minimum number of tokens for the given contract that is required

Response

Successful response

Body
allowed*boolean
tokenBalancestring
Request
const response = await fetch('https://picketapi.com/api/v1/chains/{chain}/wallets/{walletAddress}/tokenOwnership', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "allowed": false,
  "tokenBalance": "text"
}

Last updated