https://github.com/balancer/b-sdk
https://github.com/balancer/b-sdk
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/balancer/b-sdk
- Owner: balancer
- License: mit
- Created: 2023-01-12T17:37:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-09T13:47:00.000Z (4 months ago)
- Last Synced: 2026-02-09T18:40:49.589Z (4 months ago)
- Language: TypeScript
- Size: 5.97 MB
- Stars: 37
- Watchers: 5
- Forks: 74
- Open Issues: 44
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: funding.json
- License: LICENSE
Awesome Lists containing this project
README
# SDK
[](https://www.npmjs.com/package/@balancer/sdk/v/latest)
WIP SDK for Balancer Protocol. Interfaces may have frequent breaking changes until a stable release.
## Local Setup
`pnpm install`
### Requirements
- `fetch`
### Polyfill
If your platform does not support one of the required features, it is also possible to import a polyfill.
- `fetch` -> [node-fetch](https://github.com/node-fetch/node-fetch#providing-global-access)
## Testing
`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
```
### Anvil Client
To download and install the anvil client, run the following commands (MacOS):
- `curl -L https://foundry.paradigm.xyz | bash`
- `brew install libusb`
- `source /Users/$(whoami)/.zshenv`
- `foundryup`
## Documentation
In-depth documentation on this SDK is available at [docs-v3.balancer.fi/developer-reference/sdk](https://docs-v3.balancer.fi/developer-reference/sdk/).