Ledger (2.21.0)

Download OpenAPI specification:

Ledger key concepts

Anchor

Anchors are ledger records that represent a link between user wallets in the ledger. It can be used in the onboarding process of alias directories.

Circle

A circle is a ledger record that represents a role or group of signers. This can be useful for grouping signers and easing access rules management since access can be granted to circles instead of specific signer handles or public keys.

Custom data

When creating a new record, additional custom data can be added in a form of a key:value pair. It is added in a custom object in the API request. For example, when adding a new wallet, request can have an additional description in a form of:

{
  ...
  "custom": {
    "type": "bank",
    "email": "info@bank.com"
  }
  ...
}

Effect

Effects describe behaviors that can be triggered because of a change in the ledger data. Effects are the main mechanism for adding new functionality to ledgers that is use case specific.

Each change in ledger data structures broadcasts an event that can be used to notify external systems through effects. Event is identified by a signal - one of the predefined names provided by the Ledger.

Each effect is registered for specific event signal. It also has a filter which allows for more granular control of conditions that are going to trigger event forwarding. Filter can be used to select only certain events based on the event data.

Effect action defines how to forward the events to external systems or ledger plugins. For example calling the external system through webhooks.

Intent

Intents describe all ledger balance movements. Each intent can contain one or more claims. A claim is a statement about an action that user or system wants to record in a ledger.

Claims can describe various actions, and number of supported actions is expected to grow over time as new use cases are supported.

All claims that are part of an intent are going to be cleared by the ledger atomically. This means that either all or none of the intent claims are going to be accepted by the ledger.

Intents must also have a unique handle. This property is used to ensure idempotency of operations in case of timeouts and retries. It can also be useful as means of efficiently retrieving past intents. Handle can be generated randomly or it can be a user supplied value, but it has to be unique for each intent.

Intents supports custom data in the same way as all other ledger records. Custom data can be used to record additional metadata about an operation. For example, you can record an invoice id that is being payed, a payment description, type of payment, location, etc.

Policy

A policy is a ledger record that represents a set of access rules that can be applied to records. The main benefits of access policies is to simplify the interactions when creating ledger records and to allow system administrators to control access rules in a centralized way.

Request

If enabled, Ledger logs most incoming and outgoing requests as Request records. Specifically, all API calls related to Ledger Records as well as intent processing and event dispatch calls are logged.

These records are signed by Ledger and can be accessed like any other record.

Source and target represent the origin and destination of the request. They are of the format prefix:handle where prefix can be ledger, signer, bridge or effect. ledger represents the Ledger service and signer or bridge is determined by the JWT sub claim of an incoming request. effect is used when dispatching messages and unknown when it's not possible to determine the source or target.

Record represents the record that the request refers to and is either just the record type like wallet, intent, etc. when querying collections or eg. wallet:handle when referring to a specific wallet.

Action represents the action taken and in case or REST requests uniquely identifies an endpoint in combination with Record.

Signer

A signer is a ledger record that allows linking signing keys with additional metadata. This can be useful for recording information like additional security constraints or even linking keys to external records that are not necessarily managed by or stored in the ledger.

Cryptographic key pairs are used for signing and verification of ledger requests and every signer has to contain a key pair.

Schema

A schema record identifies a set of constraints used to validate ledger records. When a record has a schema defined, it will be validated before it can be stored in the ledger. This allows for a flexible data model that can be extended over time.

Symbol

A symbol record identifies a unit of exchange. Each ledger balance has an amount and a symbol that this amount represents. Symbols can identify currencies, loyalty points, or any other concept that can be counted. Whoever controls a symbol also controls the supply of that symbol in the ledger, i.e., owner of a symbol can issue unlimited amounts of a symbol.

While the owner controls issuance, the circulation of a symbol is controlled by those who hold balances of said symbol. This means that once you send a specific balance to someone, you cannot control it anymore, regardless if you own the symbol or not.

Wallet

Wallets are ledger records that hold balances. Each wallet has a unique handle that identifies it. This handle is used in intents, balance queries, and any other operations involving a wallet.

Handle is defined by the user, so it is useful to use something that is user friendly and easy to remember. Handles can be phone numbers, emails, bank account numbers, usernames, etc. Format and types of handles mostly depends on the use case that is being built on top of a ledger.

Wallets are used to represent anything that can hold a balance. For example, bank accounts, loyalty point accounts, subscriptions, bills, loans, etc. All of those use cases can be modeled by mapping them to wallets.

Report

Reports are ledger records that represent individual generated reports.

Report types are determined by the report schema and report generation parameters are contained in the custom field.

Anchor

Create an anchor

Creates a new anchor record in the system.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Anchor body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (anchor-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List anchors

Retrieves all the anchors from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (anchor-filter-query)
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read an anchor

Retrieves an anchor identified by the provided handle. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update an anchor

Updates an anchor identified by the provided handle. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Anchor body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (anchor-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Drop an anchor

Drops an anchor identified by the provided handle. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Anchor drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

Sign an anchor

Adds a signature to an anchor identified by the provided handle. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in an anchor

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the anchor doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Drop an anchor

Drops an anchor identified by the provided handle. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Anchor drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

List an anchor changes

Retrieves a list of anchor changes identified by the provided handle. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read an anchor change

Retrieves an anchor change identified by the provided handle and change. If the anchor with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Bridge

Create a bridge.

Creates a new bridge. A Bridge represents a ledger configuration record that is used to register remote services with the ledger. An example of a bridge is an integration service that connects with a banking core in order to perform debit and credit operations in response to ledger balance movements.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Bridge body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (bridge-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List bridges

Retrieves all the bridges from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a bridge

Returns a bridge identified by the provided handle. If the bridge with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a bridge

Updates a bridge identified by the provided handle. If the bridge with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Bridge body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (bridge-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a bridge

Adds a signature to a bridge identified by the provided handle. If the bridge with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a bridge instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the bridge doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List bridge changes

Retrieves a list of bridge changes for the bridge identified by the provided handle. If the bridge with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a bridge change

Returns a bridge change identified by the provided change for the bridge identified by the provided id. If the bridge with the provided id or change doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

Mark the status of a bridge as active

Creates a new bridge. A Bridge represents a ledger configuration record that is used to register remote services with the ledger. An example of a bridge is an integration service that connects with a banking core in order to perform debit and credit operations in response to ledger balance movements.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Body of options to use when activating a bridge

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (activate-bridge-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

Circle

Create a circle

Circles describes roles or groups of signers.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Circle body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (circle-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List circles

Retrieves all the circles from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a circle

Retrieves a circle identified by the provided handle. If the circle with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a circle

Updates a circle identified by the provided handle. If the circle with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Circle body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (circle-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a circle

Adds a signature to a circle identified by the provided handle. If the circle with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a circle

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the circle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Assign a signer to a circle

Circles describes roles or groups of signers.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Circle signer body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (circle-signer-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List circle signers

Retrieves all the signers of a circle

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Remove a signer of a circle

Remove a circle signer link

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

required
address (string) or luid (string)

The unique identifier of the record linked - it is luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Circle signer drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

List a circle changes

Retrieves a list of circle changes for the circle identified by the provided handle. If the circle with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a circle change

Retrieves a circle change identified by the provided change for the circle identified by the provided handle. If the circle with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Domain

Create a domain

Creates a new domain. A domain represents a namespace in the ledger. Domains can contain other ledger records and are a way to achieve data separation in the ledger.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Domain body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (domain-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List domains

Retrieves all the domains from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a domain

Retrieves a domain identified by the provided handle. If the domain with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
handle (string) or luid (string)

The unique identifier of the record - it is luid or handle. Tied to multi tenancy.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a domain

Updates a domain identified by the provided handle. If the domain with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
handle (string) or luid (string)

The unique identifier of the record - it is luid or handle. Tied to multi tenancy.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Domain body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (domain-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a domain

Adds a signature to a domain identified by the provided handle. If the domain with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
handle (string) or luid (string)

The unique identifier of the record - it is luid or handle. Tied to multi tenancy.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List a domain changes

Retrieves all the changes of a domain identified by the provided handle. If the domain with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
handle (string) or luid (string)

The unique identifier of the record - it is luid or handle. Tied to multi tenancy.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Check access in a domain

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the domain doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Read a domain change

Retrieves a domain change identified by the provided handle and change. If the domain with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
handle (string) or luid (string)

The unique identifier of the record - it is luid or handle. Tied to multi tenancy.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Effect

Create an effect

Effects describe behaviors that can be triggered because of a change in the ledger data. Effects are the main mechanism for adding new functionality to ledgers that is use case specific.

Each change in ledger data structures broadcasts an event that can be used to notify external systems through effects. Event is identified by a signal - one of the predefined names provided by the Ledger:

  • balance-received - raised when wallet receives a balance
  • effect-created - raised when a new effect is created
  • intent-created - raised when a new intent is created
  • signer-created - raised when a new effect is created
  • symbol-created - raised when a new symbol is created
  • wallet-created - raised when a new wallet is created

Each effect is registered for specific event signal. It also has a filter which allows for more granular control of conditions that are going to trigger event forwarding. Filter can be used to select only certain events based on the event data.

Effect action defines how to forward the events to external systems or ledger plugins. For example calling the external system through webhooks.

Currently only one mechanism is supported:

  • webhook - call an external system through webhooks
Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Effect body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (effect-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List effects

Retrieves all the effects from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read an effect

Retrieves an effect identified by the provided handle. If the effect with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update an effect

Updates an effect identified by the provided handle. If the effect with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Effect body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (effect-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign an effect

Adds a signature to an effect identified by the provided handle. If the effect with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in an effect

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the effect doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List an effect changes

Retrieves a list of effect changes for the effect identified by the provided handle. If the effect with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read an effect change

Retrieves an effect change identified by the provided change for the effect identified by the provided handle. If the effect with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Intent

Create an intent

Intents describe all ledger balance movements. Each intent can contain one or more claims. A claim is a statement about an action that a user or a system wants to record in a ledger.

Claims can describe various actions, and number of supported actions is expected to grow over time as new use cases are supported.

All claims that are part of an intent are going to be cleared by the ledger atomically. This means that either all or none of the intent claims are going to be accepted by the ledger.

Currently, supported actions for claims are:

  • issue - used when issuing new balance from symbol to target wallet. This action increases the total value of balances in the system.
  • transfer - used when transfering balance from source to target wallet.
  • destroy - used when destroying a balance from source wallet. This action decreases the total value of balances in the system.
  • limit - used when applying a limit to a wallet. This action will update the limit for the specified metric on the requested wallet.
Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Intent body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object
required
object (intent-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List intents

Retrieves all the intents from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (intent-filter-query)

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read an intent

Retrieves an intent identified by the provided handle. If the intent with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List a intent changes

Retrieves a list of intent changes for the intent identified by the provided handle. If the intent with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read an intent change

Retrieves an intent change identified by the provided change for the intent identified by the provided handle. If the intent with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Sign an intent

Adds a signature to an intent identified by the provided handle. If the intent with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

required
object (intent-proof-data)

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in an intent

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the intent doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Ledger

Create a ledger instance.

Creates a new ledger instance. A ledger instance stores configurations about the ledger such as global access rules and the ledger signer, responsible for signing transactions owned by the ledger

Authorizations:
NoneBearerAuth
Request Body schema: application/json
required

Ledger body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (ledger-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List ledger instances

Retrieves all the ledger instances from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a ledger instance

Retrieves a ledger instance loaded in context. If the ledger instance with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a Ledger instance

Updates a ledger instance loaded in context. If the ledger instance with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Ledger instance body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (ledger-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a ledger

Adds a signature to a ledger loaded in context. If the ledger doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a ledger instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the ledger doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List ledger instance changes

Retrieves all the changes of a ledger instance loaded in context. If the ledger instance with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a ledger change

Retrieves a ledger change record by its handle. If the ledger change record with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Policy

Create a policy

Policies describes roles or groups of signers.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Policy body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
any (policy-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List policies

Retrieves all the policies from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (policy-filter-query)

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a policy

Retrieves a policy identified by the provided handle. If the policy with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a policy

Updates a policy identified by the provided handle. If the policy with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Policy body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
any (policy-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a policy

Adds a signature to a policy identified by the provided handle. If the policy with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a policy

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the policy doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List a policy changes

Retrieves a list of policy changes for the policy identified by the provided handle. If the policy with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a policy change

Retrieves a policy change identified by the provided change for the policy identified by the provided handle. If the policy with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Report

Create a report

This entity enables systematic recording and analysis of financial operations while maintaining security and auditability.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Report body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object
required
object (report-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List reports

Retrieves all reports from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (report-filter-query)
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a report

Retrieves a report identified by the provided handle. If the report with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Drop a report

Drops a report identified by the provided handle. If the report with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Report drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

Sign a report

Adds a signature to a report identified by the provided handle. If the report with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

required
object (report-proof-custom)

Object that can additionally describe the record using key:value pairs

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a report instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the report doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Drop a report

Drops a report identified by the provided handle. If the report with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Report drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

List report changes

Retrieves a list of report changes for the report identified by the provided handle. If the report with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a report change

Retrieves a report change identified by the provided change for the report identified by the provided id. If the report with the provided id doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Schema

Create a schema

Creates a new schema. Schemas contains a set of rules and constraints that can be used to validate records. Each schema has a record property which references the type of records that can be validated using the schema. A schema can optionally extend another one by using the extend property which references the parent schema by its handle. If a record type has at least one schema, a schema will be mandatory for all records of that type. To specify which schema should be used to validate a record, the schema property must be passed when creating or updating a record.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Schema body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (schema-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List schemas

Retrieves all the schemas from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (schema-filter-query)

Query by record type

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a schema

Retrieves a schema identified by the provided handle. If the schema with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update an schema

Updates a schema identified by the provided handle. If the schema with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Schema body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (schema-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a schema

Adds a signature to a schema identified by the provided handle. If the schema with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a schema instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the schema doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List a schema changes

Retrieves a list of schema changes identified by the provided handle. If the schema with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a schema change

Retrieves a schema change identified by the provided change for the schema identified by the provided handle. If the schema with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Signer

Create a new signer

Creates a new key pair. Private key is encrypted using secret parameter from the request. Ledger is using Ed25519 (EdDSA, Curve25519) to generate signing keys.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Signer body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (signer-data)

Responses

Request samples

Content type
application/json
Example
{
  • "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
  • "data": {
    },
  • "meta": {
    }
}

Response samples

Content type
application/json
Example
{
  • "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
  • "data": {
    },
  • "luid": "$snr.-0-eKP5De7kFWdKa-",
  • "meta": {
    }
}

List signers

Retrieves all the signers from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object
Examples:
  • handle.$regex=.*@minka.io - Example of a signer filter with regex
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "5b098c469e7f651c0abd11fc66869dab8ccdccdd98feed633dbd9de2eed0fab0",
  • "meta": {
    },
  • "data": [
    ],
  • "page": {
    }
}

Read a signer

Retrieves a signer identified by the provided handle. If the signer with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
  • "data": {
    },
  • "luid": "$snr.-0-eKP5De7kFWdKa-",
  • "meta": {
    }
}

Update a Signer

Updates a signer identified by the provided handle. If the signer with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Signer body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (signer-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
  • "luid": "$snr.-0-eKP5De7kFWdKa-",
  • "data": {
    },
  • "meta": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
  • "data": {
    },
  • "luid": "$snr.-0-eKP5De7kFWdKa-",
  • "meta": {
    }
}

Sign a signer

Adds a signature to a signer identified by the provided handle. If the signer with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
  • "digest": "ee5fdd6da9ed01fa29197bf9cae81b4b88c373582f944ecd7ce2104d70241f64",
  • "result": "wIa74daE07iTxfc4O0Yh9oIPQR5sdpUnvpJyyKhVsQo9+Qeimud0UuPD6ODov/hP6iV5znsa9oOdaJrPYVimDQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
  • "data": {
    },
  • "luid": "$snr.-0-eKP5De7kFWdKa-",
  • "meta": {
    }
}

Check access in a signer instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the signer doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "82ec2db864a10213d3a53faf0c48b482adf95be5b7cecfa05fdce05887db0a70",
  • "data": {
    },
  • "meta": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "d218b00c25884373e94ea797d3e00dd81157a74ac9ac5e95e003a001d7d9f743",
  • "meta": {
    },
  • "data": [
    ]
}

List a signer changes

List all changes to a signer record.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "fa134a4d353c2ec3e583d6a12378571ad54db9538c3a6bd4a58ac5dc2ebb7531",
  • "meta": {
    },
  • "data": [
    ],
  • "page": {
    }
}

Read a signer change

Retrieves a signer change identified by the provided handle and change. If the signer with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
  • "luid": "$snr.-0-eKP5De7kFWdKa-",
  • "meta": {
    },
  • "data": {
    }
}

Symbol

Create a symbol

Creates a new symbol. A symbol record identifies a unit of exchange. Symbols can identify currencies, loyalty points, or any other concept that can be counted. When creating a symbol, factor has to be specified - it is a number that is a power of 10 - 10ˆn - where n represents the number of decimal places valid for the created symbol. For example:

  • if factor == 1 values identified by this symbol are integers,
  • if factor == 10 values have 1 decimal place,
  • if factor == 100 values have 2 decimal places, etc.
Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Symbol body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (symbol-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List symbols

Retrieves all the symbols from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a symbol

Retrieves a symbol identified by the provided handle. If the symbol with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a Symbol

Updates a symbol identified by the provided handle. If the symbol with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Symbol body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (symbol-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Sign a symbol

Adds a signature to a symbol identified by the provided handle. If the symbol with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a symbol instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the symbol doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List a symbol changes

Retrieves all the changes of a symbol identified by the provided handle. If the symbol with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a symbol change

Retrieves a symbol change identified by the provided change and handle. If the symbol with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

System Request

List requests

Retrieves all the requests from the system.

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (request-filter-query)

Request filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a request

Retrieves a record identified by the provided address. If the record with the provided address doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Wallet

Create a wallet

Creates a new wallet. Wallets are used to represent anything that can hold a balance. For example, bank accounts, loyalty point accounts, subscriptions, bills, loans, etc. A wallet can contain balances in one or multiple symbols created by the user.

Authorizations:
NoneBearerAuth
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Wallet body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (wallet-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

List wallets

Retrieves all the wallets from the system

Authorizations:
NoneBearerAuth
query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a wallet

Retrieves a wallet identified by the provided handle. If the wallet with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Update a wallet

Updates a wallet identified by the provided handle. If the wallet with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Wallet body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object (wallet-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Drop a wallet

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Wallet drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

Sign a wallet

Adds a signature to a wallet identified by the provided handle. If the wallet with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Proof body

method
required
string (signature-method)
Value: "ed25519-v2"

Identifier of the algorithm used for asymmetric cryptography

public
required
string (public-key) ^[A-Za-z0-9+/]{43}=$

Raw public key value encoded in base64

digest
required
string (hash) ^[A-Fa-f0-9]{64}$
result
required
string (signature-result) ^[A-Za-z0-9+/]{86}==$

Proof value encoded in base64

object (proof-custom)

Custom data of the proof, containing the moment of the proof generation

Responses

Request samples

Content type
application/json
{
  • "method": "ed25519-v2",
  • "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
  • "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
  • "custom": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Check access in a wallet instance

Checks permissions granted to signers who signed the payload and JWT for a certain set of actions and records. If the wallet doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)
Examples:
  • admin - Example signer handle
  • $snr.-0-eKP5De7kFWdKa- - Example LUID for a signer

The unique identifier of the record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Access check payload

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Drop a wallet

Drops a wallet identified by the provided address. If the wallet with the provided address doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Wallet drop body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
luid
required
string (luid) ^\$([a-z]{3})\.[A-Za-z0-9_-]{17}$

String that represents a ledger record unique identifier. It's generated by the ledger when the record is stored.

Format: $.<17_random_chars> where:

  • type_prefix is a 3-letter code identifying the record type:
    • $wlt - Wallet records
    • $snr - Signer records
    • $int - Intent records
    • $sch - Schema records
    • $sym - Symbol records
    • $plc - Policy records
    • $eff - Effect records
    • $crc - Circle records
    • $anc - Anchor records
    • $dom - Domain records
    • $rep - Report records
    • $ldg - Ledger records
    • $req - Request records
    • $brg - Bridge records
  • 17_random_chars consists of random alphanumeric characters [A-Za-z0-9], underscore (_) and hyphen (-)
required
object

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "data": {
    },
  • "meta": {
    }
}

List wallet limits

Retrieves limits of wallet identified by the provided handle. If the wallet with the provided handle doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a wallet anchors

Retrieves all the anchors corresponding to wallet identified by the provided address.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (wallet-anchors-query)
header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Named query for fetching anchors

Queries anchors corresponding to a wallet.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Request Body schema: application/json
required

Anchor lookup body

hash
required
string (hash) ^[A-Fa-f0-9]{64}$
required
object (base-meta)
required
object (anchor-lookup-payload-data)

Responses

Request samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

Read a wallet domains

Retrieves the domains related to a wallet identified by the provided address.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": [
    ]
}

List a wallet changes

Retrieves a list of wallet changes identified by the provided address. If the wallet with the provided address doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}

Read a wallet change

Retrieves a wallet change identified by the provided address and change. If the wallet with the provided address doesn't exist, API will return 404 error.

Authorizations:
NoneBearerAuth
path Parameters
change
required
integer (change-number) >= 1
Examples:
  • 3 - Example change number

The change number of the record

required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "luid": "$rec.6sTUVWXY-Z6AbCdEf",
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "data": {
    }
}

List balances of wallet

Retrieves all the balances in the wallet identified by the provided handle. If the wallet with the provided handle doesn't exist, API will return 404 error. Balances are returned as an integer number and have to be divided by factor assigned to balance symbol to get a decimal representation of the value.

Authorizations:
NoneBearerAuth
path Parameters
required
address (string) or luid (string)

The unique identifier of the wallet record - its luid or address.

query Parameters
object (page-query)
Examples:
  • limit=20&index=0 - Example page query parameters

Page query parameters

object (base-filter-query)
Examples:
  • data.publicKey.$eq=pjcf/a9F0IRXTWqsgb7rtSTbI3HdeZ8DI5l8AcP+25Q= - Example filter by public key
  • data.handle.$eq=admin - Example filter by admin handle

Base filter parameters

header Parameters
handle (string) or luid (string)
Examples:
  • rtp-ledger - Example ledger handle
  • $ldg.--zbjuHydeIP2bszu - Example LUID for a ledger

The unique identifier of ledger in context for multi tenant requests.

Responses

Response samples

Content type
application/json
{
  • "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
  • "meta": {
    },
  • "page": {
    },
  • "data": [
    ]
}