Get code

post

Returns an object containing the smart contract WASM code.

Body
account_nameany ofRequired
stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
code_as_wasmintegerRequired

This must be 1 (true)

Default: 1
Responses
200
OK
application/json
post
POST /v1/chain/get_code HTTP/1.1
Host: eos.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "account_name": "text",
  "code_as_wasm": 1
}
200

OK

{
  "name": "text",
  "code_hash": "text",
  "wast": "text",
  "wasm": "text",
  "abi": {
    "version": "text",
    "types": [
      {
        "new_type_name": "text",
        "type": "uint8"
      }
    ],
    "structs": [
      {
        "name": "text",
        "base": "text",
        "fields": [
          {
            "name": "text",
            "type": "uint8"
          }
        ]
      }
    ],
    "actions": [
      {
        "name": "text",
        "type": "text",
        "ricardian_contract": "text"
      }
    ],
    "tables": [
      {
        "name": "text",
        "index_type": "i64",
        "key_names": [
          "text"
        ],
        "key_types": [
          "uint64"
        ],
        "type": "text"
      }
    ],
    "abi_extensions": [
      [
        1
      ]
    ],
    "error_messages": [
      "text"
    ],
    "ricardian_clauses": [
      "text"
    ],
    "variants": [
      "text"
    ]
  }
}