Fireblocks Web3 Provider
Warning
This package is in a beta stage and should be used at your own risk.
The provided interfaces might go through backwards-incompatibale changes.
For a more stable library (with a different paradigm) you can use the DeFi SDK (https://github.com/fireblocks/fireblocks-defi-sdk)
Fireblocks EIP-1193 Compatible Ethereum JavaScript Provider
Installation
npm install @fireblocks/fireblocks-web3-provider
Setup
import { FireblocksWeb3Provider, ChainId } from "@fireblocks/fireblocks-web3-provider";
const eip1193Provider = new FireblocksWeb3Provider({
privateKey: process.env.FIREBLOCKS_API_PRIVATE_KEY_PATH,
apiKey: process.env.FIREBLOCKS_API_KEY,
vaultAccountIds: process.env.FIREBLOCKS_VAULT_ACCOUNT_IDS,
chainId: ChainId.GOERLI,
})
Usage with ethers.js
import * as ethers from "ethers"
const provider = new ethers.providers.Web3Provider(eip1193Provider);
Usage with web3.js
import Web3 from "web3";
const web3 = new Web3(eip1193Provider);