Deposit Digital Assets
Last updated
Last updated
Deposit Assets
Deposit assets from other chains to the aelf chain.
SDK - Deposit Assets
A deposit address is generated based on the token, network and other information selected by the user. The user transfers crypto to the deposit address, then the ETransfer server will send tokens to the user's aelf chain account.
First, init the ETransferCore instance. You can find it in ETransfer SDK Quick Start.
First, init the ETransferCore instance. You can find it in ETransfer SDK Quick Start.
Acquire the list of assets supported by ETransfer.You can find which assets are supported for deposit and swap.
Example
Http Headers
Authorization
string
true
The authorization token is the result returned by /connect/token.
Method Parameters
type
BusinessType
true
Business type: 'Deposit'
Method return value
...TTokenItem
Extends TTokenItem
From crypto information
toTokenList
TToTokenItem[]
To crypto information
TTokenItem
type
name
string
Crypto name
symbol
string
Crypto symbol
icon
string
Crypto logo url
contractAddress
string
ETransfer contract address
decimals
number
Crypto decimals
TToTokenItem
type
...TTokenItem
Extends TTokenItem
chainIdList
ChainId[]
Supported chain array
Acquire the list of networks supported by ETransfer.You can find which networks support the deposit and swap functions.You can get basic information and the block confirmations of the network, etc.
Example
Http Headers
Authorization
string
true
The authorization token is the result returned by /connect/token.
Method Parameters
type
BusinessType
true
Business type: 'Deposit'
chainId
ChainId
true
'AELF' | 'tDVV'
symbol
string
false
Get data from eTransferCore.services.getTokenOption
Method return value
network
string
Network
name
string
Network name
multiConfirm
string
Network block confirmations
multiConfirmTime
string
Network block confirmation time
contractAddress
string
Network contract address
explorerUrl
string
Network explorer address
status
NetworkStatus
Network health status'Health' | 'Congesting' | 'Offline'
Acquire the deposit information and deposit address. You can transfer assets to this address, and then your aelf account will receive aelf chain assets.
Please check the deposit tips and minimum deposit limit.
Example
Http Headers
Authorization
string
true
The authorization token is the result returned by /connect/token.
Method Parameters
chainId
ChainId
true
'AELF' | 'tDVV'
network
string
true
Get data from eTransferCore.services.getNetworkList
symbol
string
false
From crypto, get data from eTransferCore.services.getTokenOption
toSymbol
string
false
To Crypto, get data from eTransferCore.services.getTokenOption
Method return value
depositAddress
string
true
Deposit address
minAmount
string
true
Minimum deposit amount
minAmountUsd
string
true
Minimum deposit amount in USD
extraNotes
string[]
false
Deposit tips
extraInfo
TDepositExtraInfo
false
Additional deposit information
TDepositExtraInfo
type
slippage
string
Deposit slippage
How to acquire: .
How to acquire: .
How to acquire: .