Const
Constructs Action instance representing contract method call.
the name of the method to call
arguments to pass to method. Can be either plain JS object which gets serialized as JSON automatically
or Uint8Array
instance which represents bytes passed as is.
max amount of gas that method call can use
amount of NEAR (in yoctoNEAR) to send together with the call
Convert input arguments into bytes array.
Converts an input argument to a Buffer, handling cases for both JSON and Uint8Array.
The input argument, either JSON object or Uint8Array.
A Buffer representation of the input argument.
Is contract from JS SDK, skips stringification of arguments.
Creates an access key with function call permission for a specific receiver and method names.
The NEAR account ID of the function call receiver.
An array of method names allowed for function calls.
Optional
allowance: bigintAn optional allowance (maximum amount) for the function call. Default: Unlimited.
A new access key with function call permission.
Creates a new action for a signed delegation, specifying the delegate action and signature.
A new action for a signed delegation.
Creates a new action for adding a public key with a specified access key.