Trace transactions | INFURA (2024)

info

Trace API is currently an open beta feature, available to paying Infura customers.

Infura provides access to a trace API that allows you to get detailed transaction processing information. Use the API toextract information about contract interactions, transactions, and blocks on the Ethereum network. You canalso use the API to retrieve transaction details that are not recorded on the blockchain. For example, use thetrace_call API to observe contract interactions.

Trace transactions | INFURA (1)

tip

View the trace API tutorial for more information on how to call the API totrace, debug, analyze, and secure smart contracts.

The trace API provides endpoints that can be categorized into the following groups, ad-hoc tracing APIsand transaction-trace filtering APIs.

Ad-hoc tracing APIs

These API endpoints allow you to use the trace orstateDiff diagnostic options when tracing calls or transactions, and arehelpful for debugging transactions and analyzing state changes.

info

The vmTrace diagnostic option is not supported.

The ad-hoc tracing API endpoints are:

Transaction-trace filtering APIs

These API endpoints allow you to filter and search by specific information such as the block, address, or transaction. The endpointsonly use the trace diagnostic option. The transaction-trace filtering API endpoints are:

Trace a transaction example

In the following example,you'll trace a transaction using a transaction hash on Ethereum mainnet. The result displays two traces, meaning two separate calls were made within the transaction, and includes the gas used for each call.

This example represents a call to the transfer function of an ERC-20 token contract (indicated in the input field), transferring tokens to the address, 0x7154980e9be95eab4eef2269650d4c7e17f156b8.

  • cURL
  • Result
curl https://mainnet.infura.io/v3/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "trace_transaction","params": ["0x1e404c4bf580688c5527df2ce5aceb3db5de49479ab7dd321dd4615e4f5a7a5c"],"id": 1}'

Use cases

Use cases for the trace API include:

  • Debugging transactions – The trace API allows you to analyze and debug Ethereum transactions. Trace the execution of a transaction to identify issues or bugs in smart contracts or dapps. Track the sequence of operations, inspect the input and output data, and pinpoint potential errors or unexpected behavior.
  • Optimizing gas usage – The trace API allows you to analyze the gas consumption of transactions and identify areas where gas usage can be optimized. By examining the execution trace, you can spot expensive operations, inefficient code patterns, or unnecessary computations that consume excessive gas. You can use this information to refactor smart contracts and reduce transaction costs for users.
  • Security auditing – Conduct security audits of smart contracts and dapps by tracing the execution flow. This allows you to identify potential vulnerabilities or attack vectors in the code. You can analyze contract interactions, track data modifications, and validate that the smart contract behaves as intended. This helps uncover security loopholes and ensures that the smart contracts are robust against various types of attacks, such as reentrancy or unauthorized access.
Trace transactions | INFURA (2024)

FAQs

What is a trace transaction? ›

A transaction trace records the available function calls, database calls, and external calls. You can use transaction traces to troubleshoot performance issues and to get detailed low-level insight into how your app is working.

How to trace ethereum transactions? ›

Use a Blockchain Explorer

The data includes transaction dates, amounts, fees, and other relevant details, helping you understand a wallet or smart contract's activity and history. These are the most popular tools for tracking Ethereum wallet transactions as they are typically free to use.

What does trace payment mean? ›

With every transfer utilizing the Automated Clearing House (ACH) Network, there is a unique reference number called a trace number, which the Payment Center will call a Trace ID or ACH#. Trace IDs are used to “trace” funds to see where they are at any given banking institution.

What is the purpose of a trace statement? ›

A Trace Statement is a message that is output during execution of a debug session. Trace statements can be defined in Enterprise Architect without requiring any changes to your application source code. Tracepoint Markers are set in the code editor. Like breakpoints, they are placed on a line of code.

How to find out who owns a wallet address? ›

One way is to use a block explorer. A block explorer is a website that allows you to search for information about Bitcoin transactions and blocks. Another way is to use a site like Wallet Explorer. Wallet Explorer is a website that allows you to search for information about Bitcoin addresses and transactions.

What is the difference between traces and transactions Ethereum? ›

Traces are the result of the execution of the transaction and are used to debug and understand the execution of the transaction. They are also known as internal transactions and are can be used to understand the execution of a transaction.

Can crypto transactions be traced? ›

Yes, cryptocurrency transactions can be traced. The traceability of cryptocurrency works through a public ledger called a blockchain, which records all transactions made on the network.

What does traces mean in banking? ›

Traces, in the context of TDS (Tax Deducted at Source), refers to the acronym for the TDS Reconciliation, Analysis, and Correction Enabling System. It is an online platform developed by the Income Tax Department of India to facilitate the reconciliation, analysis, and correction of TDS-related information.

What does tracer mean on a bank statement? ›

A trace number is a fifteen-digit number assigned by the Originating Depositary Financial Institution (ODFI) to uniquely identify an Automated Clearing House entry. The first eight digits are the ODFI's routing number, and the last seven digits are the unique item number.

How do banks trace transactions? ›

Bank staff will usually start with the transaction data and look for likely indicators of fraud. Time stamps, location data, IP addresses, and other elements can be used to prove whether or not the cardholder was involved in the transaction.

What is an example of trace amounts? ›

Metals such as lead and copper and zinc are found in a trace amount in all sediments. This example is from Wikipedia and may be reused under a CC BY-SA license. A typical mix is 75% copper, 25% nickel, and a trace amount of manganese.

Top Articles
What are the benefits and challenges of using a zero-based budgeting approach for your operating budget?
Why is speed to market so important?
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Margart Wisoky

Last Updated:

Views: 5702

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.