makeTransaction

Builds a transaction and returns a ContractParametersContext without relaying it.

This method is commonly used for multi-signature or external signing flows.

Parameters

1. invocations (required)

InvocationArguments[]

2. signers (optional)

Signer[]

3. attributes (optional)

TransactionAttribute[]

4. options (optional)

TransactionOptions

Returns

Promise<ContractParametersContext>

type ContractParametersContext = {
  type: "Neo.Network.P2P.Payloads.Transaction";
  hash: UInt256;
  data: Base64Encoded;
  items: Record<
    UInt160,
    {
      script: Base64Encoded;
      parameters: Argument[];
      signatures: Record<ECPoint, Base64Encoded>;
    }
  >;
  network: Network;
};

Errors

Code
Name
Description

10002

INVALID

One or more inputs are invalid.

10004

FAILED

Contract execution failed.

10005

TIMEOUT

The request timed out.

10006

CANCELED

The user rejected the transaction build request.

10008

RPC_ERROR

The RPC server returned an error.

Example

Request

Response

最后更新于