4

I am currently working on a Shop based which accepts Solana as the form of currency, I want to know which wallets are transferring funds to my wallet. How can I do that?

1 Answer 1

6

You can use the method getSignaturesForAddress to get a list of signatures, this method can receive your address. After that you pass the signatures to the method getParsedTransactions which returns information about the transactions.

Keep in mind you will only have token mints and not symbols like USDC, but beside that you can get everything you need, from, time, mint, amount, among others useful to identify the transaction.

2
  • Note that you can use the batch RPC request format to run multiple requests at once for efficiency. jsonrpc.org/specification#batch Aug 4, 2022 at 7:37
  • many rpc service providers restrict or reject batched method calls to curb abuse
    – trent.sol
    Aug 17, 2022 at 5:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.