Estimate fee
Estimate fee
POST https://api.xbwallet.me/estimatefee
Request Body
Name
Type
Description
merchant_id
UUID
Merchant ID your shop/wallet
currency
Currency
API Currency transfer (bitcoin, litecoin, ethereum, tron, binancecoinbep20, usdttrc20, usdterc20, usdtbep20, daierc20, daibep20, busdbep20)
secret_hash
String
Signing the request with a secret key
secret_hash = sha1(merchant_id¤cy&recipient&amount&fee&secret)
recipient
String
Address recipient
amount
Number
Transfer amount
fee
Number
GWEI for Ethereum/ERC20 (will be calculated automatically by default), satoshi per byte for Bitcoin/Litecoin (default will be 5 and 10 satoshi per byte respectively) to specify default values, pass 0, for other currencies also pass 0 for signature calculation
{
"fee": 0.5,//for tokens fee in main currency, trc20 - tron, erc20 - ethereum, bep20 - binance coin
"gwei": 5//its field will be only for ethereum and erc20 tokens
}{
"error_message": "Description error"
}Last updated