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
↳
ViewFunctionCallOptions
Properties
args
args: object
named arguments to pass the method { messageText: 'my message' }
Inherited from
Defined in
attachedDeposit
Optional attachedDeposit: BN
amount of NEAR (in yoctoNEAR) to send together with the call
Inherited from
FunctionCallOptions.attachedDeposit
Defined in
blockQuery
Optional blockQuery: BlockReference
Defined in
contractId
contractId: string
The NEAR account id where the contract is deployed
Inherited from
FunctionCallOptions.contractId
Defined in
gas
Optional gas: BN
max amount of gas that method call can use
Inherited from
Defined in
jsContract
Optional jsContract: boolean
Is contract from JS SDK, automatically encodes args from JS SDK to binary.
Inherited from
FunctionCallOptions.jsContract
Defined in
methodName
methodName: string
The name of the method to invoke
Inherited from
FunctionCallOptions.methodName
Defined in
parse
Optional parse: (response: Uint8Array) => any
Type declaration
(response): any
Parameters
| Name | Type |
|---|---|
response | Uint8Array |
Returns
any
Defined in
stringify
Optional stringify: (input: any) => Buffer
Type declaration
(input): Buffer
Convert input arguments into bytes array.
Parameters
| Name | Type |
|---|---|
input | any |
Returns
Buffer