Virtual TestNets are live! ⚡️ Test and stage dapps on real-time production data.  Schedule Office Hours

Node RPC
Smart Contract Frameworks
Foundry

Foundry - Node RPC Integration

Foundry is a toolkit for smart contract development on the Ethereum blockchain. It includes tools for compiling, testing, and deploying smart contracts, emphasizing speed and efficiency.

Using forge create

To deploy contracts using Node RPC, run forge create with the option --rpc-url set to the RPC link you copied from the Dashboard.

deploy-counter.sh
forge create Counter \
--rpc-url $RPC_URL \
--private-key $PRIVATE_KEY  \

To include a verification step, follow this guide on verifying contracts with Foundry.

Using forge script

To run a script using Node RPC, run forge script with the option --rpc-url set to the RPC link you copied from the Dashboard.

counter-script.sh
forge script script/Counter.s.sol:CounterScript \
--rpc-url $RPC_URL \

To include a verification step, follow this guide on verifying contracts with Foundry.