metadata

AddContractsToTokenDirectory

SecurityApiKeyAuth
Request
Request Body schema: application/json
Array of objects (ContractInfo)

[]ContractInfo

featureIndexes
Array of numbers

[]uint8

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Admin/AddContractsToTokenDirectory
Request samples
application/json
{
  • "contracts": [
    ],
  • "featureIndexes": [
    ]
}
Response samples
application/json
{
  • "ok": true
}

GetFeatureIndex

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainHandle
string
contractAddress
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Admin/GetFeatureIndex
Request samples
application/json
{
  • "chainHandle": "string",
  • "contractAddress": "string"
}
Response samples
application/json
{
  • "featured": 0
}

ListTokenDirectory

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
number
includeTestnets
boolean
onlyFeatured
boolean
object (Page)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Admin/ListTokenDirectory
Request samples
application/json
{
  • "chainID": 0,
  • "includeTestnets": true,
  • "onlyFeatured": true,
  • "page": {
    }
}
Response samples
application/json
{
  • "collections": [
    ],
  • "page": {
    }
}

ModifyFeatureIndex

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainHandle
string
contractAddress
string
featured
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Admin/ModifyFeatureIndex
Request samples
application/json
{
  • "chainHandle": "string",
  • "contractAddress": "string",
  • "featured": 0
}
Response samples
application/json
{
  • "ok": true
}

RemoveContractsFromTokenDirectory

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainHandle
string
contracts
Array of strings

[]string

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Admin/RemoveContractsFromTokenDirectory
Request samples
application/json
{
  • "chainHandle": "string",
  • "contracts": [
    ]
}
Response samples
application/json
{
  • "ok": true
}

CreateAsset

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Asset)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/CreateAsset
Request samples
application/json
{
  • "asset": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "asset": {
    }
}

CreateCollection

NOTE: projectID is optional. If it's passed it will be used, otherwise the projectID will be retrieved based on the X-Access-Key. As well, user's still need to pass Authorization header for the user's auth. For more information see: https://github.com/0xsequence/builder/tree/master/api#sequence-stack-and-user-project-permissions

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Collection)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/CreateCollection
Request samples
application/json
{
  • "collection": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "collection": {
    }
}

CreateContractCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (ContractCollection)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/CreateContractCollection
Request samples
application/json
{
  • "contractCollection": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "contractCollection": {
    }
}

CreateToken

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
private
boolean
projectId
number
object (TokenMetadata)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/CreateToken
Request samples
application/json
{
  • "collectionId": 0,
  • "private": true,
  • "projectId": 0,
  • "token": {
    }
}
Response samples
application/json
{
  • "assets": [
    ],
  • "token": {
    }
}

DeleteAsset

SecurityApiKeyAuth
Request
Request Body schema: application/json
assetId
number
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/DeleteAsset
Request samples
application/json
{
  • "assetId": 0,
  • "projectId": 0
}
Response samples
application/json
{
  • "status": true
}

DeleteCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/DeleteCollection
Request samples
application/json
{
  • "collectionId": 0,
  • "projectId": 0
}
Response samples
application/json
{
  • "status": true
}

DeleteContractCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainId
number
contractAddress
string
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/DeleteContractCollection
Request samples
application/json
{
  • "chainId": 0,
  • "contractAddress": "string",
  • "projectId": 0
}
Response samples
application/json
{
  • "ok": true
}

DeleteToken

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
projectId
number
tokenId
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/DeleteToken
Request samples
application/json
{
  • "collectionId": 0,
  • "projectId": 0,
  • "tokenId": "string"
}
Response samples
application/json
{
  • "status": true
}

GetAsset

SecurityApiKeyAuth
Request
Request Body schema: application/json
assetId
number
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/GetAsset
Request samples
application/json
{
  • "assetId": 0,
  • "projectId": 0
}
Response samples
application/json
{
  • "asset": {
    }
}

GetCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/GetCollection
Request samples
application/json
{
  • "collectionId": 0,
  • "projectId": 0
}
Response samples
application/json
{
  • "collection": {
    }
}

GetContractCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainId
number
contractAddress
string
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/GetContractCollection
Request samples
application/json
{
  • "chainId": 0,
  • "contractAddress": "string",
  • "projectId": 0
}
Response samples
application/json
{
  • "contractCollection": {
    }
}

GetToken

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
projectId
number
tokenId
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/GetToken
Request samples
application/json
{
  • "collectionId": 0,
  • "projectId": 0,
  • "tokenId": "string"
}
Response samples
application/json
{
  • "assets": [
    ],
  • "token": {
    }
}

ListCollections

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Page)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/ListCollections
Request samples
application/json
{
  • "page": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "collections": [
    ],
  • "page": {
    }
}

ListContractCollections

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
object (Page)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/ListContractCollections
Request samples
application/json
{
  • "collectionId": 0,
  • "page": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "contractCollections": [
    ],
  • "page": {
    }
}

ListTokens

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
object (Page)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/ListTokens
Request samples
application/json
{
  • "collectionId": 0,
  • "page": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "page": {
    },
  • "tokens": [
    ]
}

PublishCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
projectId
number
recursive
boolean
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/PublishCollection
Request samples
application/json
{
  • "collectionId": 0,
  • "projectId": 0,
  • "recursive": true
}
Response samples
application/json
{
  • "collection": {
    }
}

UnpublishCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/UnpublishCollection
Request samples
application/json
{
  • "collectionId": 0,
  • "projectId": 0
}
Response samples
application/json
{
  • "collection": {
    }
}

UpdateAsset

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Asset)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/UpdateAsset
Request samples
application/json
{
  • "asset": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "asset": {
    }
}

UpdateCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Collection)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/UpdateCollection
Request samples
application/json
{
  • "collection": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "collection": {
    }
}

UpdateContractCollection

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (ContractCollection)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/UpdateContractCollection
Request samples
application/json
{
  • "contractCollection": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "ok": true
}

UpdateToken

SecurityApiKeyAuth
Request
Request Body schema: application/json
collectionId
number
private
boolean
projectId
number
object (TokenMetadata)
tokenId
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Collections/UpdateToken
Request samples
application/json
{
  • "collectionId": 0,
  • "private": true,
  • "projectId": 0,
  • "token": {
    },
  • "tokenId": "string"
}
Response samples
application/json
{
  • "token": {
    }
}

AbortContractSync

SecurityApiKeyAuth
Request
Request Body schema: application/json
taskID
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/AbortContractSync
Request samples
application/json
{
  • "taskID": 0
}
Response samples
application/json
{
  • "ok": true
}

AddContractToMintMonitor

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/AddContractToMintMonitor
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string"
}
Response samples
application/json
{
  • "ok": true
}

CancelRefreshJob

SecurityApiKeyAuth
Request
Request Body schema: application/json
taskId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/CancelRefreshJob
Request samples
application/json
{
  • "taskId": 0
}
Response samples
application/json
{
  • "ok": true
}

ContractSyncJobStatus

SecurityApiKeyAuth
Request
Request Body schema: application/json
taskID
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/ContractSyncJobStatus
Request samples
application/json
{
  • "taskID": 0
}
Response samples
application/json
{
  • "refreshTask": {
    },
  • "syncTask": {
    }
}

DirectoryGetCollections

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainId
number
includeTestnets
boolean
onlyFeatured
boolean
object (Page)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/DirectoryGetCollections
Request samples
application/json
{
  • "chainId": 0,
  • "includeTestnets": true,
  • "onlyFeatured": true,
  • "page": {
    }
}
Response samples
application/json
{
  • "collections": [
    ],
  • "page": {
    }
}

DirectoryGetNetworks

Token Directory. NOTE: this only searches the 'token-directory' items. Use 'SearchContracts' or 'SearchTokens' for everything else.

SecurityApiKeyAuth
Request
Request Body schema: application/json
includeTestnets
boolean
onlyFeatured
boolean
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/DirectoryGetNetworks
Request samples
application/json
{
  • "includeTestnets": true,
  • "onlyFeatured": true
}
Response samples
application/json
{
  • "networks": [
    ]
}

DirectorySearchCollections

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainId
number
includeTestnets
boolean
onlyFeatured
boolean
object (Page)
query
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/DirectorySearchCollections
Request samples
application/json
{
  • "chainId": 0,
  • "includeTestnets": true,
  • "onlyFeatured": true,
  • "page": {
    },
  • "query": "string"
}
Response samples
application/json
{
  • "collections": [
    ],
  • "page": {
    }
}

EnqueueTokensForRefresh

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
refreshAll
boolean
tokenIDs
Array of strings

[]string

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/EnqueueTokensForRefresh
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string",
  • "refreshAll": true,
  • "tokenIDs": [
    ]
}
Response samples
application/json
{
  • "taskId": 0
}

GetContractInfo

Contract Info -- returns contract meta-info for contracts found in registered chain's token-lists

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetContractInfo
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string"
}
Response samples
application/json
{
  • "contractInfo": {
    }
}

GetContractInfoBatch

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddresses
Array of strings

[]string

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetContractInfoBatch
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddresses": [
    ]
}
Response samples
application/json
{
  • "contractInfoMap": {
    }
}

GetNiftyswapTokenQuantity

Niftyswap querying data map of tokenID :: quantity

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
tokenIDs
Array of strings

[]string

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetNiftyswapTokenQuantity
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string",
  • "tokenIDs": [
    ]
}
Response samples
application/json
{
  • "quantity": {
    }
}

GetNiftyswapUnitPrices

map of tokenID :: price

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
fresh
boolean
object (GetNiftyswapUnitPricesRequest)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetNiftyswapUnitPrices
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string",
  • "fresh": true,
  • "req": {
    }
}
Response samples
application/json
{
  • "prices": {
    }
}

GetNiftyswapUnitPricesWithQuantities

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
fresh
boolean
object (GetNiftyswapUnitPricesRequest)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetNiftyswapUnitPricesWithQuantities
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string",
  • "fresh": true,
  • "req": {
    }
}
Response samples
application/json
{
  • "prices": {
    }
}

GetTokenMetadata

GetTokenMetadata - fetch token metadata for a particular contract and respective tokenIDs

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
contractAddress
string
tokenIDs
Array of strings

[]string

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetTokenMetadata
Request samples
application/json
{
  • "chainID": "string",
  • "contractAddress": "string",
  • "tokenIDs": [
    ]
}
Response samples
application/json
{
  • "tokenMetadata": [
    ]
}

GetTokenMetadataBatch

GetTokenMetadataBatch allows you to query the token metadata of a batch of contracts and respective tokenIDs where map is contractAddress::[]tokenID => contractAddress::[]TokenMetadata Note, we limit each request to 50 contracts max and 50 tokens max per contract.

SecurityApiKeyAuth
Request
Request Body schema: application/json
chainID
string
object

map<string,[]string>

Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Metadata/GetTokenMetadataBatch
Request samples
application/json
{
  • "chainID": "string",
  • "contractTokenMap": {
    }
}
Response samples
application/json
{
  • "contractTokenMetadata": {