raydium-sdk-swap-example-typescript icon indicating copy to clipboard operation
raydium-sdk-swap-example-typescript copied to clipboard

Swap tokens which are not available in mainnet.json

Open hirenreshamwala opened this issue 1 year ago • 3 comments

Hi,

I am new to the DEX. I checked the code which is working with the tokens which are available in mainnet.json. But some times we need to swap the token which are not exist in mainnet.json.

On radyum.io/swap when I add the token it shows the confirmation with message "This token is not on the default token lists.". After confirmation I can perform swap.

But in this code it is not possible to swap the token which are not in default token list.

Can you help with this?

hirenreshamwala avatar Nov 14 '24 14:11 hirenreshamwala

Cannot create a string longer than 0x1fffffe8 characters help... trimmed

LAMBOBLACK666 avatar Dec 05 '24 23:12 LAMBOBLACK666

Cannot create a string longer than 0x1fffffe8 characters help... trimmed

Same error, the code simply doesn't work ..

kuchaguangjie avatar Jan 20 '25 03:01 kuchaguangjie

Cannot create a string longer than 0x1fffffe8 characters help... trimmed

Same error, the code simply doesn't work ..

Hello, I posted a solve for this i think if you're refering to the trimmed_mainnet.json file

Linkan333 avatar Jun 12 '25 17:06 Linkan333