Token data object
Last updated
Last updated
Currently, in our API reference, we have a token.data
object required as a parameter for a bunch of endpoints.
Example:
However, it is not clear from the API reference what this object should look like. This page is to provide that clarification.
token.data
:getSignableOrder
getSignableTransferV1
getSignableTransfer (Get bulk details of a signable transfer)
getSignableWithdrawal
The token
param is made up of two fields:
type
data
type
can be one of: ETH, ERC20, or ERC721
data
depends on the type
that is used. Fields are:
decimals (required for ETH, ERC20)
token_address (required for ERC20, ERC721)
token_id (required for ERC721)
If any of the required fields are missing, the request will error out.
type: 'ETH'
type: 'ERC20'
type: 'ERC721'