Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 01-wallet/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Keypair } from "@solana/web3.js";
import fs from "fs";
import * as fs from "fs";
import { Buffer } from 'buffer';

// 创建钱包
Expand All @@ -23,4 +23,4 @@ fs.writeFileSync("wallet.json", JSON.stringify(Array.from(secretKey)));

// console.log("钱包公钥:", wallet.publicKey.toString());
// console.log("钱包私钥:", wallet.secretKey);
// console.log("钱包私钥(base64):", Buffer.from(secretKey).toString("base64"));
// console.log("钱包私钥(base64):", Buffer.from(secretKey).toString("base64"));