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 answers only not deleted user 289
4 votes
Accepted

Sign transaction from keypair.json instead of wallet confirmation

You can create a Keypair object from a private key: import { Keypair } from '@solana/web3.js' import base58 from 'bs58' const yourPrivateKey = 'abcdef...' // base58 encoded const keypair = Keypair.fr …
Callum M's user avatar
  • 3,775
0 votes

[Phantom]: Is it actually possible to disconnect your wallet

You get this for free if you use wallet-adapter instead of directly calling Phantom's provider API. https://github.com/anza-xyz/wallet-adapter We do it by storing the wallet name (eg Phantom) in local …
Callum M's user avatar
  • 3,775
1 vote

Token transfer with splToken throwing error wehen asking to sign

getAssociatedTokenAddress takes as input, in order, the mint and then the owner to get the token account for. The token program and associated token program IDs are not required if you're using the de …
Callum M's user avatar
  • 3,775
1 vote

failed to get recent blockhash: Method not found at Connection.getRecentBlockhash on vanilla...

That function is deprecated, see web3js docs and Solana RPC docs. It is removed in v2.0 and some RPCs are now running this version, so these deprecated methods are now often unavailable. You should us …
Callum M's user avatar
  • 3,775