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 37
2 votes
Accepted

How to send solana using using python?

For python you can send SOL as follows: from solana.rpc.api import Client from solana.keypair import Keypair from solana.transaction import Transaction from solana.system_program import TransferParams …
Jacob Creech's user avatar
  • 4,019
5 votes
Accepted

How to get the remaining computational budget inside the transaction?

There's not currently a way to get compute units remaining outside of logging it within the program with sol_log_compute_units()
Jacob Creech's user avatar
  • 4,019
3 votes
Accepted

How to get last N transactions by account/address, via public API?

To get the last 1000 signatures for a specific address using the JSON RPC API, do the following: curl https://api.mainnet-beta.solana.com/ \ -X POST \ -H "Content-Type: application/json" \ -d $' …
Jacob Creech's user avatar
  • 4,019
11 votes
Accepted

How do I transfer an SPL token using web3.js?

If you're just using web3.js: const web3 = require("@solana/web3.js"); const { Token } = require("@solana/spl-token"); (async () => { // Connect to cluster const connection = new web3.Connection( …
Jacob Creech's user avatar
  • 4,019
2 votes

obtain the contract of a token through the address of a holder

Every token on Solana is currently deployed with one of two different programs: Token Program: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA Token-2022/Token Extensions program: TokenzQdBNbLqP5VEhdkAS6 …
Jacob Creech's user avatar
  • 4,019