Download OpenAPI specification:
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.
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.
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"
}
...
}
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.
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.
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.
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.
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.
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.
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.
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.
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.
Creates a new anchor record in the system.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Anchor body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (anchor-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
Retrieves all the anchors from the system.
object (page-query) Examples:
Page query parameters | |
object (anchor-filter-query) |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
]
}
Retrieves an anchor identified by the provided handle
. If the anchor with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
Updates an anchor identified by the provided handle
. If the anchor with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (anchor-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
Drops an anchor identified by the provided handle
. If the anchor with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
Drops an anchor identified by the provided handle
. If the anchor with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
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.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Bridge body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (bridge-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
Retrieves all the bridges from the system.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
]
}
Returns a bridge identified by the provided handle
. If the bridge with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
Updates a bridge identified by the provided handle
. If the bridge with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (bridge-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "config": {
- "credits.claims.groupBy": "address",
- "debits.claims.groupBy": "address",
- "server": "string"
}, - "traits": [
- "debits"
], - "secure": [
- {
- "schema": "oauth2",
- "clientId": "6731de76-14a6-49ae-97bc-6eba6914391e",
- "clientSecret": "{{ secret.qWgdYAmab0YSkuL1qKv5bPX }}"
}
]
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "offset": 60
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
Circles describes roles or groups of signers.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Circle body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (circle-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
Retrieves all the circles from the system.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
Retrieves a circle identified by the provided handle
. If the circle with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
Updates a circle identified by the provided handle
. If the circle with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (circle-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
Circles describes roles or groups of signers.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Circle signer body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (circle-signer-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "schema": "tran:12345@tesla.io",
- "circle": "tran:12345@tesla.io",
- "signer": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "schema": "tran:12345@tesla.io",
- "circle": "tran:12345@tesla.io",
- "signer": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}
}
Retrieves all the signers of a circle
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
Retrieves a circle signer link
required | address (string) or luid (string) Examples:
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. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "schema": "tran:12345@tesla.io",
- "circle": "tran:12345@tesla.io",
- "signer": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}
}
Remove a circle signer link
required | address (string) or luid (string) Examples:
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. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
Remove a circle signer link
required | address (string) or luid (string) Examples:
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. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Domain body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (domain-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
Retrieves all the domains from the system.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
Retrieves a domain identified by the provided handle
. If the domain with the provided handle doesn't exist, API will return 404 error.
required | handle (string) or luid (string) The unique identifier of the record - it is luid or handle. Tied to multi tenancy. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
Updates a domain identified by the provided handle
. If the domain with the provided handle doesn't exist, API will return 404 error.
required | handle (string) or luid (string) The unique identifier of the record - it is luid or handle. Tied to multi tenancy. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (domain-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
required | handle (string) or luid (string) The unique identifier of the record - it is luid or handle. Tied to multi tenancy. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
required | handle (string) or luid (string) The unique identifier of the record - it is luid or handle. Tied to multi tenancy. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
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:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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 balanceeffect-created
- raised when a new effect is createdintent-created
- raised when a new intent is createdsigner-created
- raised when a new effect is createdsymbol-created
- raised when a new symbol is createdwallet-created
- raised when a new wallet is createdEach 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 webhookshandle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Effect body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (effect-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
Retrieves all the effects from the system.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
]
}
Retrieves an effect identified by the provided handle
. If the effect with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
Updates an effect identified by the provided handle
. If the effect with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (effect-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "signal": "anchor-created",
- "filter": {
- "wallet.data.handle": "bank1"
},
}
}
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.handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Intent body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object |
required | object (intent-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "thread": "tran:12345@tesla.io",
- "status": "aborted",
- "routed": true
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "aborted",
- "labels": [
- "preferred"
], - "thread": "tran:12345@tesla.io",
- "routed": true
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
Retrieves all the intents from the system.
object (page-query) Examples:
Page query parameters | |
object (intent-filter-query) Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "aborted",
- "labels": [
- "preferred"
], - "thread": "tran:12345@tesla.io",
- "routed": true
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
]
}
Retrieves an intent identified by the provided handle
. If the intent with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "aborted",
- "labels": [
- "preferred"
], - "thread": "tran:12345@tesla.io",
- "routed": true
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1,
- "thread": "tran:12345@tesla.io",
- "status": "aborted",
- "routed": true
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1,
- "thread": "tran:12345@tesla.io",
- "status": "aborted",
- "routed": true
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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) |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "status": "failed",
- "reason": "bridge.account-not-found",
- "detail": "Could not find target account",
- "failId": "ERR-0156"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "aborted",
- "labels": [
- "preferred"
], - "thread": "tran:12345@tesla.io",
- "routed": true
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "claims": [
- {
- "action": "issue",
- "target": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "symbol": {
- "handle": "tran:12345@tesla.io",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}
}, - "amount": 1000
}
], - "config": {
- "commit": "auto"
}, - "origin": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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
Ledger body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (ledger-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
Retrieves all the ledger instances from the system.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
]
}
Retrieves a ledger instance loaded in context. If the ledger instance with the provided handle doesn't exist, API will return 404 error.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
Updates a ledger instance loaded in context. If the ledger instance with the provided handle doesn't exist, API will return 404 error.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (ledger-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
Adds a signature to a ledger loaded in context. If the ledger doesn't exist, API will return 404 error.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
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.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
]
}
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.
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "signer": "tran:12345@tesla.io",
- "config": {
- "intent.expiryThresholdMinutes": 60,
- "anchor.walletRequired": true,
- "policy.scheduleProcessorEnabled": true,
- "request.journalingEnabled": true
}
}
}
Policies describes roles or groups of signers.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Policy body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | any (policy-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
Retrieves all the policies from the system.
object (page-query) Examples:
Page query parameters | |
object (policy-filter-query) Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
]
}
Retrieves a policy identified by the provided handle
. If the policy with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
Updates a policy identified by the provided handle
. If the policy with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | any (policy-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "status",
- "record": "any",
- "extend": "tran:12345@tesla.io",
- "filter": {
- "data.schema": "bank"
}, - "values": [
- {
- "record": "schema",
- "values": [
- {
- "data": { },
- "exec": { },
- "meta": { },
- "sign": { }
}
]
}
]
}
}
This entity enables systematic recording and analysis of financial operations while maintaining security and auditability.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Report body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object |
required | object (report-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "thread": "string",
- "status": "completed",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
], - "labels": [
- "preferred"
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "completed",
- "labels": [
- "preferred"
], - "thread": "string",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
Retrieves all reports from the system.
object (page-query) Examples:
Page query parameters | |
object (report-filter-query) |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "completed",
- "labels": [
- "preferred"
], - "thread": "string",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
Retrieves a report identified by the provided handle
. If the report with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "completed",
- "labels": [
- "preferred"
], - "thread": "string",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
Drops a report identified by the provided handle
. If the report with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475,
- "moment": "2019-08-24T14:15:22Z",
- "status": "completed",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
], - "labels": {
- "$pop": 1
}
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "completed",
- "labels": [
- "preferred"
], - "thread": "string",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
Drops a report identified by the provided handle
. If the report with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1,
- "thread": "string",
- "status": "completed",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
], - "labels": [
- "preferred"
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1,
- "thread": "string",
- "status": "completed",
- "assets": [
- {
- "handle": "string",
- "output": "string"
}
], - "labels": [
- "preferred"
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
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.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Schema body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (schema-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
Retrieves all the schemas from the system.
object (page-query) Examples:
Page query parameters | |
object (schema-filter-query) Query by record type |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
]
}
Retrieves a schema identified by the provided handle
. If the schema with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
Updates a schema identified by the provided handle
. If the schema with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (schema-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "format": "json-schema",
- "record": "anchor",
- "schema": { },
- "extend": "tran:12345@tesla.io"
}
}
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.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Signer body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (signer-data) |
{- "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "data": {
- "handle": "admin",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "format": "ed25519-raw",
- "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
]
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "digest": "563ff1cd08ec6f070b8d590df1bac7b7153dddeb98844a3f22cf2c2dd172b6b6",
- "result": "hpsUonIkThAcTyZaTldx4JutV8O1XrH4d2uEh7XSRmj3Yx/Z3ZpxruyUQY6bhEBgkjs0DKmjdwjT47MSebVKDQ==",
- "custom": {
- "moment": "2025-03-07T16:08:56.810Z",
- "status": "created"
}
}
]
}
}
{- "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "data": {
- "handle": "admin",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "format": "ed25519-raw",
- "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
]
}, - "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "proofs": [
- {
- "custom": {
- "moment": "2025-03-07T16:08:56.810Z",
- "status": "created"
}, - "digest": "563ff1cd08ec6f070b8d590df1bac7b7153dddeb98844a3f22cf2c2dd172b6b6",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "hpsUonIkThAcTyZaTldx4JutV8O1XrH4d2uEh7XSRmj3Yx/Z3ZpxruyUQY6bhEBgkjs0DKmjdwjT47MSebVKDQ=="
}, - {
- "custom": {
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "moment": "2025-03-07T16:08:56.953Z",
- "status": "created"
}, - "digest": "2814f6dd20f63397da209f55a0938b37d1dc0b6458e5c736ba336fea4cbdf8f3",
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "result": "4OR+cgE6DEZxLSnFQZWkBQAHYMiez3cWBoao5aoEzNBDGsXtU6ThijvJhRHNhaJ556vIegZKaPONfArYblGEDw=="
}
], - "status": "created",
- "moment": "2025-03-07T16:08:56.949Z",
- "owners": [
- "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
]
}
}
Retrieves all the signers from the system.
object (page-query) Examples:
Page query parameters | |
object Examples:
|
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "5b098c469e7f651c0abd11fc66869dab8ccdccdd98feed633dbd9de2eed0fab0",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "digest": "37f917075dd0d6057c08cf7e26251fe3ad2fd1cbcb169047ddf6068e481d6a14",
- "result": "IFC2ZAaQiN6X/bR6DX1+L0KuYIXECg3vJ6gEw3Za8fwqMtdLDBuV9RaRX1E4cFpbhbII4mCM4kTts4JC5PbNDQ==",
- "custom": {
- "moment": "2025-03-07T16:08:57.303Z"
}
}
]
}, - "data": [
- {
- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "data": {
- "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "handle": "admin",
- "custom": {
- "role": "system-admin",
- "firstName": "Jason",
- "lastName": "Admin",
- "department": "it"
}, - "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}, - "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "proofs": [
- {
- "custom": {
- "moment": "2025-03-07T16:08:57.068Z"
}, - "digest": "d7affb82271fce069a36157d0282b203877645363f0b51bc6e9cb85beebd7106",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "vufYr4bSQQpLIyX+PfaJn1lCMZYxk5QbvZAcblOU5YCKa8QgB1zB5awMCqHkptWUkJTZPnEnsL1859v5jBDAAQ=="
}, - {
- "custom": {
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "moment": "2025-03-07T16:08:57.110Z"
}, - "digest": "1e9a180a20427687ca8f5792cb5b7be1a6cd639d51584629a55f22eeeb45d8a5",
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "result": "510duFXvBMcToQAYIN73VzJXbepPIazyoWPUM0pJkoRPpm/aKZ1WGAEXpHHSqs9/EDfMvxWxlAe1WgwTJtxGDQ=="
}, - {
- "custom": {
- "moment": "2025-03-07T16:08:57.138Z",
- "status": "active",
- "blocked": false
}, - "digest": "ee5fdd6da9ed01fa29197bf9cae81b4b88c373582f944ecd7ce2104d70241f64",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "wIa74daE07iTxfc4O0Yh9oIPQR5sdpUnvpJyyKhVsQo9+Qeimud0UuPD6ODov/hP6iV5znsa9oOdaJrPYVimDQ=="
}
], - "status": "active",
- "moment": "2025-03-07T16:08:57.108Z",
- "owners": [
- "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
]
}
}, - {
- "hash": "7d6e381e20a4599ead099ed311c8457b932761d8887006a1a852149ea4aed557",
- "data": {
- "handle": "treasury",
- "custom": {
- "role": "treasury-manager",
- "department": "finance"
}, - "access": [
- {
- "action": "create",
- "record": "intent"
}
], - "format": "ed25519-raw",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "luid": "$snr.--zwEJl_pdCQNhSS0",
- "meta": {
- "proofs": [
- {
- "digest": "bb590e9dce5692f5961f483f6a65661f77766165eff015edfae0917384294f67",
- "method": "ed25519-v2",
- "public": "onDKz41cj2uOMjY0pr+4WZQZ2iIRQFCY1UFcS3ysjEQ=",
- "result": "IFHMmBB5lbfnGD9juzQBYjRGlRxGnzOoV7qM9HOUjRp2TL4EJILwUhCXiI1EhKbu3+TzS3RHGYI/bYldOrnVAA=="
}, - {
- "custom": {
- "luid": "$snr.--zwEJl_pdCQNhSS0",
- "moment": "2025-03-05T11:42:10.358Z"
}, - "digest": "dcd6991be3987aad7f044d32d467b8990911c1e69d16607a27fb19755ba10f7d",
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "result": "doWK8ahoPA5BJGYMMIP2Pd1bpQ7PhTgqRosC0mvdwyGsNOjukg2d82WxfaK6pjQKpcmUbCxvGYwV9LlPt1WnBA=="
}
], - "moment": "2025-03-05T11:42:10.357Z",
- "owners": [
- "onDKz41cj2uOMjY0pr+4WZQZ2iIRQFCY1UFcS3ysjEQ="
]
}
}
], - "page": {
- "index": 0,
- "limit": 2
}
}
Retrieves a signer identified by the provided handle
. If the signer with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "data": {
- "handle": "admin",
- "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}, - "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "proofs": [
- {
- "custom": {
- "moment": "2025-03-07T16:08:56.810Z",
- "status": "created"
}, - "digest": "563ff1cd08ec6f070b8d590df1bac7b7153dddeb98844a3f22cf2c2dd172b6b6",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "hpsUonIkThAcTyZaTldx4JutV8O1XrH4d2uEh7XSRmj3Yx/Z3ZpxruyUQY6bhEBgkjs0DKmjdwjT47MSebVKDQ=="
}, - {
- "custom": {
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "moment": "2025-03-07T16:08:56.953Z",
- "status": "created"
}, - "digest": "2814f6dd20f63397da209f55a0938b37d1dc0b6458e5c736ba336fea4cbdf8f3",
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "result": "4OR+cgE6DEZxLSnFQZWkBQAHYMiez3cWBoao5aoEzNBDGsXtU6ThijvJhRHNhaJ556vIegZKaPONfArYblGEDw=="
}
], - "status": "created",
- "moment": "2025-03-07T16:08:56.949Z",
- "owners": [
- "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
]
}
}
Updates a signer identified by the provided handle
. If the signer with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (signer-data) |
{- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "data": {
- "handle": "admin",
- "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw=",
- "firstName": "Jason",
- "custom": {
- "lastName": "Admin",
- "department": "it",
- "role": "system-admin"
}, - "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "digest": "d7affb82271fce069a36157d0282b203877645363f0b51bc6e9cb85beebd7106",
- "result": "vufYr4bSQQpLIyX+PfaJn1lCMZYxk5QbvZAcblOU5YCKa8QgB1zB5awMCqHkptWUkJTZPnEnsL1859v5jBDAAQ==",
- "custom": {
- "moment": "2025-03-07T16:08:57.068Z"
}
}
]
}
}
{- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "data": {
- "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "handle": "admin",
- "custom": {
- "role": "system-admin",
- "firstName": "Jason",
- "lastName": "Admin",
- "department": "it"
}, - "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}, - "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "proofs": [
- {
- "custom": {
- "moment": "2025-03-07T16:08:57.068Z"
}, - "digest": "d7affb82271fce069a36157d0282b203877645363f0b51bc6e9cb85beebd7106",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "vufYr4bSQQpLIyX+PfaJn1lCMZYxk5QbvZAcblOU5YCKa8QgB1zB5awMCqHkptWUkJTZPnEnsL1859v5jBDAAQ=="
}, - {
- "custom": {
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "moment": "2025-03-07T16:08:57.110Z"
}, - "digest": "1e9a180a20427687ca8f5792cb5b7be1a6cd639d51584629a55f22eeeb45d8a5",
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "result": "510duFXvBMcToQAYIN73VzJXbepPIazyoWPUM0pJkoRPpm/aKZ1WGAEXpHHSqs9/EDfMvxWxlAe1WgwTJtxGDQ=="
}
], - "status": "created",
- "moment": "2025-03-07T16:08:57.108Z",
- "owners": [
- "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "digest": "ee5fdd6da9ed01fa29197bf9cae81b4b88c373582f944ecd7ce2104d70241f64",
- "result": "wIa74daE07iTxfc4O0Yh9oIPQR5sdpUnvpJyyKhVsQo9+Qeimud0UuPD6ODov/hP6iV5znsa9oOdaJrPYVimDQ==",
- "custom": {
- "moment": "2025-03-07T16:08:57.138Z",
- "status": "active",
- "blocked": false
}
}
{- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "data": {
- "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "handle": "admin",
- "custom": {
- "role": "system-admin",
- "firstName": "Jason",
- "lastName": "Admin",
- "department": "it"
}, - "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}, - "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "proofs": [
- {
- "custom": {
- "moment": "2025-03-07T16:08:57.068Z"
}, - "digest": "d7affb82271fce069a36157d0282b203877645363f0b51bc6e9cb85beebd7106",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "vufYr4bSQQpLIyX+PfaJn1lCMZYxk5QbvZAcblOU5YCKa8QgB1zB5awMCqHkptWUkJTZPnEnsL1859v5jBDAAQ=="
}, - {
- "custom": {
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "moment": "2025-03-07T16:08:57.110Z"
}, - "digest": "1e9a180a20427687ca8f5792cb5b7be1a6cd639d51584629a55f22eeeb45d8a5",
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "result": "510duFXvBMcToQAYIN73VzJXbepPIazyoWPUM0pJkoRPpm/aKZ1WGAEXpHHSqs9/EDfMvxWxlAe1WgwTJtxGDQ=="
}, - {
- "custom": {
- "moment": "2025-03-07T16:08:57.138Z",
- "status": "active",
- "blocked": false
}, - "digest": "ee5fdd6da9ed01fa29197bf9cae81b4b88c373582f944ecd7ce2104d70241f64",
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "result": "wIa74daE07iTxfc4O0Yh9oIPQR5sdpUnvpJyyKhVsQo9+Qeimud0UuPD6ODov/hP6iV5znsa9oOdaJrPYVimDQ=="
}
], - "status": "active",
- "moment": "2025-03-07T16:08:57.108Z",
- "owners": [
- "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "82ec2db864a10213d3a53faf0c48b482adf95be5b7cecfa05fdce05887db0a70",
- "data": {
- "action": "update"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "digest": "8ba0115db43032c345acc26d3a63a24b8adda05426b47b3d8210efc951a85666",
- "result": "0cld1llpW8LHbV4cUajnlSEwkrYfmP7rpcTigwH78gSs4JQeMQl1Kupqno7j4YBNd2lq5QQsohTAngwMPwRtCA==",
- "custom": {
- "moment": "2025-03-07T17:37:29.671Z"
}
}
]
}
}
{- "hash": "d218b00c25884373e94ea797d3e00dd81157a74ac9ac5e95e003a001d7d9f743",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "digest": "1c775aec35841ed51900069f2fdacf16d3759a03eda8f25844aa80aaf908e934",
- "result": "gHkftaScsQ5TB7hgdObmR8QXgKx+2hMRRXRPvBtJRuxOrCo15E8lBAqx0Xx0uXpE8TW1HW5hObe9I9NxJCxODA==",
- "custom": {
- "moment": "2025-03-07T16:08:57.341Z"
}
}
]
}, - "data": [
- {
- "hash": "025df7863203da41282a910802a1f50a943adfdbb824152f81caea881d2a251d",
- "data": {
- "action": "any",
- "record": "any"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "digest": "0040e432d85092ad0ebbe81968442372e922a4ed3017c7981997042561f3d033",
- "result": "HTjd5p4fGEkArh9rrvXB3+A8tmzUr+lyyNI6upA3Xsaz3LrWbTs31uYV9BRdqvXMaTr7i24GmytfqQFO2XqSAQ==",
- "custom": {
- "moment": "2025-03-07T16:08:57.339Z"
}
}
]
}
}, - {
- "hash": "9a4327c311bf1bb3fb38c1f4acf3535d69cbea8eeca6797b194f08b2090435c2",
- "data": {
- "action": "any",
- "record": "signer"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "digest": "faf5d64cc8cbcb63d0f30715ed416e721c20ea5638f0c8ba9400379b158fb870",
- "result": "niTfcvpOsteAywsWyqxJ3i/+/aLxhlfRbFnwUNV5CrMGj3YrbPNfGRBBqHLaA18kmmCTSAxBMPU07D9MOiaaDg==",
- "custom": {
- "moment": "2025-03-07T16:08:57.340Z"
}
}
]
}
}
]
}
List all changes to a signer record.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "fa134a4d353c2ec3e583d6a12378571ad54db9538c3a6bd4a58ac5dc2ebb7531",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "r5x4G6WbGHJjG7cwMB46Hw2vKrQiQ0ETfrwc96ORoUM=",
- "digest": "5e78904d6f378a4e6084f5ae3b77c6bdb8cd3e6da5299f4d97592c6979108a9e",
- "result": "5Rc62gYz8+poyJQDcpPRh6G9k0QPdUuloFJ+J/GUH9muHZ0goeB9BgT2bLk28cpmWTh2UcKLB2Lb/sWlR2TfBA==",
- "custom": {
- "moment": "2025-03-07T16:08:57.227Z"
}
}
]
}, - "data": [
- {
- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "moment": "2025-03-07T16:08:57.169Z",
- "change": 3,
- "action": "update"
}, - "data": {
- "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "handle": "admin",
- "custom": {
- "role": "system-admin",
- "firstName": "Jason",
- "lastName": "Admin",
- "department": "it"
}, - "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}
}, - {
- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "moment": "2025-03-07T16:08:57.108Z",
- "change": 2,
- "action": "update"
}, - "data": {
- "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "handle": "admin",
- "custom": {
- "role": "system-admin",
- "firstName": "Jason",
- "lastName": "Admin",
- "department": "it"
}, - "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}
}, - {
- "hash": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "moment": "2025-03-07T16:08:56.949Z",
- "change": 1,
- "action": "create"
}, - "data": {
- "handle": "admin",
- "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}
}
], - "page": {
- "index": 0,
- "limit": 20,
- "total": 3
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "22205c19eaf65b85457c3706160fe19eab982353a64a4ddd47e63dd8503fa545",
- "luid": "$snr.-0-eKP5De7kFWdKa-",
- "meta": {
- "moment": "2025-03-07T16:08:57.169Z",
- "change": 3,
- "action": "update"
}, - "data": {
- "parent": "c8079acc753f95b39ae345d6b81a8d924a9e5473a0782faaa92579a4c0f0011c",
- "handle": "admin",
- "custom": {
- "role": "system-admin",
- "firstName": "Jason",
- "lastName": "Admin",
- "department": "it"
}, - "access": [
- {
- "action": "any",
- "signer": {
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ="
}
}
], - "format": "ed25519-raw",
- "public": "C8d/bkdi2MJDxkOaaLHUdZCnlcczpg430TRI2O3miSQ=",
- "secret": "MIGbMFcGCSqGSIb3DQEFDTBKMCkGCSqGSIb3DQEFDDAcBAijcsEhvZhcuQICCAAwDAYIKoZIhvcNAgkFADAdBglghkgBZQMEASoEEDO77oqr6BSlPzmpI7/AZeEEQHhspvWQSsM/Nmh0eah/SQZ1poZhNywJuxG7nor5Fkix9k4yK6t1se0FCkd3wImJj+vLpYY4RjzRK6JyASlvcBw="
}
}
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:
factor == 1
values identified by this symbol are integers,factor == 10
values have 1 decimal place,factor == 100
values have 2 decimal places, etc.handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Symbol body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (symbol-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
Retrieves all the symbols from the system.
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
]
}
Retrieves a symbol identified by the provided handle
. If the symbol with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
Updates a symbol identified by the provided handle
. If the symbol with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (symbol-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
]
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
change required | integer (change-number) >= 1 Examples:
The change number of the record |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "factor": 1
}
}
Retrieves all the requests from the system.
object (page-query) Examples:
Page query parameters | |
object (request-filter-query) Request filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "schema": "rest",
- "record": "anchor",
- "action": "abort",
- "source": "string",
- "target": "string",
- "params": {
- "method": "string",
- "path": "string",
- "headers": { },
- "body": { },
- "timestamp": "2019-08-24T14:15:22Z"
}, - "result": {
- "status": 0,
- "headers": { },
- "body": { },
- "timestamp": "2019-08-24T14:15:22Z"
}
}
}
]
}
Retrieves a record identified by the provided address
. If the record with the provided address doesn't exist, API will return 404 error.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "schema": "rest",
- "record": "anchor",
- "action": "abort",
- "source": "string",
- "target": "string",
- "params": {
- "method": "string",
- "path": "string",
- "headers": { },
- "body": { },
- "timestamp": "2019-08-24T14:15:22Z"
}, - "result": {
- "status": 0,
- "headers": { },
- "body": { },
- "timestamp": "2019-08-24T14:15:22Z"
}
}
}
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.
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Wallet body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (wallet-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
Retrieves all the wallets from the system
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
]
}
Retrieves a wallet identified by the provided handle
. If the wallet with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
Updates a wallet identified by the provided handle
. If the wallet with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object (wallet-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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 |
{- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
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.
required | address (string) or luid (string) Examples:
The unique identifier of the record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Access check payload
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "action": "any",
- "record": "any"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
}
]
}
Drops a wallet identified by the provided address
. If the wallet with the provided address doesn't exist, API will return 404 error.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
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: $
|
required | object |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "data": {
- "status": "auth.unauthorized",
- "reason": "Request is not authenticated"
}, - "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ=="
}
]
}
}
Retrieves limits of wallet identified by the provided handle
. If the wallet with the provided handle doesn't exist, API will return 404 error.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "metric": "minBalance",
- "amount": 1000
}
}
]
}
Retrieves all the anchors corresponding to wallet identified by the provided address.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (wallet-anchors-query) |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
]
}
Queries anchors corresponding to a wallet.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
Anchor lookup body
hash required | string (hash) ^[A-Fa-f0-9]{64}$ |
required | object (base-meta) |
required | object (anchor-lookup-payload-data) |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": {
- "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "target": "tran:12345@tesla.io"
}
}
]
}
Retrieves the domains related to a wallet identified by the provided address.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
object (page-query) Examples:
Page query parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "handle": "string",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io"
}
}
]
}
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.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
]
}
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.
change required | integer (change-number) >= 1 Examples:
The change number of the record |
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "action": "create",
- "moment": "2019-08-24T14:15:22Z",
- "change": 1
}, - "data": {
- "handle": "tran:12345@tesla.io",
- "parent": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "access": [
- {
- "signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}, - "record": "any",
- "action": "any",
- "invoke": "wallet.canSpendAllChangedRouteTargets",
- "bearer": {
- "iss": "company.org",
- "sub": "admin",
- "aud": "ledger",
- "hsh": true,
- "$signer": {
- "format": "ed25519-raw",
- "public": {
- "$eq": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
}, - "custom": {
- "type": "person",
- "age": {
- "$gte": 21
}
}, - "handle": {
- "$in": [
- "admin"
]
}
}
}, - "filter": {
- "schema": "bank"
}, - "change": {
- "schema": "p2p"
}
}
], - "custom": {
- "type": "PERSON",
- "reference": 3284759238475
}, - "schema": "tran:12345@tesla.io",
- "bridge": "tran:12345@tesla.io",
- "routes": [
- {
- "action": "forward",
- "filter": { },
- "target": "tran:12345@tesla.io"
}
]
}
}
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.
required | address (string) or luid (string) The unique identifier of the wallet record - its luid or address. |
object (page-query) Examples:
Page query parameters | |
object (base-filter-query) Examples:
Base filter parameters |
handle (string) or luid (string) Examples:
The unique identifier of ledger in context for multi tenant requests. |
{- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
]
}, - "page": {
- "index": 0,
- "limit": 20,
- "total": 52
}, - "data": [
- {
- "hash": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "meta": {
- "proofs": [
- {
- "method": "ed25519-v2",
- "public": "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE=",
- "digest": "4969e3c012b66d88cec597bf337fc01eab8d651e6ed2d5c40236cc1f7d93435a",
- "result": "0G2gvSfBx6MwPT8ShBaiYx7zwa5Kqc4Cq3S3NXV1m5/ZPozoH/SUouuhi9sQU+f0yo0eX4ygH7PzE3PAdlxsCQ==",
- "custom": {
- "moment": "2019-01-01T00:00:00.000Z",
- "type": "PERSON",
- "reference": 3284759238475
}
}
], - "owners": [
- "WAweF9PHlboQoW0z8NqhZXFmzUTaV74NRFAd/aILprE="
], - "moment": "2019-08-24T14:15:22Z",
- "status": "string",
- "labels": [
- "preferred"
]
}, - "luid": "$rec.6sTUVWXY-Z6AbCdEf",
- "data": {
- "wallet": "tran:12345@tesla.io",
- "symbol": "tran:12345@tesla.io",
- "amount": 1000
}
}
]
}