sendtoaddress
# sendtoaddress Method
Transfers to the specified address.
[!Note]
Before you can invoke this method you must:
Install the plugin RpcServer
Call the RPC method
openwallet
to open the wallet first.
Parameter Description
asset_id: Asset ID (asset identifier), the script hash of NEP-17 contract
e.g. NeoToken is 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5
GasToken is 0xd2a4cff31913016155e38e474a2c06d08be276cf
address: Payment address
value: The amount transferred. It is a large integer without precision. For example, to transfer 0.000001 GAS (precision is 8), enter 100 here; To transfer 100 GAS, enter 10000000000.
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 returns the transaction to be signed.
If the balance is insufficient, it returns an error message.