We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code attached, fw'd from Discord as per request
I'm currently trying to show a custom token, however, the documentation only covers EIP-style tokens.
The Tokens type seems to take
Tokens
// ... [x: `solana:${string}`]: Token; [x: `solana:${number}`]: Token; // ...
but I don't know what that value should be.
It seems like it should be
createAppKit({ adapters: [solanaWeb3JsAdapter], [solana], projectId, metadata: { // ... }, debug: true, tokens: { "solana:mainnet-beta": { address: TOKEN_ADDRESS, } }, })
but that still shows SOL when using the <appkit-button /> WebComponent.
<appkit-button />
FWIW, I'm able to get the balance of that token manually using @solana/web3.js. It's just the WebComponent that's not displaying it.
@solana/web3.js
"@reown/appkit": "^1.5.0", "@reown/appkit-adapter-solana": "^1.5.0", "@solana/wallet-adapter-wallets": "^0.19.32", "vue": "^3.5.13",
Bun 1.1.42
The text was updated successfully, but these errors were encountered:
APKT-1869 [bug] unable to set custom token for solana
Sorry, something went wrong.
Thanks for reporting the issue. Hope to solve it soon.
Any reason why this was labeled as a feature request? As per the documentation & types, this is already existing functionality, no?
I'm seeing this error with EIP as well
"eip155:80002": { address: "USDC-address-for-polygon-amoy", },
But webcomponent shows POL
No branches or pull requests
Link to minimal reproducible example
Code attached, fw'd from Discord as per request
Summary
I'm currently trying to show a custom token, however, the documentation only covers EIP-style tokens.
The
Tokens
type seems to takebut I don't know what that value should be.
It seems like it should be
but that still shows SOL when using the
<appkit-button />
WebComponent.FWIW, I'm able to get the balance of that token manually using
@solana/web3.js
. It's just the WebComponent that's not displaying it.List of related npm package versions
Node.js Version
Bun 1.1.42
Package Manager
Bun 1.1.42
The text was updated successfully, but these errors were encountered: