Skip to main content

get_code

Returns an object containing the smart contract WASM code.

Request Body
account_name Name REQUIRED

Possible values: Value must match regular expression ^[a-z]{1}[a-z1-5.]{1,10}[a-z1-5]{1}$

String representation of basic Inery name type, must be between 3 and 12 characters and contain only a-z and 1-5 and dot(.), but not at the end of the string.

code_as_wasm integer REQUIRED

This must be 1 (true)

Responses
200

OK

Schema
name Name

Possible values: Value must match regular expression ^[a-z]{1}[a-z1-5.]{1,10}[a-z1-5]{1}$

String representation of basic Inery name type, must be between 3 and 12 characters and contain only a-z and 1-5 and dot(.), but not at the end of the string.

code_hash Sha256

Possible values: Value must match regular expression ^[0-9A-Fa-f]{64}$

wast string
wasm string
abi object
version string REQUIRED
types object[] REQUIRED
new_type_name CppSignature REQUIRED

Possible values: Value must match regular expression ^([a-z1-9]{1}[a-z1-9_]{0,30}[a-z1-9]{1})$

C++ variable signature

type Type REQUIRED

Possible values: [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]

Native and Inery types

structs object[] REQUIRED
name CppSignature REQUIRED

Possible values: Value must match regular expression ^([a-z1-9]{1}[a-z1-9_]{0,30}[a-z1-9]{1})$

C++ variable signature

base string REQUIRED
fields object[] REQUIRED
name CppSignature REQUIRED

Possible values: Value must match regular expression ^([a-z1-9]{1}[a-z1-9_]{0,30}[a-z1-9]{1})$

C++ variable signature

type Type REQUIRED

Possible values: [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]

Native and Inery types

actions object[] REQUIRED
name Name REQUIRED

Possible values: Value must match regular expression ^[a-z]{1}[a-z1-5.]{1,10}[a-z1-5]{1}$

String representation of basic Inery name type, must be between 3 and 12 characters and contain only a-z and 1-5 and dot(.), but not at the end of the string.

type Name REQUIRED

Possible values: Value must match regular expression ^[a-z]{1}[a-z1-5.]{1,10}[a-z1-5]{1}$

String representation of basic Inery name type, must be between 3 and 12 characters and contain only a-z and 1-5 and dot(.), but not at the end of the string.

ricardian_contract string REQUIRED
tables object[] REQUIRED
name Name REQUIRED

Possible values: Value must match regular expression ^[a-z]{1}[a-z1-5.]{1,10}[a-z1-5]{1}$

String representation of basic Inery name type, must be between 3 and 12 characters and contain only a-z and 1-5 and dot(.), but not at the end of the string.

index_type IndexType REQUIRED

Possible values: [i64]

key_names CppSignature[]

Possible values: Value must match regular expression ^([a-z1-9]{1}[a-z1-9_]{0,30}[a-z1-9]{1})$

key_types KeyType[]

Possible values: [uint64, double]

type CppSignature

Possible values: Value must match regular expression ^([a-z1-9]{1}[a-z1-9_]{0,30}[a-z1-9]{1})$

C++ variable signature

abi_extensions Extension[] REQUIRED
error_messages string[] REQUIRED
ricardian_clauses string[] REQUIRED
variants string[] REQUIRED