Skip to main content
Every guide in this section is a script in the same small project. Set it up once.
1

Create the project

viem signs EVM transactions. The Solana guide also needs @solana/web3.js and bs58.
2

Add your keys

.env
BRDG needs no API key. The private key signs the transactions BRDG builds, on your machine. Keep it out of version control.
3

Create the client and a signer

This file creates the BRDG client and a helper that signs one EVM step on Base.
src/evm.ts
This is the only place a private key is used. Run any guide with npx tsx src/<file>.ts.
Every type the guides use is exported from the SDK, for example import type { QuoteResponse, BuildStep, Transfer } from '@kernlog/brdg-sdk'.