{"repo":"0xProject/0x-parser","free":true,"listed":false,"github":"https://github.com/0xProject/0x-parser","clone":"git clone https://github.com/0xProject/0x-parser.git","description":"🧾 A library that parses 0x transactions from EVM blockchains into a format that is user-friendly and easy to understand.","language":"TypeScript","stars":58,"topics":["0x","erc-20","ethereum","events","logs","swap","0x-protocol","evm"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"0x-parser Blockchain Support Arbitrum Avalanche Base BNB Chain Blast Ethereum Linea Mantle Monad Optimism Polygon Scroll Mode Worldchain Unichain Berachain Plasma Abstract Robinhood 🔜 🔜 🔜 Overview This library is designed for 0x integrators, simplifying the complex task of parsing 0x transactions into a format that is both user-friendly and easy to understand. When swapping tokens, one of the challenges is that the trade can experience slippage through Automated Market Makers (AMMs). This makes the final swap amounts difficult to predict prior to executing the trade. However, this library overcomes that challenge by parsing the transaction receipt and event logs to accurately identify the final swap amounts. Demo Try out the parser in a live code environment directly in your browser 🌐. You can also experience it in action through the demo UI app, which is built with 0x-parser. Requirements 0x-parser relies on the debug traceTransaction Ethereum JSON-RPC method to parse 0x transactions. Ensure that your RPC node supports this method. Installation Step 1: Install Peer Dependency First, make sure you have the required peer dependency viem installed. If you haven't installed it yet, you can do so with the following command: Step 2: Install the Parsing Library After installing the peer dependency, proceed to install the @0x/0x-parser package: Usage Development This repository contains example code that you can run locally, which is useful for the development process. The code ","default_branch":null,"files":null,"tree":[],"storefront":"/r/0xProject","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0xProject/0x-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}