Skip to main content
Version: near-api-js@1.1.0

Interface: FunctionCallOptions

account.FunctionCallOptions

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

See

viewFunction to initiate a view function call

Hierarchy​

Properties​

args​

args: object

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

Defined in​

account.ts:94


attachedDeposit​

Optional attachedDeposit: BN

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

Defined in​

account.ts:98


contractId​

contractId: string

The NEAR account id where the contract is deployed

Defined in​

account.ts:88


gas​

Optional gas: BN

max amount of gas that method call can use

Defined in​

account.ts:96


jsContract​

Optional jsContract: boolean

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

Defined in​

account.ts:106


methodName​

methodName: string

The name of the method to invoke

Defined in​

account.ts:90


stringify​

Optional stringify: (input: any) => Buffer

Type declaration​

(input): Buffer

Convert input arguments into bytes array.

Parameters​
NameType
inputany
Returns​

Buffer

Defined in​

account.ts:102