Execute GenLayer gen_call
genlayer_call_contractExecutes read, write, or deploy calls on GenLayer contracts via RPC. Specify caller, payload, and type to interact with the blockchain.
Instructions
Execute a live gen_call request for read, write-simulation, or deploy-simulation against the configured GenLayer RPC endpoint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"data": "<data>",
"type": "<type>"
},
"name": "genlayer_call_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target contract address. Omit for deploy requests if the node accepts that shape. | |
| data | Yes | Hex-encoded call data payload. | |
| from | Yes | Caller address. | |
| type | Yes | GenLayer call type. | |
| value | No | Optional hex-encoded value to send. | |
| status | No | Optional state snapshot filter. | |
| blockNumber | No | Optional hex-encoded block number. | |
| leader_results | No | Optional validator-mode leader results. |