send

Sends an asset from one account to another and returns the transaction hash.

Parameters

1. asset (required)

UInt160

Asset or token contract hash.

2. from (required)

UInt160

Sender account script hash.

3. to (required)

UInt160

Receiver account script hash.

4. amount (required)

Integer

Amount to transfer.

5. data (optional)

Argument

Additional transfer data passed to the contract.

Returns

Promise<UInt256>

The relayed transaction hash.

Errors

Code
Name
Description

10002

INVALID

One or more inputs are invalid.

10003

NOTFOUND

The requested account or asset cannot be found.

10004

FAILED

Contract execution failed.

10005

TIMEOUT

The request timed out.

10006

CANCELED

The user rejected the transfer.

10007

INSUFFICIENT_FUNDS

The selected account does not have enough balance.

10008

RPC_ERROR

The RPC server returned an error.

Example

Request

Response

最后更新于