Contract ABI
get_abiThe JSON ABI of one BlazePhoenix contract, generated from the Solidity sources, with the source revision it was built from. Use it to encode your own calls to the addresses get_deployments returns, or pass errors to decode a revert reason from a failed swap or quote. Returns { contract, revision, abi }; an unknown name returns ok:false with the accepted list. Pure lookup, no RPC.
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": "<contract>"
},
"name": "get_abi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract | Yes | quoter (quotes and previews) | router (swap entry point) | solver | hub | core | errors (the protocol custom-error set, for decoding reverts) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: see code, error | |
| abi | No | ||
| code | No | ||
| error | No | ||
| contract | No | ||
| revision | No |