Step 4 - Integrate Blended Contracts
Step 4: Integrate Blended Contracts
This guide is based off of the template blended application in this Github repo.
Once a blended application is deployed, you can use popular libraries such as ethers.js to integrate your application into user interfaces such as a frontend website.
🔍 Rust x Ethereum Maxi?
If you prefer Rust development, consider using alloy-rs instead of ethers.js for a more native Rust experience when interacting with blended contracts.
4.1 Add ethers.js to the Foundry project
Add ethers.js as a dependency to your Foundry project. Note that you'll first have to initialize a npm package (as this is not by default available in Foundry nor gblend projects).
mkdir js-client && cd js-client && \
npm init -y && \
npm i ethers@5.7.2 && \
touch rust.js solidity.js && \
cd ..