Before building the program, replace the program id to your own key. PATH
declare_id!("your_own_program_id");
Build the program:
anchor build
You may use the my released program directly with this method
solana-test-validator \
--clone metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s -u m \
--bpf-program 2vVPTgsNXh5GtpLBRxxc12BmbyTbgDq6nbmFBRZfzoHY "./path/to/program.so"
You may use the my released program directly with this method
[[test.validator.clone]]
address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
[[test.genesis]]
address = "2vVPTgsNXh5GtpLBRxxc12BmbyTbgDq6nbmFBRZfzoHY"
program = "./path/to/program.so"
You should have mpl-metadata program (metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s) on your validator.
solana program deploy <PROGRAM_FILEPATH> /path/to/program.so --keypair <KEYPAIR>
yarn add @tkkinn/token-faucet-sdk
const faucetClient = new FaucetClient({
provider
wallet
});
const txSig = await faucetClient.createToken(TOKEN_SYMBOL, TOKEN_DECIMAL, TOKEN_NAME, TOKEN_URI)
const txSig = await faucetClient.mintToken(TOKEN_SYMBOL, UI_TOKEN_NUMBER)
const address = faucetClient.findTokenMintAddress(TOKEN_SYMBOL)