Skip to main content

Withdraw

Normal Withdrawal

Withdrawal means withdrawing the valid assets (token) from everPay account, to the native chain.

Schema

FieldDescription
tokenSymbolToken Symbol, AR,ETH,USDT,USDC etc.
action'burn' to withdraw.
fromthe current everPay account ID that signed the transaction.
toWhen withdrawing, to is the blockchain wallet address to withdraw to.
amountWithdrawal amount, type uint; decimals processing is required for setting, e.g. 0.1USDT, after USDT's decimals: 6 processing, it's 100000.
feeHandling fee, type uint. needs to be decimals, e.g. 0.1USDT, here is 100000 after USDT's decimals: 6 processing.
feeRecipientReceive everPay account ID for handling fees, via info API interface to get.
nonceunix milliseconds.
tokenIDvia info API interface, must be consistent with the token id field corresponding to tokenSymbol.
chainTypechainType must be the same as info API, the token chainType consistent.
chainIDchainID must be the same as info API, the token chainID consistent.
dataAdditional information, developer-customizable JSON data, processed by JSON.stringify() and passed in.
versiontransaction version 'v1'.

Transaction signature, sending and record acquisition

Developers can visit the DOCS - System overview- Transaction chapter for more information.