A TypeScript library for interacting with the SPL Token program.. Latest version: 0.1.5, last published: 21 days ago. Start using @bbachain/spl-token in your project by running `npm i @bbachain/spl-token`. There are 2 other projects in the npm registry u
("7CR9ATZRxzEmCSM91UkumMJ6b8h5ompMcxTnUKLc8z4e");// 3.代币主程序#[program]modtoken_minter {usesuper::*;// 3.1初始化 SPLpubfninit_token(ctx: Context<InitToken>, metadata: InitTokenParams)->Result<()> {letseeds= &["mint".as_bytes(), &[ctx.bumps.mint]];letsigner= [&seeds[.....
NFT Farming Program -- Stake SPL Token, Earn Points & Redeem 'em for NFTs rustsolanasolana-programspl-token UpdatedDec 20, 2021 Rust Raydium bundler, raydium bundler with jito, Raydium bundler, Raydium bundler, Token-Launchpad, Trading-bot ...
0xdeeznode/create-tokens-token-program Star0 Code Issues Pull requests Simple script to mint spl-tokens in Solana nodejsexperimentsolanaspl-token UpdatedMay 27, 2024 TypeScript This is the Spl-Token💰 Marketplace💹 Solana reactrustmarketplaceanchortokenweb3spl-token ...
请确保将YOUR_SENDER_PRIVATE_KEY、YOUR_RECEIVER_PUBLIC_KEY和YOUR_TOKEN_MINT_ADDRESS替换为实际的私钥、接收者公钥和Token合约地址。此外,还需要确保TOKEN_PROGRAM_ID是Solana链上Token程序的正确ID。 以上步骤和代码片段应该能够帮助你在Solana链上使用Web3.js进行SPL Token的转账操作。
splToken.TOKEN_PROGRAM_ID ); console.log('Token created:', token.publicKey.toString()); } async function getAccount(connection) { const payerAccount = new Account(); // 检查钱包账户余额 const balance = await connection.getBalance(payerAccount.publicKey); ...
如果你想添加其他代币,你可以进入你的钱包,然后点击“Manage token list(管理代币列表)”。 第9步 有大量的代币可供选择或搜索,并可以添加到你的SPL钱包中! 第10步 在本例中,我们将添加$LIKE代币。只需输入“$LIKE”或“LIKE”或“Only1”,你就能找到该代币。如果你无法通过输入代币的名字找到它,你也可以通过...
git clone https://github.com/solana-labs/solana-program-library.git Navigate to the library: cdsolana-program-library/token-metadata/js Install the dependencies: npm install Build the library: npm run build Build the on-chain programs:
EN此外,我希望我的自定义程序的program_id,用于任何帐户创建的assigned_program_id(如solana资源管理器...
SPL 代码:https://github.com/solana-labs/solana-program-library/tree/master/token/program-2022 Token-2022 中的所有新指令都从 Token 的指令后面开始添加。 Token 有 25 条独特的指令,索引从 0 到 24。Token-2022 支持所有这些指令,然后在索引 25 处添加了新的功能。