Transfers with the SDK
Last updated
Last updated
Th transactions.transfer()
function lets you move assets from one account to another, whether your user is making a payment or simply moving tokens between their own accounts.
This function is commonly used with in order to know if your user has enough balance to cover the transaction gas fee.
The function parameters are very similar to . But instead of passing owner/spender addresses, you will need to pass the origin/recipient addresses.
password
string
User's wallet password
originAddress
string
The address from which the assets are being sent
recipientAddress
string
The address to which the assets are being sent
amount
string
The amount of tokens to be sent.
assetId
string
The asset configuration ID.
reference
string
A UUID that correlate to a transaction in your system.
memo
string
Any message or a memo you would like to store with the transaction.
transaction
Transaction
The transaction object which contains the transaction hash and status