Sequence

Ledger Infrastructure for Modern Applications

Sequence is a system of record for managing balances. It lets software teams focus on shipping and scaling their product instead of building and maintaining ledger infrastructure.

What can you build on Sequence?

Sequence is a system of record for managing balances. It lets software teams focus on shipping and scaling their product instead of building and maintaining ledger infrastructure.

Card Image
A Mobile Wallet
Store and Transact user balances.
See Code Example
Card Image
A Ride-Sharing Service
Manage consumer and driver balances.
See Code Example
Card Image
A Lending Platform
Issue and service loans.
See Code Example
Card Image
A Crypto Exchange
Securely custody client funds.
See Code Example
Balance Sequence

A better model for managing balances

Assets in accounts...

Balances in Sequence are represented by token-like objects called assets. Assets are created, transferred, and retired. To ensure atomicity, a single transaction can include multiple actions involving any number of assets and accounts.

...Controlled by keys in enclaves

Cryptographic keys, which create and control assets and accounts, are managed in secure enclaves. Key access can be distributed across users, services, and organizations so multiple entities can transact on the same ledger with “least authority.”

Built for developers

Create Keys

What Are Keys?

Transactions in the ledger are authenticated by cryptographic keys. To create a key, provide an alias (a unique identifier).

1Key key = new Key.Builder()
2            .setAlias("my_key")
3            .create(ledger);
JavaNodeRuby

Create Accounts

What Are Accounts?

Accounts represent entities in the ledger and can hold balances of many assets. To create an account, provide an alias (a unique identifier) and one or more keys. Here we create an account for Alice.

1Account alice = new Account.Builder()
2            .setAlias("alice")
3            .addKey(key)
4            .create(ledger);
JavaNodeRuby

Create Assets

What Are Assets?

Assets represent different types of balances in the ledger. To create an asset, provide an alias (a unique identifier) and one or more keys. Here we create a USD asset.

1Asset usd = new Asset.Builder()
2            .setAlias("usd")
3            .addKey(key)
4            .create(ledger);
JavaNodeRuby

Transact

What Are Transactions?

Transactions are atomic ledger updates that issue, transfer, and/or retire assets in the ledger. A transaction is comprised of one or more actions. Here is a transfer of USD from Alice to Bob.

1Transaction tx = new Transaction.Builder()
2            .addAction(new Transaction.Builder.Action.Transfer()
3              .setAssetAlias("usd")
4              .setAmount(10)
5              .setSourceAccountAlias("alice")
6              .setDestinationAccountAlias("bob")
7            ).transact(ledger);
JavaNodeRuby

Query

What Are Queries?

Data structures in Sequence are represented as key-value JSON objects. To retrieve data, you perform a query with optional parameters. By default, each query returns a time-ordered list of objects beginning with the most recent. Here’s a query for the amount of USD in Alice's account.

1Balance.ItemIterable balances = new Balance.QueryBuilder()
2            .setFilter("asset_alias=$1 AND account_alias=$2")
3            .addFilterParameter("usd")
4            .addFilterParameter("alice")
5            .addSumByField("asset_alias")
6            .getIterable(ledger);
7          for (Balance balance : balances) {
8            ...
9          }
JavaNodeRuby
placeholder
move-fast-glyph

Move Fast

  • Set up a team, permissions, and ledger in minutes
  • Start quickly with pre-built examples and development enclaves
  • Prototype, query, and model in a beautiful UI
  • Build with easy-to-use SDKs and documentation
  • Iterate and grow your product seamlessly: Sequence is extensible by design
move-fast-glyph

Break Nothing

  • Ensure ledger integrity with an immutable, append-only data structure
  • Validate ledger updates with cryptographically signed transactions
  • Manage keys in secure enclaves
  • Generate and export accurate and customized reports
  • Operate confidently with SLAs that guarantee high availability and performance

Technology trusted by market leaders

Visa LogoCiti LogoNasdaq LogoMufg Logo

A Powerful System of Record

Card Image
Cryptographic Integrity
Atomic and signed transactions form immutable history.
Card Image
Extensibility
Easily add accounts, asset types, contracts, keys, and entities to your ledger.
Card Image
Programmable Transactions
Control assets with business logic executed by the Sequence VM.
Card Image
Performant
High throughput and low latency for enterprise-scale.
Card Image
Analytics
Parquet integration, customized reports, and summary analytics.
Card Image
Developer Experience
SDKs in several languages, detailed docs, and easy-to-use dashboards.
The Chain explorer interface

Chat with Chain

Ready to build with us? Let us guide you through which blockchain software service is best suited for optimizing your business.