Search code examples
tokenblockchainsolana

is there a way to add token info to the solana devnet like on the mainnet?


I want to test our token incl. naming, icon, price etc. on the Solana Devnet but was only able to find the token-list PR which is currently only available for the Solana mainnet (as far as I can tell)

Can someone tell me if there's a "token-list pull request" on the devnet or an alternative way to handle that, pls.?


Solution

  • To add a new token for devnet only, you can put in a normal token addition pull request, but you'll have to specify "chainId": 103 for devnet. This is defined at [1], and you can see all of the current devnet tokens at [2].

    [1] https://github.com/solana-labs/token-list/blob/c1ff0ac267d03397f56a7030b02d357f90d49f79/src/lib/tokenlist.ts#L5

    [2] https://github.com/solana-labs/token-list/blob/c1ff0ac267d03397f56a7030b02d357f90d49f79/src/tokens/solana.tokenlist.json#L7513