Wallet Services SDK
Creating a transaction
This module facilitates blockchain transactions, currently we support two transactions:
Allowance
Transfer
The request object includes details such as the origin address, recipient address, amount, asset ID, reference, memo, and a the wallet password. The response object contains the transaction details or any potential error.
Fees
All fees are calculated and paid using the blockchain's native currency, for example a transfer of USDC on Ethereum, fees will be paid by ETH.
The transactions.estimateFee()
function is used to estimate the transaction fee for a specific transaction on the blockchain. It takes into account factors such as the origin address, recipient address, transaction amount, asset symbol, transaction type, and blockchain.
Function Parameters
originAddress
string
The address from which the transaction originates
recipientAddress
string
The address to which the transaction is sent
amount
number
The amount of the transaction
assetSymbol
string
The symbol of the asset involved in the transaction
transactionType
TransactionType
Options: Allowance
| Transfer
tokenStandard
TokenStandard
The standard of the token involved in the transaction
Function Response:
feePaymentSymbol
string
The symbol of the native token in which the fee is paid
fee
string
The average fee for the transaction
lowestFee
string
The lowest possible fee for the transaction
highestFee
string
The highest possible fee for the transaction
d
Last updated