MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / mint

Method mint

src/n20/simple-token.ts:35–40  ·  view source on GitHub ↗
(wallet: Wallet)

Source from the content-addressed store, hash-verified

33 return result;
34 }
35 async mint(wallet: Wallet) {
36 const toAddress = wallet.currentAccount.tokenAddress!.address!;
37 const tx = await wallet.buildPayloadTransaction(mintData, toAddress);
38 const result = await wallet.broadcastTransaction(tx);
39 return result;
40 }
41}
42
43export default new N20SimpleToken();

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected