Hot answers tagged

5 votes

Getting SOL balance via api for an address

You can use Solana JSON RPC API by calling getBalance request example Or @solana/web3.js using connection.getBalance example
vicyyn's user avatar
  • 3,875
4 votes
Accepted

Why explorers not supporting transaction pagination? Why is it impossible to see the first tx of an account

There isn't really a Solana or Ethereum reason for this. For both Ethereum and Solana you can't directly fetch the first transaction of an account, instead you have to iterate backwards through all ...
Ahri's user avatar
  • 2,393
3 votes

Is there an API to get the balance per day for an account?

there is not really an API but you can build one yourself pretty easily and for free. If you look at the chart in https://faucet.solana.com/monitor, you can see that there are daily points for the ...
valentinmadrid's user avatar
3 votes
Accepted

Get Balance of Sol account more then one account

Wallets are just Accounts too, you can use getMultiple to fetch multiple accounts and read the lamports if you just want the SOL balance: connection.getMultipleAccountsInfo(publicKeys).then(...
Whiteseal's user avatar
  • 2,617
2 votes
Accepted

View and Analyze Token Contracts on Solana

On Solana not every token has its own smart contract. Instead there are two token programs. The SPL-Token and the Token22 aka Token Extensions program. So most of them use the SPL TokenProgram for now....
Jonas H.'s user avatar
  • 3,963
2 votes
Accepted

How could I recognise a wallet is someone's Exchange wallet?

To the blockchain, an exchange wallet is like any other wallet. Exchanges can choose how to manage their funds and users' wallets in any way. Your best bet is to go through exchange by exchange and ...
Jon C's user avatar
  • 10.5k
2 votes

How we can decode an Instruction from a list in a transaction receipt

Solana enforces no serialization or data structure on account/instruction data, so programs are free to implement both however they wish. This makes it impossible to generically parse the data fields ...
trent.sol's user avatar
  • 4,285
1 vote
Accepted

Sol Balance oddity after buy transaction

When you receive a token that you haven't held before, you need to create a new token account (TA) for that token. Creating this account requires you to deposit a small amount of Sol to it called the ...
Ahri's user avatar
  • 2,393
1 vote

How To View/Interact with a Contract's Code

no you are not missing anything, currently, it is not possible to see program's source code (except if they are open source, of course, and even if they are, you can't verify that the deployed program ...
Effe2's user avatar
  • 1,138
1 vote

Fetch NFT onchain data as JSON

Sure can! But the NFT metadata is stored off-chain actually (Arweave, NFT storage etc...) the on-chain data has the URI that holds the NFT metadata. You can try the metaplex findByMint method, just ...
OneFishTaco's user avatar

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