Download OpenAPI specification:
This API is currently in Beta
This specification may experience breaking changes as part of Babylon Node releases. Such
changes will be clearly mentioned in the babylon-node release notes.
We advise against using this API for business-critical integrations before the version
indicated above becomes stable, which is expected in Q4 of 2024.
This API provides a complete view of the current ledger state, operating at a relatively low level (i.e. returning Entities' data and type information in a generic way, without interpreting specifics of different native or custom components).
It mirrors how the Radix Engine views the ledger state in its "System" layer, and thus can be useful for Scrypto developers, who need to inspect how the Engine models and stores their application's state, or how an interface / authentication scheme of another component looks like.
Endpoints offering additional information based on data sources outside of the Radix Engine's runtime storage.
Lists addresses of all entities meeting the requested search criteria, in an iterator-like paged fashion.
object (EntitySearchFilter) | |
| max_page_size | integer <int32> (MaxPageSize) [ 1 .. 100 ] A maximum number of items to be included in the paged listing response. |
| continuation_token | string (ContinuationToken) An opaque string conveying the information on where the next page of results starts. It is returned in every paged listing response (except for the last page), and it can be passed in every paged listing request (in order to begin listing from where the previous response ended). |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "filter": {
- "type": "Blueprint"
}, - "max_page_size": 1,
- "continuation_token": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "page": [
- {
- "entity_address": "string",
- "system_type": "Object",
- "entity_type": "GlobalPackage",
- "is_global": true,
- "created_at_state_version": 1,
- "blueprint": {
- "package_address": "string",
- "blueprint_name": "string"
}
}
], - "continuation_token": "string"
}Resolves basic information about an entity: its type, attached modules, fields/collections and blueprint.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "info": {
- "system_type": "Object",
- "ancestry": {
- "parent_entity_address": "string",
- "root_entity_address": "string"
}
}
}Reads the current value of an object's field, given an entity address, a module (Main by
default) and either a field index or its human-readable name (if applicable).
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
| attached_module_id | string (AttachedModuleId) Enum: "Metadata" "Royalty" "RoleAssignment" Attached Module ID; should only be specified when reading a field of some attached module. Should be skipped to read the Object's own field. |
| field_name | string Name of the field to read. Either this or |
| field_index | integer <int32> [ 0 .. 255 ] Index of the field to read. Either this or |
object (SborFormatOptions) Requested SBOR representation to use for every | |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "attached_module_id": "Metadata",
- "field_name": "string",
- "field_index": 255,
- "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "content": {
- "raw_hex": "string",
- "programmatic_json": { }
}
}Lists keys of all entries from a particular object's collection, in an iterator-like paged fashion
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
| attached_module_id | string (AttachedModuleId) Enum: "Metadata" "Royalty" "RoleAssignment" Attached Module ID; should only be specified when reading a collection of some attached module. Should be skipped to read the Object's own collection. |
| collection_name | string Name of the collection to read. Either this or |
| collection_index | integer <int32> [ 0 .. 255 ] Index of the collection to read. Either this or |
object (SborFormatOptions) Requested SBOR representation to use for every | |
| max_page_size | integer <int32> (MaxPageSize) [ 1 .. 100 ] A maximum number of items to be included in the paged listing response. |
| continuation_token | string (ContinuationToken) An opaque string conveying the information on where the next page of results starts. It is returned in every paged listing response (except for the last page), and it can be passed in every paged listing request (in order to begin listing from where the previous response ended). |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "attached_module_id": "Metadata",
- "collection_name": "string",
- "collection_index": 255,
- "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "max_page_size": 1,
- "continuation_token": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "page": [
- {
- "kind": "KeyValueStore"
}
], - "continuation_token": "string"
}Reads the current value of a specific entry from an Object's Collection.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
| attached_module_id | string (AttachedModuleId) Enum: "Metadata" "Royalty" "RoleAssignment" Attached Module ID; should only be specified when reading a collection of some attached module. Should be skipped to read the Object's own collection. |
| collection_name | string Name of the collection to read. Either this or |
| collection_index | integer <int32> [ 0 .. 255 ] Index of the collection to read. Either this or |
required | object (CollectionEntryKey) The key to look up the entry by.
Exactly one of the available SBOR formats must be present on the |
object (SborFormatOptions) Requested SBOR representation to use for every | |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "attached_module_id": "Metadata",
- "collection_name": "string",
- "collection_index": 255,
- "key": {
- "kind": "KeyValueStore"
}, - "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "content": {
- "raw_hex": "string",
- "programmatic_json": { }
}
}Lists keys of all metadata entries defined for a particular Object, in an iterator-like paged fashion
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
| max_page_size | integer <int32> (MaxPageSize) [ 1 .. 100 ] A maximum number of items to be included in the paged listing response. |
| continuation_token | string (ContinuationToken) An opaque string conveying the information on where the next page of results starts. It is returned in every paged listing response (except for the last page), and it can be passed in every paged listing request (in order to begin listing from where the previous response ended). |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "max_page_size": 1,
- "continuation_token": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "page": [
- {
- "key": "string"
}
], - "continuation_token": "string"
}Reads the current value of a specific Object's metadata by key.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
| key required | string The metadata key (i.e. always a string) to look up the entry by. |
object (SborFormatOptions) Requested SBOR representation to use for every | |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "key": "string",
- "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "content": {
- "type": "String"
}
}Reads the current assignment of particular Object's Access Rules to Roles defined by the Blueprint.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "owner": {
- "rule": {
- "type": "Protected"
}, - "updater": "None"
}, - "main_module_roles": [
- {
- "key": "string",
- "assignment": {
- "type": "Owner"
}
}
], - "attached_modules": [
- {
- "attached_module_id": "Metadata",
- "roles": [
- {
- "key": "string",
- "assignment": {
- "type": "Owner"
}
}
]
}
]
}Reads the currently configured Package and Component Royalty amounts of particular Object's methods.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "method_royalties": [
- {
- "name": "string",
- "component_royalty_amount": {
- "amount": "string",
- "unit": "XRD"
}, - "package_royalty_amount": {
- "amount": "string",
- "unit": "XRD"
}
}
]
}Lists keys of all entries from a particular Key-Value Store, in an iterator-like paged fashion
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
object (SborFormatOptions) Requested SBOR representation to use for every | |
| max_page_size | integer <int32> (MaxPageSize) [ 1 .. 100 ] A maximum number of items to be included in the paged listing response. |
| continuation_token | string (ContinuationToken) An opaque string conveying the information on where the next page of results starts. It is returned in every paged listing response (except for the last page), and it can be passed in every paged listing request (in order to begin listing from where the previous response ended). |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "max_page_size": 1,
- "continuation_token": "string",
- "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "page": [
- {
- "key": {
- "raw_hex": "string",
- "programmatic_json": { }
}
}
], - "continuation_token": "string"
}Reads the current value of a specific entry from a Key-Value Store.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
required | object (SborData) The key to look up the entry by. Exactly one of the available SBOR formats must be used. |
object (SborFormatOptions) Requested SBOR representation to use for every | |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "key": {
- "raw_hex": "string",
- "programmatic_json": { }
}, - "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "content": {
- "raw_hex": "string",
- "programmatic_json": { }
}
}Returns all externally-relevant information about a particular blueprint.
| package_address required | string (PackageAddress) A Bech32m-encoded, human readable rendering of a Package address. |
| blueprint_name required | string |
| blueprint_version | string A string of format |
object (SborFormatOptions) Requested SBOR representation to use for every | |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "package_address": "string",
- "blueprint_name": "string",
- "blueprint_version": "string",
- "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "info": {
- "outer_blueprint_name": "string",
- "is_transient": true,
- "generic_type_parameters": [
- {
- "type": "Any"
}
], - "available_features": [
- "string"
], - "fields": [
- {
- "index": 255,
- "name": "string",
- "type_reference": {
- "type": "Static"
}, - "condition": {
- "type": "IfOwnFeature"
}, - "transience": {
- "default_value": {
- "raw_hex": "string",
- "programmatic_json": { }
}
}
}
], - "collections": [
- {
- "index": 255,
- "name": "string",
- "kind": "KeyValueStore",
- "key_type_reference": {
- "type": "Static"
}, - "value_type_reference": {
- "type": "Static"
}
}
], - "functions": [
- {
- "name": "string",
- "input_type_reference": {
- "type": "Static"
}, - "output_type_reference": {
- "type": "Static"
}, - "authorization": {
- "type": "Public"
}, - "royalty_amount": {
- "amount": "string",
- "unit": "XRD"
}
}
], - "methods": [
- {
- "name": "string",
- "receiver": {
- "receiver_type": "SelfRef",
- "reference_types": [
- "Normal"
]
}, - "input_type_reference": {
- "type": "Static"
}, - "output_type_reference": {
- "type": "Static"
}, - "authorization": {
- "type": "Public"
}, - "royalty_amount": {
- "amount": "string",
- "unit": "XRD"
}
}
], - "roles": {
- "type": "Local"
}, - "events": [
- {
- "name": "string",
- "type_reference": {
- "type": "Static"
}
}
], - "named_types": [
- {
- "name": "string",
- "type_reference": {
- "type": "WellKnown",
- "name": "string"
}
}
]
}
}Reads the contents of a specific schema associated with an entity.
| entity_address required | string (EntityAddress) A Bech32m-encoded, human readable rendering of an arbitrary Entity's address. |
| schema_hash required | string (SchemaHash) = 64 characters A hex-encoded Schema hash, capturing the identity of an SBOR schema. |
object (SborFormatOptions) Requested SBOR representation to use for every | |
object (LedgerStateSelector) An optional specification of a historical ledger state at which to execute the request.
The "historical state" feature (see the |
{- "entity_address": "string",
- "schema_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "sbor_format_options": {
- "raw_hex": true,
- "programmatic_json": true
}, - "at_ledger_state": {
- "type": "ByStateVersion"
}
}{- "at_ledger_state": {
- "state_version": 1,
- "header_summary": {
- "epoch_round": {
- "epoch": 10000000000,
- "round": 10000000000
}, - "ledger_hashes": {
- "state_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "transaction_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri",
- "receipt_tree_hash": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "proposer_timestamp": {
- "unix_timestamp_ms": "string",
- "date_time": "string"
}
}
}, - "content": {
- "raw_hex": "string",
- "programmatic_json": { }
}
}