Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3788

Questions regarding the JavaScript SDK @solana/web3.js.

1 vote
1 answer
1k views

How to get balance using wallet adapters and connections?

I have taken the standard code from Solana for the wallet-adapter implementation which works to connect to the wallet. But I cannot get the balance to work. I tried connection.getBalance() but the met …
trevoro's user avatar
  • 105
2 votes
1 answer
1k views

How to get USDC balance in a Phantom Wallet?

I have some code in reactjs which gets the sol balance from a Phantom wallet (Content Functional Component), how can this be changed to get the USDC balance in the same wallet? Here is the code exampl …
trevoro's user avatar
  • 105
0 votes
1 answer
53 views

NotEnoughKeys when deploying a txn (ReactJs/Typescript/Solana)

I have this code to transfer sol via a contract and via web3 in ReactJS - const transferSol = async () => { if (!publicKey) throw new WalletNotConnectedError(); const programId …
trevoro's user avatar
  • 105