fee
Function
Get the transfer
, withdraw
, bundle
fees for the specified token on everPay
Parameter
everpay.fee(tag:string):FeeItem
- Parameters
- Type
query field | required | description |
---|---|---|
tag | YES | A unique identifier for the token , which can be viewed through the info interface. |
string
Return
- Return Field
- Return Type
Return Fields
Field | Description |
---|---|
tokenTag | Generated by combining chainType , symbol , id from Token by - |
burnFeeMap | withdraw handling fee |
transferFee | transfer handling fee |
atomicBundleFee | bundle handling fee |
Return Type
export interface FeeItem {
tokenTag: string
burnFeeMap: {
[propname: string]: string
}
transferFee: string
atomicBundleFee: string
updatedAt: string
}
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"
}
}