Query nft authorized list by chain name and user address

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

  • Path: https://api.blockin.ai/v2/user/nft_authorized_list

  • Description:Query nft authorized list by chain name and user address

Request Header

Parameter
Required
Type
Description

Content-Type

Y

String

application/json

AccessKey

Y

String

1bdb01c947c54919b64d1fc6794atest

Request Parameters

Parameter
Required
Type
Description

chain_name

Y

String

Chain's name,support single chain's name.eg:eth,Ethereum. Enumeration

address

Y

String

User's address

Response

Public Response

Parameter
Required
Type
Description

success

Y

Boolean

Success Boolean

data

N

List

Response list

error_code

N

String

Error code

error_msg

N

String

Error message

Data Content

Parameter
Required
Type
Description

items

N

List

Approved ERC721 token list ๏ผˆapprove single nft token๏ผ‰

contracts

N

List

Approved contract list (approve all)

total

N

String

The amount of user nft tokens

Items Content

Parameter
Required
Type
Description

contract_address

N

String

Contract address

item_id

N

String

Nft's index index

chain_name

N

String

Chain name.

name

N

String

Nft's name.

symbol

N

String

Contract's symbol.

total_supply

N

BigDecimal

Total supply.

description

N

String

Description

content_type

N

String

Content type, eg. image_url

content

N

String

Content

detail_url

N

String

Detail url

contract_name

N

String

Contract's name

is_erc1155

N

Boolean

Is erc1155, default is empty

is_erc721

N

Boolean

Is erc721, default is empty

amount

N

BigDecimal

Approved amount

spender

N

Object

Approved spender

Spenders Content

Parameter
Required
Type
Description

address

N

String

Spender's address

protocol

N

Object

Spender's protocol info

Protocol Content

Parameter
Required
Type
Description

project_name

N

String

Project's name

protocol_name

N

String

Protocol name

logo_url

N

String

Protocol logo

chain_name

N

String

Chain name

Contracts Content

Parameter
Required
Type
Description

chain_name

N

String

Chain name

contract_name

N

String

Contract's name

contract_address

N

String

Contract's address

collection

N

Object

Collection info

is_erc1155

N

Boolean

Is erc1155, default is empty

is_erc721

N

Boolean

Is erc721, default is empty

amount

N

Boolean

Approved amount

spender

N

Object

Approved spender

Collection Info

Parameter
Required
Type
Description

chain_name

N

String

Chain name

contract_address

N

String

The contract address

name

N

String

Collection's name

description

N

String

Description

logo_url

N

String

URL of the collection's logo image

supply

N

BigDecimal

Supply

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" "https://api.blockin.ai/v2/user/nft_authorized_listarrow-up-right?chain_name=eth&address=0xc57f1148855e67763a694f7f2c0e68230adc686e

Successful Response Sample

Last updated