---
title: "getContractABI"
method: POST
path: "/#particle_abi_getContractAbi"
---

# getContractABI

`POST /#particle_abi_getContractAbi`

## Request

- Base URL: `https://rpc.particle.network/evm-chain`
- URL: `https://rpc.particle.network/evm-chain/#particle_abi_getContractAbi`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/particle/apis/particle-network-enhanced-rpc/docs/%23particle_abi_getContractAbi/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- GetContractABIRequest
  - `jsonrpc` string, required: Version of the JSON-RPC protocol, should be 2.0.
  - `id` integer, required: The request identifier.
  - `method` 'particle_abi_getContractAbi', required: API method being called.
  - `chainId` integer, required: The chain ID.
  - `params` union[], required: Parameters for the API method call.
    - union
      - string
      - boolean

## Response `200`

Success

- GetContractABIResponse
  - `jsonrpc` string: Version of the JSON-RPC protocol, should be 2.0.
  - `id` integer: The request identifier.
  - `result` union
    - string
    - number
    - integer
    - boolean
    - object
    - unknown[]
      - unknown

## Changes

- **2026-11-03** `cc26150c1690`: 1 breaking, 1 info
  - the `allOf[#/components/schemas/RPCResponse]/result` response's property type changed from `object` to no type for status `200`
  - added `#/components/schemas/AnyValue` to the `allOf[#/components/schemas/RPCResponse]/result` response property `anyOf` list for the response status `200`

[Operation history](https://skmtc.dev/particle/apis/particle-network-enhanced-rpc/changes/%23particle_abi_getContractAbi/post.md)

---

[API](https://skmtc.dev/particle/apis/particle-network-enhanced-rpc.md) - [All operations](https://skmtc.dev/particle/apis/particle-network-enhanced-rpc/llms.txt) - [OpenAPI document](https://skmtc.dev/particle/apis/particle-network-enhanced-rpc/revisions/cc26150c1690?raw)
