{
  "x402Version": 2,
  "id": 29229,
  "slug": "29229",
  "resource": "https://api.agentstools.dev/crypto/abi",
  "description": "ABI-encode a function call (selector + args) or encode/decode arbitrary ABI types — build and parse EVM calldata correctly.",
  "type": "http",
  "serviceName": "crypto-abi",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "args": [
              "0x52908400098527886E0F7030069857D2E4169EE7",
              "1000000"
            ],
            "op": "encode_call",
            "signature": "transfer(address,uint256)"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "calldata": "0xa9059cbb00000000000000000000000052908400098527886e0f7030069857d2e4169ee700000000000000000000000000000000000000000000000000000000000f4240",
            "selector": "0xa9059cbb"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "args": {
                    "description": "Argument values for op=encode_call/encode",
                    "type": "array"
                  },
                  "data": {
                    "description": "0x calldata/abi bytes for op=decode",
                    "type": "string"
                  },
                  "op": {
                    "enum": [
                      "encode_call",
                      "encode",
                      "decode"
                    ],
                    "type": "string"
                  },
                  "signature": {
                    "description": "Function signature for op=encode_call, e.g. transfer(address,uint256)",
                    "type": "string"
                  },
                  "types": {
                    "description": "ABI type list for op=encode/decode",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "op"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "crypto",
    "abi",
    "encode",
    "decode",
    "calldata",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:07:45.465Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:07:45.208Z"
  },
  "metadata": {
    "serviceName": "crypto-abi",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "args": [
                "0x52908400098527886E0F7030069857D2E4169EE7",
                "1000000"
              ],
              "op": "encode_call",
              "signature": "transfer(address,uint256)"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "calldata": "0xa9059cbb00000000000000000000000052908400098527886e0f7030069857d2e4169ee700000000000000000000000000000000000000000000000000000000000f4240",
              "selector": "0xa9059cbb"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "args": {
                      "description": "Argument values for op=encode_call/encode",
                      "type": "array"
                    },
                    "data": {
                      "description": "0x calldata/abi bytes for op=decode",
                      "type": "string"
                    },
                    "op": {
                      "enum": [
                        "encode_call",
                        "encode",
                        "decode"
                      ],
                      "type": "string"
                    },
                    "signature": {
                      "description": "Function signature for op=encode_call, e.g. transfer(address,uint256)",
                      "type": "string"
                    },
                    "types": {
                      "description": "ABI type list for op=encode/decode",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "op"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}