send
Invoke a transfer of a specified amount of a given asset from the connected account to another account.
Input Arguments
fromAddress: string
Address of the connected account to send the assets from
toAddress: string
Address of the receiver of the assets to be sent
asset: string
Asset script hash to be sent. Accepts asset symbol only for "MainNet"
amount: string
The parsed amount of the asset to be sent
remark?: string
Description of the transaction to be made
fee?: string
The parsed amount of network fee (in GAS) to include with transaction
network?: string
Network to submit this request to. If omitted, will default to network the wallet is currently set to
broadcastOverride?: boolean
In the case that the dApp would like to be responsible for broadcasting the signed transaction rather than the wallet provider
Success Response
In the case where the "broadcastOverride" input argument is not set, or set to false.
txid: string
The transaction ID of the send invocation
nodeURL: string
The node which the transaction was broadcast to. Returned if transaction is broadcast by wallet provider
In the case where the "broadcastOverride" input argument is set to True.
txid: string
The transaction ID of the send invocation
signedTx: string
The serialized signed transaction. Only returned if the broadcastOverride input argument was set to True
Error Response
type: string
The type of error which has occured
description: string
A description of the error which has occured
data: string
Any raw data associated with the error
Example
Request
Response
最后更新于