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

See

viewFunction to initiate a view function call

Hierarchy

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)

Type declaration

    • (input): Buffer
    • Convert input arguments into bytes array.

      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

Generated using TypeDoc