💰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
Header | Type | Required | Remarks |
---|---|---|---|
Authorization |
|
| The authorization token is the result returned by /connect/token. How to acquire: ETransfer SDK Auth. |
Method Parameters
Field | Type | Required | Remarks |
---|---|---|---|
type |
|
| Business type: |
Method return value
Field | Type | Remarks |
---|---|---|
|
| From crypto information |
toTokenList |
| To crypto information |
TTokenItem
type
Field | Type | Remarks |
---|---|---|
name |
| Crypto name |
symbol |
| Crypto symbol |
icon |
| Crypto logo url |
contractAddress |
| ETransfer contract address |
decimals |
| Crypto decimals |
TToTokenItem
type
Field | Type | Remarks |
---|---|---|
|
| |
chainIdList |
| 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
Header | Type | Required | Remarks |
---|---|---|---|
Authorization |
|
| The authorization token is the result returned by /connect/token. How to acquire: ETransfer SDK Auth. |
Method Parameters
Field | Type | Required | Remarks |
---|---|---|---|
type |
|
| Business type: |
chainId |
|
|
|
symbol |
|
| Get data from eTransferCore.services.getTokenOption |
Method return value
Field | Type | Remarks |
---|---|---|
network |
| Network |
name |
| Network name |
multiConfirm |
| Network block confirmations |
multiConfirmTime |
| Network block confirmation time |
contractAddress |
| Network contract address |
explorerUrl |
| Network explorer address |
status |
| Network health status |
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
Header | Type | Required | Remarks |
---|---|---|---|
Authorization |
|
| The authorization token is the result returned by /connect/token. How to acquire: ETransfer SDK Auth. |
Method Parameters
Field | Type | Required | Remarks |
---|---|---|---|
chainId |
|
|
|
network |
|
| Get data from eTransferCore.services.getNetworkList |
symbol |
|
| From crypto, get data from eTransferCore.services.getTokenOption |
toSymbol |
|
| To Crypto, get data from eTransferCore.services.getTokenOption |
Method return value
Field | Type | Required | Remarks |
---|---|---|---|
depositAddress |
|
| Deposit address |
minAmount |
|
| Minimum deposit amount |
minAmountUsd |
|
| Minimum deposit amount in USD |
extraNotes |
|
| Deposit tips |
extraInfo |
|
| Additional deposit information |
TDepositExtraInfo
type
Field | Type | Remarks |
---|---|---|
slippage |
| Deposit slippage |