Transaction
Last updated
Last updated
- Create an instance of TransactionBuilder
This method is used to create a transaction builder
Results:
Promise<TransactionBuilder>
- TransactionBuilder which should be used in Transaction.submitTransaction
.
Example:
- Get a list of transactions for given wallet address This method is used to get a list of transactions for given wallet address
Parameters:
<string>
- wallet address
<"to" | "from">
- transaction type. it can only be 'to' or 'from'
<number>
- pagination. The defaul value is 1.
Results:
Promise<ProcessedTxListResponseResult>
- An instance of ProcessedTxListResponseResult
containing the total count and transactions.
Example:
- Send some asset to an address Using this function, user can transfer some amount of given asset to another address
<WalletKeypar>
- wallet keypair
<string>
- target wallet address
<string>
- amount to be sent
<string>
- asset code
<AssetBlindRules>
- (optional) confidential options for blind rule
Promise<TransactionBuilder>
- A TransactionBuilder which should be used in Transaction.submitTransaction
- Send some asset to multiple receivers Using this function, user can transfer perform multiple transfers of the same asset to multiple receivers using different amounts
<WalletKeypar>
- wallet keypair
<TransferReciever[]>
- the list of target wallet addresses and amount
<string>
- asset code
<AssetBlindRules>
- (optional) confidential options for blind rule
Promise<TransactionBuilder>
- A TransactionBuilder which should be used in Transaction.submitTransaction
- Send some asset to a wallet by public key Using this function, user can transfer some amount of given asset to another wallet by target's public key
<WalletKeypar>
- wallet keypair
<string>
- target's public key
<string>
- amount to be sent
<string>
- asset code
<AssetBlindRules>
- (optional) confidential options for blind rule
Promise<TransactionBuilder>
- A TransactionBuilder which should be used in Transaction.submitTransaction
- Submits a transaction The next step after creating a transaction is submitting it to the ledger, and, as a response, we retrieve the transaction handle.
<TransactionBuilder>
- an instance of TransactionBuilder
Promise<string>
- Transaction status handle
Parameters:
Results:
Example:
Parameters:
Results:
Example:
Parameters:
Results:
Example:
Parameters:
Results:
Example: