Operational scripts for reliable blockchain interactions in this repo.
These helpers use curl + JSON-RPC where possible to avoid environment-specific issues with direct cast RPC calls.
Computes config hash components and optionally broadcasts updateConfig on-chain.
# Dry-run
scripts/update_config.sh \
--model gpt-5.3-codex \
--tools "exec_command,write_stdin,..." \
--runtime "codex-cli:0.101.0"
# Broadcast
scripts/update_config.sh \
--model gpt-5.3-codex \
--tools "exec_command,write_stdin,..." \
--runtime "codex-cli:0.101.0" \
--broadcastOne-command flow that chains:
- hash computation, 2) broadcast, 3) tx receipt check, 4) on-chain resolve verification.
scripts/update_and_verify.sh \
--model gpt-5.3-codex \
--tools "exec_command,write_stdin,..." \
--runtime "codex-cli:0.101.0"Output includes:
- expected
configHash txHash- final pass/fail assertion that on-chain
configHashmatches expected
Generic JSON-RPC wrapper.
scripts/rpc_call.sh --method eth_chainId --result-only
scripts/rpc_call.sh --method eth_blockNumber --result-only
scripts/rpc_call.sh --method eth_getTransactionByHash --params '["0x<txhash>"]'Calls resolve(address) against the registry and decodes the result.
# Human-readable output
scripts/resolve_agent.sh
# JSON output
scripts/resolve_agent.sh --json
# For a specific agent/registry
scripts/resolve_agent.sh --agent 0x... --registry 0x...Checks whether a transaction is pending/success/failed and prints key receipt fields.
scripts/tx_status.sh --tx 0x<txhash>
scripts/tx_status.sh --tx 0x<txhash> --json- Compute hash and review inputs:
scripts/update_config.sh --model <model> --tools "<tools>" --runtime "<runtime>"- Broadcast update:
scripts/update_config.sh --model <model> --tools "<tools>" --runtime "<runtime>" --broadcast- Verify tx outcome:
scripts/tx_status.sh --tx 0x<txhash>- Verify on-chain agent state:
scripts/resolve_agent.sh --json- Update docs (
IDENTITY.md,README.md) with the new config hash and tx hash.
Use this to do steps 1-4 in one command:
scripts/update_and_verify.sh --model <model> --tools "<tools>" --runtime "<runtime>"