Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to register the Token's metadata #217

Open
droslean opened this issue Jun 6, 2024 · 0 comments
Open

How to register the Token's metadata #217

droslean opened this issue Jun 6, 2024 · 0 comments

Comments

@droslean
Copy link

droslean commented Jun 6, 2024

The only reference I found is

registerTokenInstruction := tokenregistry.NewRegisterTokenInstruction(logo, name, symbol, website, tokenMetaAccount.PublicKey(), registrarPubKey, tokenAddress)

Is there any other documentation that I can follow?

Trying to add the metadata to an existing token account results in an error

2024/06/06 04:16:40 failed to send transaction: (*jsonrpc.RPCError)(0xc00036c420)({
 Code: (int) -32602,
 Message: (string) (len=78) "invalid transaction: Transaction failed to sanitize accounts offsets correctly",
 Data: (interface {}) <nil>
})
exit status 1

cc @gagliardetto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant