Search
⌘K
Traces API
API version: All versions
Introduction
Quickstart guide
Methods
Get synced interval GET
Get block trace by number GET
Get transaction trace by block number and transaction hash GET
Get transaction trace by block number and offset of transaction in block GET
Get disabled blocks for a chain GET
Docs·APIs·Traces API·Introduction

Introduction

The 1inch Trace API provides comprehensive, step-by-step data on every operation within on-chain transactions. This empowers developers and analysts to gain precise insights into transaction behavior. This API supports many networks ensuring compatibility across diverse ecosystems. With fast and organized transaction traces, you can debug, audit, and optimize with ease, whether you’re working on smart contracts or analyzing historical transaction data.

Supported Chains

Supported Chains Chain ID
Ethereum 1
Base 8453
Binance 56
zkSync 324
Gnosis 100
Optimism 10
Polygon 137
Linea 59144
Sonic 146
Unichain 130
Arbitrum 42161
Avalanche 43114

What are transaction traces?

A transaction trace is essentially a step-by-step representation of every operation that occurs during the execution of a transaction on the blockchain. For Ethereum, these operations can be quite varied, from basic transfers of ETH to complex contract interactions.

Why are transaction traces useful?

  • Debugging smart contracts: developers can use transaction traces to troubleshoot their smart contracts, especially when something goes wrong. They can identify which specific step of the contract resulted in an error.
  • Optimization: developers can analyze how gas is consumed during different operations in the transaction. This helps in optimizing smart contracts to be more gas efficient.
  • Security audits: transaction traces can be instrumental in security audits. They allow auditors to see the exact flow of operations, ensuring that the contract behaves as expected.
  • Understanding contract behavior: for those trying to understand how a particular smart contract operates, tracing provides a clear breakdown of its inner workings.
  • Historical analysis: for platforms or researchers analyzing blockchain data, transaction traces offer rich insights into the actual execution of historical transactions.

For workloads that require higher RPS, expanded quotas, or sustained performance, explore the available paid plans on the pricing page. For organizations with significant trading volumes or advanced requirements, complete this application to explore tailored Enterprise options.

API reference

For detailed information about each endpoint, refer to the Traces API Swagger section.

Did you find what you need?