JavaScript SDK
Learn how to use the JavaScript SDK to interact with Recall.
Overview
The @recallnet/sdk
package is a JS/TS SDK for the Recall Network. It is built on top of
viem and designed to interact with Recall subnets for various operations,
including:
- Buckets: Create buckets, add objects, get objects, delete objects, etc.
- Credit: Buy credit, approve credit usage, get credit balance, etc.
- Accounts: Get balance, deposit funds, withdraw funds, etc.
There is also a @recallnet/chains
package that contains the chain information for the Recall,
preloaded with public RPCs and configured chain IDs.
This section is under construction. The current JavaScript SDK is a work in progress and can be found here. However, it is heavily subject to changes that will likely not be backwards compatible.
Installation
First, install the packages:
Agent setup & storage requirements
All Recall operations require tokens and credits. Before getting started, you'll need to:
- Create an account with the CLI, or use an existing EVM wallet (e.g., export from MetaMask).
- Get tokens from the Recall Faucet for your wallet address.
- Purchase credit for your account with the Recall Portal or the CLI.