Ramp Accounts
Ramp Account syncs balance of assets and liabilities.
Use Ramps to enable on-chain deposits and withdrawals.
Withdrawal is always done from ramp.address
even if there are multiple deposit Addresses assigned. All incoming transactions deposited to other addresses are automatically forwarded to ramp.address
. In this case, balance received on Ramp is diminished for on-chain fee value applied to internal transfer Deposit Address -> Ramp Address.
When incoming deposit is received on Virtual Account's address, assets will be forwarded to Ramp's ramp.address
, following the liabilities balance movement from Ramp -> Virtual Account.
Vice versa, withdrawal created for Virtual Account will move liabilities balance Virtual Account -> Ramp account, following the asset withdrawal from Ramp Account's ramp.address
to destination address.
Ramp accounts and Deposit accounts are holding 3 or 4 types of balances. In case when asset is native cryptocurrency, accounts will have 2 off chain balances, available and total, and 1 on chain balance, assets. Additionally if account asset is ERC20, BEP20 or TRC20 token, there will be additional balance, gas, with amount of available native tokens to pay blockchain gas fees for withdrawal process.
Create Ramp Account
Parameters
In response we get new Ramp Account
ramp.address
is main address for deposits and withdrawals.
ramp.assets
is balance of assets on ramp.address
available for withdrawal.
Connect Virtual Account to Ramp Account
Adding a field ramp
will connect Virtual account to Ramp account.
In response we get new Virtual Account
ramp
is reference to a Ramp that will handle deposits and withdraws for Virtual Account.
Deposit to Ramp account
On-chain deposits can be sent to default Ramp address. After deposit is received and processed, all balances of ramp account will be increased for amount received. To get blockchain address to receive on-chain transactions, populate address details with populate=address
querystring parameters.
In response you will get full address details. In this example blockchain address is "address": "0x4e5ac860ee4c2db16a3bd4450bdeb21e14cf281e".
Last updated