Skip to main content

fee

Function

Get the transfer, withdraw, bundle fees for the specified token on everPay

Parameter

everpay.fee(tag:string):FeeItem
query fieldrequireddescription
tagYESA unique identifier for the token, which can be viewed through the info interface.

Return

Return Fields

FieldDescription
tokenTagGenerated by combining chainType, symbol, id from Token by -
burnFeeMapwithdraw handling fee
transferFeetransfer handling fee
atomicBundleFeebundle handling fee

Example

const everpay1 = new Everpay({ debug: true })
everpay1.fee('arweave,ethereum-ar-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,0xcc9141efa8c20c7df0778748255b1487957811be').then(console.log)

Example Return

{
"tokenTag": "arweave,ethereum-ar-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,0xcc9141efa8c20c7df0778748255b1487957811be",
"transferFee": "0",
"atomicBundleFee": "0",
"burnFeeMap": {
"arweave": "2265880856",
"ethereum": "120000000"
}
}