Skip to content

Files

Latest commit

89380d1 · Mar 29, 2024

History

History
This branch is 467 commits behind daimo-eth/daimo:master.

daimo-userop

Daimo Userop

This library constructs all userops sent by a Daimo account.

Example usage:

import { DaimoOpSender } from "@daimo/userop";

// Create DaimoOpConfig, then send some of that account's home coin (eg USDC).
const sender = DaimoOpSender.init(config);
sender.erc20Transfer(toAddress, amount, nonceMetadata);

See apps/daimo-mobile for more examples. Built with userop.js.