> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tenderly.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Foundry - Node RPC Integration

> Learn how to deploy contracts and run scripts from Foundry using Node RPC.

[Foundry](https://github.com/foundry-rs/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.

```bash title="deploy-counter.sh" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
forge create Counter \
--rpc-url $RPC_URL \
--private-key $PRIVATE_KEY  \
```

To include a verification step, [follow this guide on verifying contracts with Foundry](/contract-verification/foundry#deploy-and-verify-in-one-step).

## 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.

```bash title="counter-script.sh" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
forge script script/Counter.s.sol:CounterScript \
--rpc-url $RPC_URL \
```

To include a verification step, [follow this guide on verifying contracts with Foundry](/contract-verification/foundry#deploy-and-verify-in-one-step).
