SafeScript

PricingDocs

Build Safe Transactions
with TypeScript

Write TypeScript scripts to generate Safe batch transactions. Use your contracts, tokens, and constants as typed variables.

View Documentation
script.ts
// Your contracts and tokens are typed and ready to use
const amount = t.usdc.amount(1000) // 1000 USDC

// Build transactions with await - they batch automatically
await t.usdc.approve(c.Vault.address, amount)
await c.Vault.deposit(amount, safe.address)

// Downloads as Safe Transaction Builder JSON
// Ready to execute in your Safe

How it works

Add Your Contracts

Import contracts by address. ABIs are fetched automatically from block explorers.

Write TypeScript

Write scripts with full autocomplete and type checking. No ABI encoding needed.

Export & Execute

Download the JSON and import it into Safe Transaction Builder to execute.

Ready to build?

Start building Safe transactions with TypeScript today. Free for personal use.