invoke_contract
Invoke smart contract methods on Neo N3. Read operations run without a wallet; write operations require a private key and explicit confirmation.
Instructions
Invoke a smart contract method. Read operations run without a wallet. Write operations require fromWIF and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network to use: mainnet or testnet | |
| fromWIF | No | Sender WIF private key (required for write operations) | |
| contract | No | Contract reference: known name (e.g. "NeoFS"), script hash (0x...), or Neo address | |
| scriptHash | No | Contract script hash (40 hex chars, optional 0x prefix) | |
| contractName | No | Known contract name (e.g. "GAS", "NEO", "NeoFS") | |
| nameOrHash | No | Contract name or script hash (alias for contract) | |
| operation | Yes | Contract method name to invoke | |
| args | No | Method arguments as an array of values | |
| signers | No | Transaction signer scopes for write operations | |
| confirm | No | Set to true to execute write operations (safety confirmation) |