Examples

Localhost examples with Foundry and Hardhat

You can check our current examples for reference:

And also recreated test examples in Foundry from the Official Chainlink Documentation:

Forking examples with Foundry:

User must provide ETHEREUM_SEPOLIA_RPC_URL and ARBITRUM_SEPOLIA_RPC_URL.

Forking examples with Hardhat:

User must provide ETHEREUM_SEPOLIA_RPC_URL and ARBITRUM_SEPOLIA_RPC_URL.

To run this example, you must git clone https://github.com/smartcontractkit/chainlink-local repository first and then:

  1. In the first terminal window run: npx hardhat node

  2. In the second terminal window run: npx hardhat run ./scripts/examples/UnsafeTokenAndDataTransferFork.ts --network localhost

Last updated