debridge-finance / solana-tx-parser-public Goto Github PK
View Code? Open in Web Editor NEWSolution for parsing of arbitrary solana transactions
License: GNU Lesser General Public License v2.1
Solution for parsing of arbitrary solana transactions
License: GNU Lesser General Public License v2.1
Hi, I am getting a specific error with the following transaction:
"4Xfz6Yb5QK2H6z7Q1R4S5pQQ5QW8V14djncR2LcMW6G7BbDo8xtnA4LzbWKPsB7QS2BEd8GPduqB41FvrnRPugFY"
It looks like one of the accounts can't be decoded.
I am using the method flattenTransactionResponse
would be nice to add tests for raydium
Hello guys, fantastic work! thank you for creating this ๐๐ป
Can I use the library to parse local transactions? For example, Jupiter Swap API gives you a transaction to deserialize and sign, I wonder if it's possible to parse the transaction before sending it, in other words, parse it not using the hash, using a transaction object or instructions.
Nice project!
I dont find the @debridge-finance/solana-transaction-parser
npm package:
Do you plan to publish it on npm ?
npm run test:ix
> @debridge-finance/[email protected] test:ix
> mocha -r ts-node/register -b -t 200000 ./tests/parseIx.test.ts
Exception during run: src/parsers.ts:336:28 - error TS7053: Element implicitly has an 'any' type because expression of type 'AuthorityType' can't be used to index type '{ 2: { accountOwner: {}; }; 3: { closeAccount: {}; }; 1: { freezeAccount: {}; }; 0: { mintTokens: {}; }; }'.
Property '[AuthorityType.TransferFeeConfig]' does not exist on type '{ 2: { accountOwner: {}; }; 3: { closeAccount: {}; }; 1: { freezeAccount: {}; }; 0: { mintTokens: {}; }; }'.
336 args: { authorityType: authrorityTypeMap[decodedIx.data.authorityType], newAuthority: decodedIx.data.newAuthority },
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.