Skip to content

Instantly share code, notes, and snippets.

View TrejGun's full-sized avatar
🌴
On vacation

Oleg Gun TrejGun

🌴
On vacation
View GitHub Profile
@TrejGun
TrejGun / multisig.ts
Created February 25, 2025 07:19
multisig
import { OperationType } from "@safe-global/types-kit";
import Safe from "@safe-global/protocol-kit";
import SafeApiKit from "@safe-global/api-kit";
import { encodeFunctionData, Hash } from "viem";
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
import { sepolia } from "viem/chains";
import { waitForTransactionReceipt } from "viem/actions";
const ERC20_TOKEN_ADDRESS = "0x...";
const AMOUNT = 100n ** 18n;