sendtoaddress

Transfers to the specified address.

📘

Before you can invoke this method, wallet must be open first.

Parameters

Object NameRequiredTypeDetail
ASSET IDStringThe NEP-17 contract scripthash.
ADDRESSStringThe destination address.
VALUEIntegerThe transfer amount.
SIGNERSArrayThe signature account of transaction.

The asset ID for NEO is 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5

The asset ID for Gas is 0xd2a4cff31913016155e38e474a2c06d08be276cf

🚧

VALUE must be whole number

"params": [
        "0xd2a4cff31913016155e38e474a2c06d08be276cf",
        "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",
        1
]

Result

The transaction details.

Example

Request

curl <your-endpoint> \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{"jsonrpc": "2.0", "id": 1, "method": "sendtoaddress", "params": ["0xd2a4cff31913016155e38e474a2c06d08be276cf", "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n", 100]}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "hash": "0x8782376ebbe69a8abf34a3d99271f3e078637a8bd4d076ba0347f23e08a69f77",
        "size": 375,
        "version": 0,
        "nonce": 2091876679,
        "sender": "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",
        "sysfee": "997778",
        "netfee": "234204",
        "validuntilblock": 1352968,
        "signers": [
            {
                "account": "0xcb285efa97f33e48e1bf47cf78790e25aedfec4a",
                "scopes": "None"
            },
            {
                "account": "0x04538e82435ea534103072fa0cdae0451dea1ca8",
                "scopes": "CalledByEntry"
            }
        ],
        "attributes": [],
        "script": "CwBkDBRK7N+uJQ55eM9Hv+FIPvOX+l4oywwUqBzqHUXg2gz6cjAQNKVeQ4KOUwQUwB8MCHRyYW5zZmVyDBTPduKL0AYsSkeO41VhARMZ88+k0kFifVtSOQ==",
        "witnesses": [
            {
                "invocation": "DEDSP3XjL+RVQEuMiAO6Kp4+DOjRyvZGcsn7QRmFZ31LNsIhoqCZLvr8ZY6iTaZwtxVMETn2B+VypJJHfqpDXoLY",
                "verification": "DCED3k3+UTmOhKZSHB3DKihzMPPA7YvgkWC0V6AW33D9EDhBVuezJw=="
            },
            {
                "invocation": "DEDUFJ0L9uqCVV4ZxKPbX+CGuHeuoaKCuwrx8s+wYMJ1DzaPo/a8n6d2WdozdRSayEUkW53bWdcE/VxGDbLOGa5k",
                "verification": "DCEC5T42wyBdYGfWEKVqdZsL/K67ZKl9oDMMY/bvdmKWm0dBVuezJw=="
            }
        ]
    }
}
Language
Click Try It! to start a request and see the response here!