Codes
Returns all the codes associated with a given package entity. The returned response is in a paginated format, ordered by first appearance on the ledger.
Body
all ofOptionalExample:
{"package_address":"<package-address>"}
Responses
200
Package Blueprints (paginated)
application/json
Responseall of
4XX
Client-originated request error
application/json
post
POST /state/package/page/codes HTTP/1.1
Host: xrd-gateway.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"package_address": "<package-address>"
}
{
"ledger_state": {
"network": "<network-name>",
"state_version": 1,
"proposer_round_timestamp": "text",
"epoch": 1,
"round": 1
},
"total_count": 1,
"next_cursor": "text",
"items": [
{
"vm_type": "Native",
"code_hash_hex": "text",
"code_hex": "text"
}
],
"package_address": "text"
}