Options used to initiate a function call (especially a change function call)

See

viewFunction to initiate a view function call

interface ChangeFunctionCallOptions {
    args?: object;
    attachedDeposit?: bigint;
    contractId: string;
    gas?: bigint;
    jsContract?: boolean;
    methodName: string;
    stringify?: ((input) => Buffer);
    walletCallbackUrl?: string;
    walletMeta?: string;
}

Hierarchy (view full)

Properties

args?: object

named arguments to pass the method { messageText: 'my message' }

attachedDeposit?: bigint

amount of NEAR (in yoctoNEAR) to send together with the call

contractId: string

The NEAR account id where the contract is deployed

gas?: bigint

max amount of gas that method call can use

jsContract?: boolean

Is contract from JS SDK, automatically encodes args from JS SDK to binary.

methodName: string

The name of the method to invoke

stringify?: ((input) => Buffer)

Convert input arguments into bytes array.

Type declaration

    • (input): Buffer
    • Parameters

      • input: any

      Returns Buffer

walletCallbackUrl?: string

Callback url to send the NEAR Wallet if using it to sign transactions.

See

RequestSignTransactionsOptions

walletMeta?: string

Metadata to send the NEAR Wallet if using it to sign transactions.

See

RequestSignTransactionsOptions