NFT standard API document

Main

Get all NFT assets

Get all NFT assets by user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/main/nft

  • Param: { user_address:"" }

  • Return Data: { "code": 200, "data": { "nfts1155": [ { "id": 10525, # primary key in mysql "contract_addr": "0x060Dd632f7Dd45cb97A86376863D623d6756e848", "token_type": "1155", "token_id": "9400", "owner_addr": "0xC0c648e8a51Fa89141b2ff297C8cD3270ab93576", "balance": "0", "token_uri": "", "name": null, # if metadata formate comform to the Ethereum Improvement Proposals,it will have data. "description": null, # if metadata formate comform to the Ethereum Improvement Proposals,it will have data. "image": null, # if metadata formate comform to the Ethereum Improvement Proposals,it will have data. "metadata": null # if metadata formate don't comform to the Ethereum Improvement Proposals,it will be data of token uri. } ], "nfts721": [ { "id": 30, "contract_addr": "0xc014B45D680B5a4bf51cCdA778A68d5251C14b5E", "token_type": "721", "token_id": "478", "owner_addr": "0x58e6e6e16a8fd619b6de1da4f614dfb31dcc07b2", "balance": "1", "token_uri": "ipfs://ipfs/QmS3hmJqpHpvnCocqv9FTZbcSGDnvuFv4qWY3qnwkMpB9x", "name": null, "description": null, "image": null, "metadata": { "image": "https://d3ggs2vjn5heyw.cloudfront.net/images/Green.png", "name": "Frosty snowflakes" } } ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/main/nft?user_address=0xC0c648e8a51Fa89141b2ff297C8cD3270ab93576

Get 721 NFT assets

Get 721 NFT assets by contract address and user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/main/erc721

  • Param: { user_address:"", contract_address:"" }

  • Return Data: { "code": 200, "data": { "balance": 6, "tokens": [ { "id": 30, "contract_addr": "0xc014B45D680B5a4bf51cCdA778A68d5251C14b5E", "token_id": "478", "owner_addr": "0x58e6e6e16a8fd619b6de1da4f614dfb31dcc07b2", "token_uri": "ipfs://ipfs/QmS3hmJqpHpvnCocqv9FTZbcSGDnvuFv4qWY3qnwkMpB9x" } ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/main/erc721?user_address=0x58e6e6e16a8fd619b6de1da4f614dfb31dcc07b2&contract_address=0xc014B45D680B5a4bf51cCdA778A68d5251C14b5E

Get 1155 nft assets

Get 1155 nft assets by contract address and user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/main/erc1155

  • Param: { user_address:"", contract_address:"" }

  • Return Data: { "code": 200, "data": { "tokens": [ { "id": 40, "contract_addr": "0x060Dd632f7Dd45cb97A86376863D623d6756e848", "token_id": "24020", "owner_addr": "0x7E9DB30F47c60F4A885803ED1F222302Eb77b443", "balance": "1", "token_uri": "" }, { "id": 38, "contract_addr": "0x060Dd632f7Dd45cb97A86376863D623d6756e848", "token_id": "31141", "owner_addr": "0x7E9DB30F47c60F4A885803ED1F222302Eb77b443", "balance": "1", "token_uri": "" } ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/main/erc1155?user_address=0x7E9DB30F47c60F4A885803ED1F222302Eb77b443&contract_address=0x060Dd632f7Dd45cb97A86376863D623d6756e848

Get 721 contract metadata

Get 721 contract metadata by contract address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/main/metadata/erc721

  • Param: { limit:0, contract_address:"" }

  • Return Data: { "code": 200, "data": { "1": { "description": "An irreplaceable girl.", "image": "https://shalomhu.github.io/bounce/NFT/images/img_01.jpg", "name": "Cindy Yi" }, "2": { "description": "An irreplaceable girl.", "image": "https://shalomhu.github.io/bounce/NFT/images/img_01.jpg", "name": "Cindy Yi" } }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/main/metadata/erc721?limit=0&contract_address=0xf6C3Aa70f29B64BA74dd6Abe6728cf8e190011b5

Get 1155 contract metadata

Get 1155 nft assets by contract address and user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/main/metadata/erc1155

  • Param: { limit:0, contract_address:"" }

  • Return Data: { "code": 200, "data": { "1": { "description": "Binance Dancing Man is a happy NFT designed and created by the Frontier team and minted by the Bounce Finance team in accordance with their proposed Binance Smart Chain NFT standards. This NFT represents happiness, dancing, and never-ending energy.", "image": "https://raw.githubusercontent.com/superzitao/NFT/main/18-prod_1.gif", "name": "Binance x Frontier Dancing Man" } }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/main/metadata/erc1155?limit=0&contract_address=0x0111463A17C8E8331C245326D821a04862738362

Get contract token id list

Get contract token id list by contract address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/main/contract

  • Param: { nft_address:"" }

  • Return Data: { "code": 200, "data": { "tokens": [ { "contract_addr": "0x217C0bda1b20Aa4860ef78519AD684DA97B7f449", "token_id": "1", "owner_addr": "0x7a1ba322a280f4862bfa155da2ad56673cb5f8b2", "balance": "1" }, ... ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/main/contract?nft_address=0x217C0bda1b20Aa4860ef78519AD684DA97B7f449

BSC

Get all nft assets

Get all nft assets by user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/bsc/nft

  • Param: { user_address:"" }

  • Return Data: { "code": 200, "data": { "nfts1155": [ { "id": 10525, "contract_addr": "0x060Dd632f7Dd45cb97A86376863D623d6756e848", "token_type": "1155", "token_id": "9400", "owner_addr": "0xC0c648e8a51Fa89141b2ff297C8cD3270ab93576", "balance": "0", "token_uri": "", "name": null, "description": null, "image": null, "metadata": null } ], "nfts721": [ { "id": 30, "contract_addr": "0xc014B45D680B5a4bf51cCdA778A68d5251C14b5E", "token_type": "721", "token_id": "478", "owner_addr": "0x58e6e6e16a8fd619b6de1da4f614dfb31dcc07b2", "balance": "1", "token_uri": "ipfs://ipfs/QmS3hmJqpHpvnCocqv9FTZbcSGDnvuFv4qWY3qnwkMpB9x", "name": null, "description": null, "image": null, "metadata": { "image": "https://d3ggs2vjn5heyw.cloudfront.net/images/Green.png", "name": "Frosty snowflakes" } } ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/bsc/nft?user_address=0xC0c648e8a51Fa89141b2ff297C8cD3270ab93576

Get 721 nft assets

Get 721 nft assets by contract address and user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/bsc/erc721

  • Param: { user_address:"", contract_address:"" }

  • Return Data: { "code": 200, "data": { "balance": 6, "tokens": [ { "id": 30, "contract_addr": "0xc014B45D680B5a4bf51cCdA778A68d5251C14b5E", "token_id": "478", "owner_addr": "0x58e6e6e16a8fd619b6de1da4f614dfb31dcc07b2", "token_uri": "ipfs://ipfs/QmS3hmJqpHpvnCocqv9FTZbcSGDnvuFv4qWY3qnwkMpB9x" } ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/bsc/erc721?user_address=0x58e6e6e16a8fd619b6de1da4f614dfb31dcc07b2&contract_address=0xc014B45D680B5a4bf51cCdA778A68d5251C14b5E

Get 1155 nft assets

Get 1155 nft assets by contract address and user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/bsc/erc1155

  • Param: { user_address:"", contract_address:"" }

  • Return Data: { "code": 200, "data": { "tokens": [ { "id": 40, "contract_addr": "0x060Dd632f7Dd45cb97A86376863D623d6756e848", "token_id": "24020", "owner_addr": "0x7E9DB30F47c60F4A885803ED1F222302Eb77b443", "balance": "1", "token_uri": "" }, { "id": 38, "contract_addr": "0x060Dd632f7Dd45cb97A86376863D623d6756e848", "token_id": "31141", "owner_addr": "0x7E9DB30F47c60F4A885803ED1F222302Eb77b443", "balance": "1", "token_uri": "" } ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/bsc/erc1155?user_address=0x7E9DB30F47c60F4A885803ED1F222302Eb77b443&contract_address=0x060Dd632f7Dd45cb97A86376863D623d6756e848

Get 721 contract metadata

Get 721 contract metadata by contract address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/bsc/metadata/erc721

  • Param: { limit:0, contract_address:"" }

  • Return Data: { "code": 200, "data": { "1": { "description": "An irreplaceable girl.", "image": "https://shalomhu.github.io/bounce/NFT/images/img_01.jpg", "name": "Cindy Yi" }, "2": { "description": "An irreplaceable girl.", "image": "https://shalomhu.github.io/bounce/NFT/images/img_01.jpg", "name": "Cindy Yi" } }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/bsc/metadata/erc721?limit=0&contract_address=0xf6C3Aa70f29B64BA74dd6Abe6728cf8e190011b5

Get 1155 contract metadata

Get 1155 nft assets by contract address and user address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/bsc/metadata/erc1155

  • Param: { limit:0, contract_address:"" }

  • Return Data: { "code": 200, "data": { "1": { "description": "Binance Dancing Man is a happy NFT designed and created by the Frontier team and minted by the Bounce Finance team in accordance with their proposed Binance Smart Chain NFT standards. This NFT represents happiness, dancing, and never-ending energy.", "image": "https://raw.githubusercontent.com/superzitao/NFT/main/18-prod_1.gif", "name": "Binance x Frontier Dancing Man" } }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/bsc/metadata/erc1155?limit=0&contract_address=0x0111463A17C8E8331C245326D821a04862738362

Get contract data for testing

Get contract data by contract address

  • http method: GET

  • URL: https://nftview.bounce.finance/v2/bsc/contract

  • Param: { nft_address:"" }

  • Return Data: { "code": 200, "data": { "tokens": [ { "contract_addr": "0x217C0bda1b20Aa4860ef78519AD684DA97B7f449", "token_id": "1", "owner_addr": "0x7a1ba322a280f4862bfa155da2ad56673cb5f8b2", "balance": "1" }, ... ] }, "msg": "ok" } Example: https://nftview.bounce.finance/v2/bsc/contract?nft_address=0x217C0bda1b20Aa4860ef78519AD684DA97B7f449

Last updated

©2023 Bounce dao Ltd. All rights reserved.