Transaction Signing Requirements
- The key of the account sending the tokens
- The transaction fee payer account key
- Please see the transaction and query fees table for base transaction fee
- Please use the Hedera fee estimator to estimate your transaction fee cost
Methods
| Method | Type | Description |
|---|---|---|
addHbarTransfer(<accountId>, <value>) | AccountID, Hbar/long | Add the from and to account to transfer hbars (you will need to call this method twice). The sending account must sign the transaction. The sender and recipient values must net zero. |
addTokenTransfer(<tokenId>, <accountId>,<value>) | TokenId, AccountId, long | Add the from and to account to transfer tokens (you will need to call this method twice). The ID of the token, the account ID to transfer the tokens from or to, and the value of the token to transfer. The sender and recipient values must net zero. |
addNftTransfer(<nftId>, <sender>, <receiver>) | NftId, AccountId, AccountId | The NFT ID being transferred, the account ID the NFT owner, the account ID of the receiver of the NFT. |
| AccountId, Hbar | The owner account ID the spender is authorized to transfer from and the amount. |
| TokenId, AccountId, long | The owner account ID and token the spender is authorized to transfer from. The debiting account is the owner account. |
| TokenId, AccountId, long, int | The owner account ID and token ID (with decimals) the spender is authorized to transfer from. The debit account is the account ID of the sender. |
| NftId, AcountId, AccountId | The NFT ID the spender is authorized to transfer. The sender is the owner account and receiver is the receiving account. |