---
title: "POST /get_abi"
method: POST
path: "/get_abi"
---

# POST /get_abi

`POST /get_abi`

Retrieves the ABI for a contract based on its account name

## Request body

- object
  - `account_name` union, required
    - string — String representation of privileged EOSIO name type
    - string — String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5
    - string — String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed
    - string — String representation of EOSIO name type

## Response `200`

OK

- Abi
  - `version` string, required
  - `types` AbiType[], required
    - `new_type_name` string, required — C++ variable signature
    - `type` 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'float32' | 'float64' | 'float128' | 'bytes' | 'name' | 'string' | 'time_point' | 'time_point_sec' | 'symbol_code' | 'symbol' | 'asset' | 'checksum160' | 'checksum256' | 'checksum521' | 'public_key' | 'private_key' | 'signature' | 'account_name' | 'action_name', required — Native and EOSIO types
  - `structs` AbiStruct[], required
    - `name` string, required — C++ variable signature
    - `base` string, required
    - `fields` AbiStructFields[], required
      - `name` string, required — C++ variable signature
      - `type` 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'float32' | 'float64' | 'float128' | 'bytes' | 'name' | 'string' | 'time_point' | 'time_point_sec' | 'symbol_code' | 'symbol' | 'asset' | 'checksum160' | 'checksum256' | 'checksum521' | 'public_key' | 'private_key' | 'signature' | 'account_name' | 'action_name', required — Native and EOSIO types
  - `actions` AbiAction[], required
    - `name` union, required
      - string — String representation of privileged EOSIO name type
      - string — String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5
      - string — String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed
      - string — String representation of EOSIO name type
    - `type` union, required
      - string — String representation of privileged EOSIO name type
      - string — String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5
      - string — String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed
      - string — String representation of EOSIO name type
    - `ricardian_contract` string, required
  - `tables` AbiTable[], required
    - `name` union, required
      - string — String representation of privileged EOSIO name type
      - string — String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5
      - string — String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed
      - string — String representation of EOSIO name type
    - `index_type` 'i64', required
    - `key_names` CppSignature[]
    - `key_types` KeyType[]
    - `type` string — C++ variable signature
  - `abi_extensions` Extension[], required
    - union[]
      - union
        - integer
        - string
  - `error_messages` string[], required
  - `ricardian_clauses` string[], required
  - `variants` string[], required

---

[API](https://skmtc.net/worldwide-asset-exchange/apis/chain-api.md) · [All operations](https://skmtc.net/worldwide-asset-exchange/apis/chain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/worldwide-asset-exchange/chain-api/versions/5bfa22186461/schema)
