Skip to main content
Popular blockchain choices for building Web3 capabilities are based typically on the Ethereum Virtual Machine (EVM), and therefore share the development tech stack. Some examples of EVM blockchains:
  • Ethereum
  • BNB Chain (BSC)
  • Polygon
  • Avalanche
  • Arbitrum

Convenience libraries

Most commonly, developers interact with EVM-based blockchains using “convenience libraries” such as web3.js and ethers.js. To streamline your JavaScript development experience, we created the Fireblocks Web3 Provider, to easily connect ethers.js and web3.js to your Fireblocks workspace.

web3.js integration

The Fireblocks Web3 Provider helps seamlessly integrate Fireblocks into your web3.js development stack. Use it to deploy contracts, sign messages, and send transactions.

Installation

Setup

If you are not using a Sandbox environment, but rather a regular one, just comment the apiBaseUrl line.

Usage

Now you can use the web3 object exactly as you normally would!

Example

In this example we are executing the ‘approve’ method of USDC (ERC20) token on Sepolia by using web3.js and Fireblocks web3 provider.

ethers.js integration

The Fireblocks Web3 Provider helps seamlessly integrate Fireblocks into your ethers.js development stack. You can use it to deploy contracts, sign messages, and send transactions.

Installation

Setup

If you are not using a Sandbox environment, but rather a regular one, just comment the apiBaseUrl line.

Usage

Now you can use the provider object exactly as you normally would!

Example

In this example we are executing the ‘approve’ method of USDC (ERC20) token on Sepolia by using ethers.js and Fireblocks web3 provider.

Viem integration

The Fireblocks Web3 Provider helps seamlessly integrate Fireblocks into your viem development stack. You can use it to deploy contracts, sign messages, and send transactions.

Installation

Setup

If you are not using a Sandbox environment, but rather a regular one, just comment the apiBaseUrl line.

Usage

Now you can use the walletClient object exactly as you normally would!

Example

In this example we are executing the ‘approve’ method of USDC (ERC20) token on Sepolia by using viem and Fireblocks web3 provider.

Ethereum Smart Contract Development

Smart contract development frameworks make it easy to develop, test, and deploy smart contracts on EVM-based blockchains.

Using Truffle

Use the Fireblocks Web3 Provider to seamlessly work with Truffle on top of Fireblocks.

Installation

Configuration

Step 1:

Set the environment variables

Step 2:

Initialize an example Truffle NFT project:

Step 3:

Edit the truffle-config.js file:

Usage: