We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a060cc7 commit aa3e26fCopy full SHA for aa3e26f
examples/nft-collections/index.ts
@@ -22,10 +22,10 @@ const NFT_URI = 'https://raw.githubusercontent.com/Squads-Protocol/sdk-examples/
22
23
/*
24
// for fewer potential issues, you should use a CLI wallet instead of a random keypair that's been airdropped to
25
+ const homedir = os.homedir();
26
let walletJSON = JSON.parse(fs.readFileSync(`${homedir}/.config/solana/id.json`, "utf-8"));
27
const walletKeypair = Keypair.fromSecretKey(Uint8Array.from(walletJSON));
28
const squads = Squads.endpoint(YOUR_RPC_NODE, new Wallet(walletKeypair));
- const homedir = os.homedir();
29
*/
30
31
// if using this random keypair for the test, be sure to airdrop to it using the airdrop function in this repo
0 commit comments