Skip to main content
added 455 characters in body
Source Link
spaghetti
  • 341
  • 1
  • 3

Reminder you can add param: ["limit": N] to getSignaturesForAddress to limit response to X amount of transactions. Can be combined with the before param. Then you can pass in the response signatures in one call useusing getParsedTransactions. Would recommend using ["maxSupportedTransactionVersion": 0] parameter to it as well.

Keep in mind this wont catch incoming SPL token transfers as the given address youre calling getSignaturesForAddress with won't be included in the accountKeys array when its on the receiving end, only its token account will.

So for completedness if you are worried about getting every tx you would have to get all the token accounts for a given address, parse the signatures, parse the token accounts signatures, organize them by blockTime, etc.

Reminder you can add param: ["limit": N] to getSignaturesForAddress to limit response to X amount of transactions. Can be combined with the before param. Then you can pass in the response signatures in one call use getParsedTransactions. Would recommend using ["maxSupportedTransactionVersion": 0] parameter to it as well.

Reminder you can add param: ["limit": N] to getSignaturesForAddress to limit response to X amount of transactions. Can be combined with the before param. Then you can pass in the response signatures in one call using getParsedTransactions. Would recommend using ["maxSupportedTransactionVersion": 0] parameter to it as well.

Keep in mind this wont catch incoming SPL token transfers as the given address youre calling getSignaturesForAddress with won't be included in the accountKeys array when its on the receiving end, only its token account will.

So for completedness if you are worried about getting every tx you would have to get all the token accounts for a given address, parse the signatures, parse the token accounts signatures, organize them by blockTime, etc.

Source Link
spaghetti
  • 341
  • 1
  • 3

Reminder you can add param: ["limit": N] to getSignaturesForAddress to limit response to X amount of transactions. Can be combined with the before param. Then you can pass in the response signatures in one call use getParsedTransactions. Would recommend using ["maxSupportedTransactionVersion": 0] parameter to it as well.