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

# POST /get_code

`POST /get_code`

Returns an object containing the smart contract WASM code.

## 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
  - `code_as_wasm` integer, required — This must be 1 (true)

## Response `200`

OK

- object
  - `name` union
    - 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
  - `code_hash` string
  - `wast` string
  - `wasm` string
  - `abi` 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)
