Skip to main content
4 votes

Error on connection.confirmTransaction: ws error

Error 401 means "unauthorized", so it appears that the RPC endpoint that you're using doesn't authorize you for websockets. This means that the client doesn't see the transaction get ...
Jon C's user avatar
  • 15.8k
3 votes
Accepted

Solana Wallet adapter with different react UI

The wallet adapter styles can be added like so require("@solana/wallet-adapter-react-ui/styles.css"); You can also find the class naming convention and override the css.
Tyler Davis's user avatar
2 votes

React Native integration -- what is the proper way of storing wallet account keypair?

Most applications will leave the key management aspect to a third-party wallet, which handles the storage of the private key, uses it to sign transactions, and offers various utility operations like ...
Whiteseal's user avatar
  • 3,185
2 votes
Accepted

Keeping your personal rpc endpoint address private in a react front end hosted by Netlify

You can never make an endpoint private in frontends when people are using it(it will log on the networks tab of developer tools). You should instead contact your RPC provider and only allow requests ...
acheron's user avatar
  • 2,581
2 votes
Accepted

Anchor programs not working in react native and expo environment [TypeError: b.readUIntLE is not a function (it is undefined)]

Spoke offline and found a temporary fix for this issue. Workaround is to downgrade your Anchor version (both Anchor CLI and @coral-xyz/anchor in your RN project) to <= v0.28.0. The root cause of ...
michaelsulistio's user avatar
1 vote

Cannot find module 'crypto' when using metaplex js sdk to upload metadata

please try this in config-override.js const webpack = require('webpack'); module.exports = function override(config) { const fallback = config.resolve.fallback || {}; Object.assign(fallback, {...
Fable Frog's user avatar
1 vote

Cannot find module 'crypto' when using metaplex js sdk to upload metadata

You could try adding this to your config.js: webpack: (config) => { config.resolve.fallback = { crypto: false } return config }, I had a similar problem recently with fs in next.js ...
Jonas H.'s user avatar
  • 5,777
1 vote

Error on connection.confirmTransaction: ws error

Which RPC endpoints are you using? It could be that your mainnet RPC is not supporting websockets. Grab one dedicated Helius or Shyft RPC endpoint for free, they support wss. https://dev.helius.xyz/...
Josip Volarević's user avatar
1 vote
Accepted

Phanton Wallet - Get recent blockhash

Seems like you have some issues with the RPC endpoint that you're using. Could you try switching to some other devnet endpoint and see if it works out? e.g. https://solana-devnet-rpc.allthatnode.com/
Josip Volarević's user avatar
1 vote

React Native integration -- what is the proper way of storing wallet account keypair?

In most cases all you need to achieve persistence is to store the public key of the account that needs to be remembered. Public keys can be exposed without harm(they're public for a reason) and can be ...
Ademola's user avatar
  • 3,833
1 vote

Error while generating a build in react native using @solana/web3.js

The n token that the bundle step is failing on is part of a JavaScript bigint literal. These are literals of the form 10000n. At a certain point, @solana/web3.js began to admit code made up of bigint ...
steveluscher's user avatar
  • 2,455

Only top scored, non community-wiki answers of a minimum length are eligible