stellar_contract_invoke
Invoke a function on a deployed Soroban contract by specifying contract ID, source account, network, and function name. Simulate, build, or submit the transaction.
Instructions
Invoke a function on a deployed Soroban contract
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": {
"contract_id": "<contract_id>",
"source_account": "<source_account>",
"network": "<network>",
"function_name": "<function_name>"
},
"name": "stellar_contract_invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Transaction fee in stroops | |
| send | No | Transaction sending behavior: default (auto), no (simulate only), yes (always send) | |
| network | Yes | Stellar network | |
| build_only | No | Only build transaction, do not submit | |
| contract_id | Yes | Contract ID or alias to invoke | |
| function_args | No | Arguments to pass to the function as key-value pairs | |
| function_name | Yes | Name of the contract function to invoke | |
| source_account | Yes | Account that will invoke the contract |