Skip to main content
This guide helps you set up a test environment using the Faraday SDK to send transactions on:
  • Solana Devnet
  • Ethereum Sepolia

Examples repository

We offer a prepared set of examples that you can clone and run to understand how Faraday works and how you can integrate.

1. Clone the Examples Repository

git clone https://github.com/rangesecurity/faraday-examples

2. Change into the faraday-examples directory

cd faraday-examples

3. Install Dependencies

bash bash npm install

4. Copy the example .env file into place

cp .env.sample .env
Edit .env and add your Range API key. If you haven’t got one yet here follow the instructions here.

5. Generate test keys for the examples

This script creates new Ethereum and Solana keypairs for Alice and Bob, saves them in ./keys, and prints their public addresses. These keys are only for local testing and should not be used on mainnet.
bash bash npm run dev:setup

6. Get Faucet Funds

Ethereum Sepolia ETH and USDC

Solana Devnet SOL and USDC


What’s Next You now have funded test accounts for Alice on both networks. Let’s see how we can fetch a quote.