contract_call_raw_function
Execute a raw function call on a NEAR contract, creating a transaction with gas and NEAR costs. Specify account IDs, method name, arguments, gas, and deposit for precise execution on testnet or mainnet.
Instructions
Call a function of a contract as a raw function call action. This tool creates a function call as a transaction which costs gas and NEAR.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accountId | Yes | The account id of the signer. | |
args | Yes | The arguments to pass to the method. | |
attachedDeposit | No | The amount to attach to the function call (default to 1 yoctoNEAR). Can be specified as a number (in NEAR) or as a bigint (in yoctoNEAR). | |
contractAccountId | Yes | The account id of the contract. | |
gas | No | The amount of gas to use for the function call in yoctoNEAR (default to 30TGas). | |
methodName | Yes | The name of the method to call. | |
networkId | No | mainnet |