Code

Get contract code

get

Returns a code of the specified contract.

Path parameters
addressstringRequired

Contract address (starting with KT)

Query parameters
levelinteger · int32Optional

Level at which contract code should be taken. If 0 or not specified, the current value will be returned.

Default: 0
formatinteger · int32 · max: 2Optional

Code format (0 - micheline, 1 - michelson, 2 - bytes (base64))

Default: 0
Responses
200Success
application/octet-stream
Responsestring · binary
get
GET /v1/contracts/{address}/code HTTP/1.1
Host: xtz-index.nownodes.io
Accept: */*
200Success
binary