cairn-cli 0.1.6

Backpac Agent-Native CLI for autonomous settlement workflows
Documentation
1
2
3
4
5
6
7
8
const { Keypair } = require("@solana/web3.js");
const fs = require("fs");

const keypair = Keypair.generate();
const secretKey = Array.from(keypair.secretKey);
fs.writeFileSync("agent-key.json", JSON.stringify(secretKey));
console.log(`Wallet Address: ${keypair.publicKey.toBase58()}`);
console.log("Saved to agent-key.json");