Account APIs
Account API handles all operations regarding user accounts' profiles or settings.
getTonAddress
Fetch the TON address linked to the user's account, which can be used to send and receive TON-based assets.
Request Parameters:
Authorization
(string, header, optional): The authorization token for secure access.
Example Request:
getFavoriteTokens
Retrieves the list of tokens the user starred. The output is a list of JSON objects describing the token details.
updateFavoriteTokens
Updates the list of tokens that the user starred.
Request Body Parameters:
userId
(number, required): The user's unique ID.tokens
(array of strings, required): List of token names that will overwrite the existing list.
getTokenAsset
Fetch all the token assets associated with the user's account, including native and contract tokens. It allows users to view their token holdings across different blockchains.
Request Parameters:
chain_ids
(array of integers, query, optional): The chain IDs to filter the tokens by specific blockchains.page
(integer, query, optional): The page number for paginated results.pagesize
(integer, query, optional): The number of results per page.Authorization
(string, header, optional): The authorization token for secure access.
delTokenAsset
Remove a specified token asset from the user's portfolio based on the provided blockchain ID and token contract address. This is useful for users who want to remove unwanted or obsolete tokens from their asset list.
Request Parameters:
chain_ids
(array of integers, query, required): The chain IDs to filter the tokens by specific blockchains.token
(string, query, required): The address of the token the user wants to delete from the view.Authorization
(string, header, optional): The authorization token for secure access.
addCustomizedToken
It allows users to add a new token asset to their portfolio by specifying its details, such as name, symbol, chain ID, and other relevant information. This feature is handy for users who want to track or interact with a token that is not automatically listed by the platform.
Request Body Parameters:
chain_id
(number, required): The blockchain ID where the token resides.decimals
(number, required): The number of decimal places the token supports.image
(string, optional): A URL to the token's image or logo.name
(string, required): The full name of the token.symbol
(string, required): The token's symbol (e.g., "ETH" for Ethereum).token
(string, required): The contract address of the token.
queryTokenBalance
Fetches the balance of all tokens linked to the user's addresses on supported blockchains. This API is useful for users who want to view their token holdings in one place.
Request Parameters:
evm_address
(string, query, required): The user's Ethereum-based address to retrieve token balances.solana_address
(string, query, required): The user's Solana-based address to retrieve token balances.Authorization
(string, header, optional): The authorization token for secure access.
bindEmailCode
Sends a verification code to the user's email and binds the email to the user's account.
Request Parameters:
email
(string, required): The email address to verify.
bindEmailCodeVerify
Checks the validity of a verification code sent to the user-provided email address.
Request Body Parameters:
email
(string, required): The email address to which the code is sent.code
(string, required): The verification code received via email.
Last updated