SDK for interacting with the Balancer protocol
npm install @berachain-foundation/berancer-sdk
WIP SDK for Balancer Protocol. Interfaces may have frequent breaking changes until a stable release.
pnpm install
- fetch
If your platform does not support one of the required features, it is also possible to import a polyfill.
- fetch -> node-fetch
pnpm test
Testing runs against a local anvil fork and requires the following RPC URL to be configured in your .env file:
```
ETHEREUM_RPC_URL
POLYGON_RPC_URL
FANTOM_RPC_URL
SEPOLIA_RPC_URL$3
To download and install the anvil client, run the following commands (MacOS):
- curl -L https://foundry.paradigm.xyz | bashbrew install libusb
- source /Users/$(whoami)/.zshenv
- foundryup`
-
In-depth documentation on this SDK is available at docs-v3.balancer.fi/developer-reference/sdk.