Skip to main content
1

Create the project

viem signs on EVM chains. Guides that start from Solana add @solana/web3.js and bs58.
2

Add a .env

.env
Bridg itself needs no key. The private key is only for signing the transactions Bridg builds; never commit it.
3

Create the client and a signer

src/evm.ts
Bridg returns unsigned steps; this is the only place a key is used. Run any script with npx tsx src/<file>.ts.
The SDK ships ESM and CommonJS with type declarations. Every type used in the guides is exported: import type { QuoteResponse, BuildStep, Transfer } from '@kernlog/bridg-sdk'.