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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accountId": {
"description": "The account id of the signer.",
"type": "string"
},
"args": {
"additionalProperties": {},
"description": "The arguments to pass to the method.",
"type": "object"
},
"attachedDeposit": {
"default": 1.0000000000000001e-24,
"description": "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).",
"type": [
"number",
"integer"
]
},
"contractAccountId": {
"description": "The account id of the contract.",
"type": "string"
},
"gas": {
"description": "The amount of gas to use for the function call in yoctoNEAR (default to 30TGas).",
"format": "int64",
"type": "integer"
},
"methodName": {
"description": "The name of the method to call.",
"type": "string"
},
"networkId": {
"default": "mainnet",
"enum": [
"testnet",
"mainnet"
],
"type": "string"
}
},
"required": [
"accountId",
"contractAccountId",
"methodName",
"args"
],
"type": "object"
}