getPaymentToken
Get the payment fee token address the user needs to pay when calling any of the batch transfer methods. The token address could be the zero address which represents the native token address or any other ERC20 token address
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | string | the payment token address |
Example
const paymentToken = await multiSendSdk.getPaymentToken()
// example paymentToken: 0xEa3cdB2112886AD7361812363E4cf014A6B67277
getFeeReceiver
Get the address of the fee receiver who a user needs to pay when calling any batch transfer methods
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | string | the wallet address of the fee receiver |
Example
const feeReceiver = await multiSendSdk.getFeeReceiver()
// example feeReceiver: 0x0CEE2872EA9E72b7eb5BE52cA34223264450AE9c
getERC20Fee
Get the amount of fee a user needs to pay when calling BatchTransferERC20 method of this contract
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | BigNumber | The amount a user needs to pay for an ERC20 batch transfer. |
Example
const erc20Fee = await multiSendSdk.getERC20Fee()
// example erc20Fee: {"type": "BigNumber", "hex": "0x1"}
getERC721Fee
Get the amount of fee a user needs to pay when calling BatchTransferERC721 method of this contract
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | BigNumber | the amount of ERC721 transfer fee |
Example
const erc721Fee = await multiSendSdk.getERC721Fee()
// example erc721Fee: {"type": "BigNumber", "hex": "0x1"}
getERC1155Fee
Get the amount of fee a user needs to pay when calling BatchTransferERC1155 method of this contract
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | BigNumber | the amount of ERC1155 transfer fee |
Example
const erc1155Fee = await multiSendSdk.getERC1155Fee()
// example erc1155Fee: {"type": "BigNumber", "hex": "0x1"}
getNativeFee
Get the amount of fee a user needs to pay when calling BatchTransferNative method of this contract
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | BigNumber | the amount of native transfer fee |
Example
const nativeFee = await multiSendSdk.getNativeFee()
// example nativeFee: {"type": "BigNumber", "hex": "0x1"}
getContractURI
Get the contract URI of this multisend contract
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | string | the contract URI |
Example
const contractURI = await multiSendSdk.getContractURI()
// example contractURI: www.google.com
getAdjustableFee
Get the boolean value of the AdjustableFee field of the contract, which indicates whether the amount of fee, payment token and fee receiver of the contract could be set again.
Note: No parameter is needed for this method
Response
Property | Type | Description |
---|---|---|
Promise | boolean | whether the contract fee is adjustable |
Example
const adjustableFee = await multiSendSdk.getAdustableFee()
// example result: true