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
1 vote

Trying to deploy A solana SPL token With A Max Wallet

You can actually do this using token extensions with the transfer hook extension. In your transfer hook program, you would basically do the following pseudocode: if amount > max_limit { msg!("Transf …
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
6 votes
Accepted

Is Anchor a language or a framework?

Both use Rust as a language. The Anchor framework makes a lot of things easier by making opinionated choices on deserialization, account management, and more. …
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
2 votes
Accepted

How do I get the current fee to sign a tx from an on-chain program?

The Fees sysvar was deprecated because transaction fees will not be deterministic anymore. Originally they were calculated based on the amount of signatures required to complete the transaction. Now t …
Jacob Creech's user avatar
  • 4,019