sendtoaddress Method
Transfers to the specified address.
You need to open the wallet in the Neo-CLI node before you execute this command.
This method is provided by the plugin RpcWallet . You need to install the plugin before you can invoke the method.
Parameters
Asset_id
: Asset ID (asset identifier), which is the transaction ID of the RegistTransaction when the asset is registered.
For NEO: c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b
For GAS: 602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7
The remaining asset IDs can be queried through the list asset
command in CLI Command or in the Block Chain Browser.
Address
: Payment address
Value
: Amount transferred
Fee
: Optional parameter. Paying the handling fee helps elevate the priority of the network to process the transfer. It defaults to 0, and can be set to a minimum of 0.00000001.
Change_address
: Change address, optional parameter, default is the first standard address in the wallet.
Example
Request body:
Response body:
Response Description:
Returning of the transaction details above, indicates that the transaction was sent successfully. If not, the transaction has failed to send.
If the signature is incomplete, it will return the transaction to be signed.
If the balance is insufficient, it will return an error message.