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

Interface: ViewFunctionCallOptions

account.ViewFunctionCallOptions

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' }

Inherited from

FunctionCallOptions.args

Defined in

account.ts:94


attachedDeposit

Optional attachedDeposit: BN

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

Inherited from

FunctionCallOptions.attachedDeposit

Defined in

account.ts:98


blockQuery

Optional blockQuery: BlockReference

Defined in

account.ts:123


contractId

contractId: string

The NEAR account id where the contract is deployed

Inherited from

FunctionCallOptions.contractId

Defined in

account.ts:88


gas

Optional gas: BN

max amount of gas that method call can use

Inherited from

FunctionCallOptions.gas

Defined in

account.ts:96


jsContract

Optional jsContract: boolean

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

Inherited from

FunctionCallOptions.jsContract

Defined in

account.ts:106


methodName

methodName: string

The name of the method to invoke

Inherited from

FunctionCallOptions.methodName

Defined in

account.ts:90


parse

Optional parse: (response: Uint8Array) => any

Type declaration

(response): any

Parameters
NameType
responseUint8Array
Returns

any

Defined in

account.ts:122


stringify

Optional stringify: (input: any) => Buffer

Type declaration

(input): Buffer

Convert input arguments into bytes array.

Parameters
NameType
inputany
Returns

Buffer

Inherited from

FunctionCallOptions.stringify

Defined in

account.ts:102