@rhinestone/orchestrator-sdk
v0.1.7
Published
A TypeScript library for using the Rhinestone Orchestrator
Downloads
835
Readme
Orchestrator SDK
A TypeScript Library for Interacting with the Rhinestone Orchestrator
Important: The Orchestrator is currently under development. While the SDK and APIs are relatively stable, please anticipate ongoing improvements and potential breaking changes in the coming weeks.
For Developers
The Orchestrator SDK provides the following capabilities:
- Create a User Account Cluster: Add accounts across multiple chains to a single cluster.
- Fetch Total Portfolio Balance: Retrieve the overall balance of a user account cluster.
- Obtain Order Bundles: Get an order bundle for a specific meta intent associated with a user account.
- Sign Order Bundles: Utilize an ownable validator to sign order bundles (please create an issue for support regarding specific validators).
- Post Signed Order Bundles: Submit signed order bundles to the orchestrator for processing by relayers.
- Check Order Bundle Status: Monitor the status of submitted order bundles.
Additionally, the Orchestrator SDK exposes useful types and ABIs that developers can leverage when interacting with the Orchestrator.
For Solvers
The Orchestrator SDK enables you to:
- Retrieve Claim Payloads: Obtain signed claim payloads from the orchestrator after executing a fill on the target chain.
- Perform Source Chain Deposits: Use the claim payloads to facilitate deposits on the source chain.
If you are looking for a mock implementation of a relayer, please visit our Rhinestone Relayer Repository.
For comprehensive documentation on the Chain Abstraction System, please refer to: Chain Abstraction Docs.
For API documentation, visit: Swagger Docs.
Note
You need an API key to interact with most useful Orchestrator functions. If you're interested in building on top of our system, please reach out to the team.
Using the Orchestrator SDK
Installation
npm install viem @rhinestone/orchestrator-sdk
pnpm install viem @rhinestone/orchestrator-sdk
yarn add viem @rhinestone/orchestrator-sdk
bun install viem @rhinestone/orchestrator-sdk
Quick Start
Coming soon ...
( Please refer to the tests for now )
Using this repo
To install dependencies, run:
pnpm install
To build the sdk, run:
pnpm build
To run tests, run:
pnpm test
Contributing
For feature or change requests, feel free to open a PR, start a discussion or get in touch with us.