- Get all token contracts
Retrieve all token contracts for the project. Only admins can access inactive tokens via ?active=false parameter. Use pagination parameters (page & limit) for optimal performance. Legacy support: returns array without params (deprecated - will be removed in future).
- Mock serverhttps://docs.pers.ninja/_mock/swagger/tokens
- https://api.pers.ninja/v2https://api.pers.ninja/v2/tokens
curl -i -X GET \
'https://docs.pers.ninja/_mock/swagger/tokens?active=string&tokenTypes=string&contractAddresses=string&page=string&limit=string' \
-H 'x-project-key: YOUR_API_KEY_HERE'Tokens retrieved successfully
Token metadata templates - blueprints used when minting NFTs. Each template defines properties (name, image, expiry) and has a unique tokenMetadataIncrementalId. Null for ERC20 (Points) tokens.
this is the abi of the contract, this is the interface of the contract to interact with it
this is the url of the abi of the contract, to be used to fetch the abi of the contract
this is the decimals of the token. This is optional and only used for ERC20 tokens (Points)
This is the underlying web3 native type of the token contract
[ { "id": "string", "contractAddress": "string", "metadata": [ … ], "abi": {}, "chainId": 0, "abiUrl": "string", "name": "string", "symbol": "string", "decimals": 0, "isActive": true, "isGallery": true, "type": "ERC20", "stampToken": false } ]