import { OttoSDK, BasePath } from "@ottowallets/sdk";
// Safer public example: start against Otto sandbox
const otto = new OttoSDK({
apiKey: process.env.OTTO_API_KEY!,
secretKey: process.env.OTTO_API_SECRET!,
basePath: BasePath.sandbox,
});
const vault = await otto.vaults.create({ name: "Treasury" });
const wallet = await otto.wallets.create({
network: "ethereum",
vault_id: vault.id,
name: "Ops wallet"
});