Home

Get contract code

GET
https://xtz-index.nownodes.io/v1/contracts/{address}/code

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns a code of the specified contract.

Parameters

addressstringrequiredpath

Contract address (starting with KT)

levelinteger<int32>0query

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

formatinteger<int32>[0, 2]0query

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

Response

200OK

Successful response.

400Bad Request

Invalid request.