3
votes
Update metadata for fixed-supply spl-token
In order to create the metadata, Metaplex's metadata program requires a signature from the mint authority, because they don't want to allow anybody to create the metadata for a token.
When you create ...
3
votes
Accepted
What is the purpose of Metadata Pointer Extension, given that Token Metadata means I can store metadata directly in the mint?
There is the token metadata interface, which can be implemented by any program to function as a custom "metadata program".
The new Token Extensions program also implements this interface, ...
2
votes
How to make metadata immutable TOKEN_2022_PROGRAM_ID
Use the tokenMetadataUpdateAuthority helper and set newAuthority to null.
https://solana-labs.github.io/solana-program-library/token/js/functions/tokenMetadataUpdateAuthority.html
It invokes this ...
2
votes
Accepted
How do I make a token using Token Extensions Metadata in JavaScript/TypeScript?
I am answering my own question to help others.
There's a example of creating a token using token extensions metadata in the Solana Labs repo. This has been turned into a helper in the @solana-...
2
votes
Accepted
Confusion about MetadataPointer
I think there are many good articles available that provides detailed info on this topic.
https://solana.com/developers/courses/token-extensions/token-extensions-metadata
https://solana.com/...
1
vote
Tokens with onchain data
for ERC 1155, you can take a look at the Fungible Assets standard from Metaplex,
Creating such assets would look like this
import { percentAmount, generateSigner, some } from '@metaplex-foundation/umi'...
1
vote
Configure metadata in building the token extension program
To upload metadata you can use the irys gateway in collaboration with umi plus the irys plugin
const collectionImagePath = path.resolve(__dirname, "collection.png");
const buffer = await ...
1
vote
How to verify correct `ConstraintMintMetadataPointerExtension` Input
I believe you have to initialize the mint in the instruction for the macro to work.
try adding an init and payer to this.
#[account(
init,
signer,
payer = user,
mint::...
1
vote
TokenMetadata not an export? ...just following the code in docs
You cannot use Typescript types in JS and that's why you are getting this error.
To make this work
Remove the TokenMetadata import in your JS file
In you package.json add the "type": "...
1
vote
After deploying my spl_token_2022.so successfully, i do not know how to initialize the metadata and create the mint account. I used SPL git repository
I just tested this out, and it seems to work with a simple setup. Try the following:
npm i @solana/spl-token
npm i @solana/[email protected]
npm i @solana/spl-token-metadata
Rename the file to js:
mv ...
1
vote
Accepted
Error: Unknown https cluster: mainnet
The actual moniker for Solana mainnet is "mainnet-beta", so inputting that should work.
Additionally, "https://api.mainnet-beta.solana.com/" should work as well.
1
vote
Update metadata for fixed-supply spl-token
You can set the mint authority to null. This means there can be no more tokens minted:
In js you can do that like this:
const freezMint = await setAuthority(
connection,
keyPair,
mintkeyPair....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
token-metadata-extension × 15metadata × 6
token-2022 × 5
token-extensions × 5
spl-token × 3
token-pointer-extension × 3
anchor × 2
solana-program × 2
metaplex × 2
rust × 2
token × 2
mpl-token-metadata × 2
nft × 1
spl-token-program × 1
mint × 1
mainnet × 1
cluster × 1
anchor-spl × 1
web3.js × 1
arweave × 1