As said previously, you can generate new deposit addresses with receiving addresses feature. For BEP20 & ERC20 networks: on creation, one wallet address will be generated and assigned for both networks, and monitored for incoming transactions.
Deposit Updates: After a receiving address is created on a dedicated blockchain, 0xpay will notify you about incoming transactions for all the assets supported on this blockchain.
As said previously, you can generate new deposit addresses with receiving addresses feature.
An address will be active until the first incoming transaction is received, or for a specified timeframe (set with duration parameter)
Deposit Updates: After a receiving address is created on a dedicated blockchain, 0xpay will notify you about an incoming transaction for all the assets supported on this blockchain.
Creates an outgoing cryptocurrency transaction. 0xpay API will produce notifications according to status updates on your withdrawal.
Request Body
{"id": "123e4567-e89b-12d3-a456-426614174000"//internal ID has been assigned to the tx}
Error codes:
//List of error codes://0 - Local id already placed //1 – Not enough balance//2 – Fee less than required//3 – Withdraw amount too low//4 – Merchant not found//5 – Balance not found//6 – You don't have permission for this{ code:0 description: "Local id already placed"}
metadata, write your id here to catch it back later with a notification
blockchain*
string
available values you can find here ("API value" column)
target
object
ticker: string - the currency to which we will try to exchange all funds deposited to this address funds if target.ticker == amount.ticker no exchange will happen
address: string - the address, to which we will withdraw funds in the currency specified in target.ticker
blockchain: string - network in which withdrawal will be made, this field is required if target.address is provided, available values you can find here ("API value" column)
meta
string
metadata, write your id here to catch it back later with a notification
blockchain*
string
available values you can find here ("API value" column)
duration
number
timeframe for which the address will be active.
(min: 1000 ms; max: 259200000 ms). By default, duration will be set to 86400000ms.
durationAfterReplenishment
number
additional timeframe after the first replenishment transaction, during which the address will still stay active for deposits.
(min: 1000 ms; max: 86400000 ms). By default, duration will be set to 7200000 ms.
ticker*
string
find values with "List available tickers" request
to*
string
Destination wallet address
blockchain*
string
available values you can find here ("API value" column)
amount*
string
amount in decimal format
fee
string
you can specify withdrawal fees that have to be greater than the actual fee, which can be useful for better fee calculation options on your side. If not the specified – fee will be set automatically
localId
string
if was specified error will be thrown if not unique, can be useful on your side to avoid the double-spend issue
meta
string
your metadata that will be passed along to you later with a notification
ticker*
string
find values with "List all supported assets" request
blockchain*
string
available values you can find here ("API value" column)
amount*
string
amount in decimal format
address
string
destination wallet address
(fill in to check if tx is an internal zero-fee transfer)