Skip to content

KatrixReloaded/SolanaTransactionParsing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Transaction Parsing

Terminal Commands

Init:

npm init -y

Install solana/web3js:

npm i @solana/web3js

To run the code:

node index

Code

If using index.js, getTransactionsBySlot(address, int, int) sets a range of slots from which transactions are fetched for the contract address provided.

If using tx-time.js, getTransactionsByTime(address, int, int) sets a range of slots from a pair of timestamps passed as parameters for the contract address provided.

If using tx-sig.js, getTransactionsByTxSig(address, address, address) sets a range of transactions from a pair of tx signatures passed as parameters for the contract address provided.

Side-note: Will prefer if a common endpoint is provided instead of my personal one. When using the clusterApiUrl, it reverts with an error saying Error: 429 Too Many Requests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors