Optimism 백서

Optimism

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 11쪽

s://github.com/ethereum-optimism/developers/blob/main/community/tools/account-abstraction.md) for an additional listing of third-party account abstraction tools. </Info> [ERC-4337](https://www.erc4337.io/docs/paymasters/introduction), also known as Account Abstraction, enables more opportunities for apps and wallet developers to innovate on user experiences, including the ability to: * Batch transactions together (e.g. approve and execute a swap in one go) * Offer wallets with easy recovery and no seed phrase * Sponsor the gas fees for transactions * Enable users to pay gas in the token(s) of their choice ## Bundlers The OP Stack includes support for the `eth_sendRawTransactionConditional` RPC method to assist bundlers on shared 4337 mempools. See the [specification](/op-stack/features/send-raw-transaction-conditional) for how this method is implemented in op-geth. If used by the chain operator, also see the supplemental [op-txproxy](/chain-operators/tools/op-txproxy) service which may apply additional restrictions prior to reaching the block builder. <Info> As of today, this endpoint is not enabled by default in the stack. The operator must explicitly configure this. </Info> ## Account abstraction tools Ready to enable account abstraction experiences in your app? Here's some helpful information on account abstraction infrastructure like ERC-4337 bundler and gas manager APIs that are available on OP Mainnet: * [Alchemy](https://www.alchemy.com/account-abstraction): Account Kit is a complete solution for account abstraction. Using Account Kit, you can create a smart contract wallet for every user that leverages account abstraction to simplify every step of your app's onboarding experience. It also offers Gas Manager and Bundler APIs for sponsoring gas and batching transactions. * [Biconomy](https://docs.biconomy.io/): is an Account Abstraction toolkit that enables you to provide the simplest UX for your app or wallet. It offers modular smart accounts, as well as paymasters and bundlers as a service for sponsoring gas and executing transactions at scale. * [GroupOS](https://docs.groupos.xyz/introduction/group-os): provides Smart Wallets that are ERC-4337 compliant smart wallets, offering full flexibility, programmability and extensibility as well as out-of-the-box toolkit groups need to gaslessly onboard and activate wallets to games, applications, and/or protocols. * [Openfort](https://openfort.io/docs/?utm_source=optimism\&utm_medium=docs\&utm_campaign=backlinks): an open-source wallet infrastructure solution. The core offerings include embedded wallets, global wallets and AA infrastructure (Paymaster and Bundler). It enables rapid integration of wallet functionality, intuitive onboarding, and stablecoin flows. * [Pimlico](https://docs.pimlico.io/): provides an infrastructure platform that makes building smart accounts simpler. If you are developing an ERC-4337 smart account, they provide bundlers, verifying paymasters, ERC-20 paymasters, and much more. * [Reown](https://reown.com/?utm_source=optimism\&utm_medium=docs\&utm_campaign=backlinks) gives developers the tools to build user experiences that make digital ownership effortless, intuitive, and secure. Using Reown's AppKit SDK, you can enable your users to create a smart wallet using their social logins, configure a paymaster to sponsor gas fees, enable chain abstraction and a lot more. * [Safe](https://docs.safe.global/home/what-is-safe): provides modular smart account infrastructure and account abstraction stack via their Safe\{Core} Account Abstraction SDK, API, and Protocol. * [Stackup](https://docs.stackup.sh/docs): provides smart account tooling for building account abstraction within your apps. They offer Paymaster and Bundler APIs for sponsoring gas and sending account abstraction transactions. * [thirdweb](https://portal.thirdweb.com/react/v5/account-abstraction/get-started?utm_source=opdocs\&utm_medium=docs): offers the complete tool-kit to leverage account abstraction technology to enable seamless user experiences for your users. This includes Account Factory contracts that lets your users spin up Smart Accounts, Bundler for UserOps support, and Paymaster to enable gas sponsorships. ## Helpful tips * [EIP-1271 Signature Validation](https://eip1271.io/) * [Making smart accounts work with WalletConnect v2](https://safe-global.notion.site/WalletConnect-v2-update-Issues-and-solutions-for-smart-wallets-3fc32fad6af4485fa5823eaebd486819) # Block explorers Source: https://docs.optimism.io/app-developers/tools-sdks/block-explorers Learn about different block explorers you can use to interact with contracts and view transaction history for OP Mainnet and OP Sepolia. ## Blockscout We have a Blockscout explorer for [OP Mainnet](https://optimism.blockscout.com) and [OP Sepolia](https://optimism-sepolia.blockscout.com/). It includes: * [Verified testnet contract source code, along with the ability to interact with it](https://optimism.blockscout.com/verified-contracts) * [Detailed testnet transaction information](https://optimism.blockscout.com/tx/0xa1b04233084d4067ec0bb3e09301012900f0e209f14a3d406f3d6dc696eea138) Blockscout also has some OP-Mainnet-specific features: * [An interactive list of deposits (L1-L2)](https://optimism.blockscout.com/l2-deposits) * [An interactive list of withdrawals (L2-L1)](https://optimism.blockscout.com/l2-withdrawals) * [Transaction batches](https://optimism.blockscout.com/l2-txn-batches) * [App marketplace](https://optimism.blockscout.com/apps) * And much more! ## Etherscan We have Etherscan explorers for the [OP Mainnet](https://explorer.optimism.io) and the [OP Sepolia](https://testnet-explorer.optimism.io/). Etherscan has lots of tools to help you debug transactions. Optimistic Etherscan has all the tools you expect from Etherscan, such as: * [Verified contract source code, along with the ability to interact with it](https://explorer.optimism.io/address/0x420000000000000000000000000000000000000F#code) * [Detailed transaction information](https://explorer.optimism.io/tx/0x292423266d6da24126dc4e0e81890c22a67295cc8b1a987e71ad84748511452f) * And everything else you might find on Etherscan! It's also got some OP-Mainnet-specific features: * [A list of L1-to-L2 transactions](https://explorer.optimism.io/txsEnqueued) * [A list of L2-to-L1 transactions](https://explorer.optimism.io/txsExit) * [A tool for finalizing L2-to-L1 transactions](https://explorer.optimism.io/messagerelayer) * And more! Just check it out and click around to find all of the available features. ## Superscan by Routescan [Superscan](https://superscan.network) is the dev-focused OP Stack explorer unified at the ecosystem level, powered by [Routescan](https://routescan.io). On the Superscan, developers can quickly glance at transactions, blocks, addresses, deployed contracts and more across OP Stack chains in unified pages. The Superscan currently includes: * Mainnet - OP Mainnet, Base, Zora, Mode, Cyber, Orderly, Fraxtal, Public Goods Network * Testnet - Zora, Mode, Orderly, Fraxtal ## Tenderly Tenderly's [Developer Explorer](https://docs.tenderly.co/developer-explorer?mtm_campaign=ext-docs\&mtm_kwd=optimism) for OP Mainnet and OP Sepolia allows you to monitor and inspect transactions, providing a high level of detail and additional tools: Tenderly Developer Explorer lets you: * Keep track of specific [contracts](https://docs.tenderly.co/developer-explorer/contracts?mtm_campaign=ext-docs\&mtm_kwd=optimism) and their transactions * Inspect [transaction execution](https://docs.tenderly.co/developer-explorer/inspect-transaction?mtm_campaign=ext-docs\&mtm_kwd=optimism) with fully decoded transaction trace * [Debug](https://docs.tenderly.co/debugger?mtm_campaign=ext-docs\&mtm_kwd=optimism) failing and [simulate](https://docs.tenderly.co/simulator-ui/using-simulation-ui?mtm_campaign=ext-docs\&mtm_kwd=optimism) correct transactions before sending them on-chain * Evaluate [function-level gas usage](https://docs.tenderly.co/debugger/gas-profiler?mtm_campaign=ext-docs\&mtm_kwd=optimism) for any transaction * Set up [Alerts](https://docs.tenderly.co/alerts/tutorials-and-quickstarts/alerting-quickstart-guide?mtm_campaign=ext-docs\&mtm_kwd=optimism) to monitor interactions, access control, asset transfers, and contracts' state changes * Create a [Virtual TestNet](https://docs.tenderly.co/virtual-testnets?mtm_campaign=ext-docs\&mtm_kwd=optimism) from a specific OP Mainnet or OP Chain transaction for systematic research ## Access to pre-regenesis history Because of our final regenesis on 11 November 2021, older transactions are not part of the current blockchain and do not appear on [Etherscan](https://explorer.optimism.io/?utm_source=op-docs\&utm_medium=docs). However, you **can** access transaction history between 23 June 2021 and the final regenesis using a number of different tools. For detailed instructions, see [Regenesis History](/op-mainnet/pre-bedrock-history/regenesis-history). ## Next Steps * Looking for other developer tools? See the [building apps overview](/app-developers/guides/building-apps) to explore more options! # Analytics tools Source: https://docs.optimism.io/app-developers/tools-sdks/data/analytics-tools Learn about platforms you can use to gather analytics and set up customizations about OP Mainnet. The following guide lists platforms you can use to gather analytics and set up customizations about OP Mainnet. ## Blocknative [Blocknative](https://www.blocknative.com/) lets you [decode](http://docs.blocknative.com/ethernow/batch-decoder-api) and [analyze](https://docs.blocknative.com/blocknative-data-archive/blob-archive) OP Stack Batches submitted to the Ethereum L1. You can inspect, analyze, decode, and download the data of any batch – confirmed on-chain or not – via public APIs or visually through the [Ethernow Explorer](http://ethernow.xyz). Below you can find links to the different resources: * [Batch Decoding API](http://docs.blocknative.com/ethernow/batch-decoder-api): decode OP Stack Batch transactions into their human-readable JSON format. * [Blob Archive API](https://docs.blocknative.com/blocknative-data-archive/blob-archive): take any versioned hash of an OP Stack Blob and receive the blob data (even beyond the 4096 epoch window of storage). * [Mempool Archive](https://docs.blocknative.com/blocknative-data-archive/mempool-archive): Analyze any OP Stack transaction that was in the Ethereum mempool to see detection time, time pending, gas, etc. * [Ethernow Explorer](http://ethernow.xyz): Visually see transactions and batches enter the mempool and get organized into blocks. Use this filter to see OP Stack Batches enter the mempool and land on-chain. ## Tenderly [Tenderly](https://tenderly.co/?mtm_campaign=ext-docs\&mtm_kwd=optimism) provides comprehensive monitoring and security solutions for OP-powered Chains, allowing you to stay informed and respond proactively to potential issues in real time. * Configure [Tenderly Alerts](https://docs.tenderly.co/alerts/intro-to-alerts?mtm_campaign=ext-docs\&mtm_kwd=optimism) for monitoring wallets and setting up real-time notifications on transactions and contract events. Notifications trigger external webhooks, PagerDuty, or chat apps like Telegram and Slack. * Rely on [Developer Explorer](https://docs.tenderly.co/developer-explorer?mtm_campaign=ext-docs\&mtm_kwd=optimism) to monitor and analyze transaction execution with a high level of detail. * Use [Web3 Actions](https://docs.tenderly.co/web3-actions/intro-to-web3-actions?mtm_campaign=ext-docs\&mtm_kwd=optimism) to automate predefined responses, improving security and user experience. * Integrate [Simulation RPC](https://docs.tenderly.co/simulations/single-simulations?mtm_campaign=ext-docs\&mtm_kwd=optimism#simulate-via-rpc) to predict transaction outcomes such as the expected asset changes, precise gas usage, and emitted events. ## Dune Analytics [Dune Analytics](https://dune.com) allows anyone to create dashboards that present information about OP Chains (OP Mainnet, Base, and Zora are available). See [Dune Docs](https://dune.com/docs/) for more info. You can find a list of community created dashboards for OP Chains [here](https://dune.com/browse/dashboards?q=tags%3Aop%2Coptimism%2Csuperchain\&order=trending\&time_range=24h), or [create your own](https://docs.dune.com/#queries) dashboard. For developers building apps on OP chains, Dune's developer platform, [Sim](https://sim.dune.com/), provides real-time onchain data access via [Sim APIs](https://docs.sim.dune.com/) and custom indexing with [Sim IDX](https://docs.sim.dune.com/idx). Here are some of our favorite dashboards so far: * [OP Chains / Superchain - L2 Activity, Chain Economics](https://dune.com/oplabspbc/op-stack-chains-l1-activity) * [OP Chains / Superchain - Popular Apps & Project Usage Trends](https://dune.com/oplabspbc/superchain-op-chains-apps-and-project-usage-trends) * [By OP Chain - L2/L1 Chain Economics](https://dune.com/oplabspbc/optimism-l2-l1-economics) * [OP Token House Delegates](https://dune.com/optimismfnd/optimism-op-token-house) * [Superchain NFTs](https://dune.com/oplabspbc/superchain-nfts) ## Additional tools and resources Here are some additional tools and resources for OP Mainnet analytics and development: * L2 Usage and Comparison: [growthepie](https://www.growthepie.xyz/) * OP Analytics (Incentive Tracking, Helper Functions, Public Analysis): [OP Analytics on GitHub](https://github.com/ethereum-optimism/op-analytics) * Contribute to NumbaNERDs: [Issues on GitHub](https://github.com/ethereum-optimism/op-analytics/issues) # Data and Dashboards Source: https://docs.optimism.io/app-developers/tools-sdks/data/data-and-dashboards Learn about various dashboards and terms to explore various OP Stack metrics. The following resources are available to help you explore various OP Stack metrics: * [Data Glossary](/app-developers/tools-sdks/data/data-glossary): Definitions, methodology, and calculation notes for key metrics * [Superchain Health Dashboard](https://docs.google.com/spreadsheets/d/1f-uIW_PzlGQ_XFAmsf9FYiUf0N9l_nePwDVrw0D5MXY/edit?gid=192497306#gid=192497306): High-level metrics across OP Stack chains * [Superchain Strategic Focus Dashboard](https://app.hex.tech/61bffa12-d60b-484c-80b9-14265e268538/app/d28726b2-ff11-4f94-8a9f-6bb0a86f4b46/latest): In-depth metrics with chain-level splits and industry benchmarks * [Optimism Superchain Raw Onchain Data](https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/523274563936/locations/us/dataExchanges/optimism_192d403716e/listings/optimism_superchain_raw_onchain_data_192fdc72e35): Raw Blocks, Logs, Transactions, Traces data for OP Stack chains, updated daily. * [Optimism Superchain 4337 Account Abstraction Data](https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/523274563936/locations/us/dataExchanges/optimism_192d403716e/listings/optimism_superchain_4337_account_abstraction_data_1954d8919e1): Decoded account abstraction UserOps across OP Stack chains. # Data Glossary Source: https://docs.optimism.io/app-developers/tools-sdks/data/data-glossary This glossary explains various data terms. This glossary is a living document and will be updated over time as new metrics emerge or definitions evolve. | Metric | What It Measures | Why It Matters | | - | - | - | | Real Economic Value (REV) | Fees paid by users to transact (txn fees + out-of-protocol tips) | Captures users' willingness to pay for onchain activity | | Collective Revenue | ETH earned by the Optimism Collective | Revenue can be directed by governance to support ecosystem growth | | Total Value Locked (TVL) | Tokens locked in DeFi protocols and other apps | Supply side of the DeFi ecosystem | | Gas Used per Second | Average compute consumed onchain | Measures throughput and execution load | | Median Transaction Fee | Typical cost for a user to transact | Lower fees reduce friction and may unlock broader usage | | Market Share | OP Stack ecosystem's share of activity vs. the broader crypto industry | Tracks relative performance against L2s or the broader market | ## Measure Demand ### Transaction Fees Paid **Metric:** Real Economic Value (REV) **Definition:** The total fees paid to execute a transaction onchain. This includes both the traditional gas fees required for inclusion onchain and additional fees paid to transaction execution services (e.g., Jito, Flashbots, Timeboost). **Calculation:** Gas Fees + Out-of-Protocol Tips (e.g., Jito, Flashbots, Timeboost) * Out-of-Protocol Tips can be sourced from Defillama's MEV category **Why it matters:** * REV is a topline metric that "measures the monetary demand to transact onchain" (Blockworks). * It's used as a proxy for users' willingness to pay, capturing all transaction fees to better reflect real demand (excludes app-level fees like DEX swap costs). ### Revenue **Metric:** Estimated Optimism Collective Revenue (Collective Revenue) **Definition:** The amount of ETH expected to be earned by the Optimism Collective from revenue sharing. **Calculation:** For each chain, take the greater of (a) 2.5% of Chain Revenue or (b) 15% of Net Onchain Profit. OP Mainnet contributes 100% of Net Onchain Profit. **Key Components:** * **Net Onchain Profit:** Chain Revenue - L1 Gas Fees * **Chain Revenue:** Sum of the L1 Data Fee + L2 Base Fee + L2 Priority Fee + L2 Operator Fee (Also includes any additional fee types added in the future.) * *L1 Gas Fees:* Total gas fees spent by the chain on L1 in transaction batches (including blob costs) and state output submissions or dispute games. * **Transaction Batches:** All transactions where the transaction from address is the `batcherHash` address as defined in the chains' `SystemConfigProxy` contract, and the transaction to address is the chain's `batch_inbox_address` as defined in the rollup config. * **State Output Submissions or Dispute Games:** All transactions where the transaction from address is the `Proposer` and the transaction to address is either the `outputOracleProxy` or the `disputeGameFactoryProxy` as defined in the chains' `SystemConfigProxy` contract. * Each chain's `SystemConfigProxy` contract can be found in the superchain-registry. * **Resolving Dispute Games:** All transactions sent to dispute game contracts created by the `disputeGameFactoryProxy`, where the transaction's method id (function call) is either `Resolve`, `ResolveClaim`, or `ClaimCredit`. **Why it matters:** * This is what the Optimism Collective earns by operating OP Stack chains, which can be directed by governance to support ecosystem growth. * See How (and why) the OP Stack drives fees to the Optimism Collective (Optimism blog, Aug 2024) ## Onchain Signals ### Value Onchain **Metric:** Total Value Locked (TVL) **Definition:** "Value of all coins held in smart contracts of the protocol" (Defillama). **Calculation:** The sum of all USD value of assets locked in applications, as reported by DefiLlama. * TVL can be priced in USD or a crypto asset like ETH, but both are subject to price volatility. USD is often used because it's easier to interpret and consistent across the broader crypto ecosystem. **Why it Matters:** TVL represents the supply side of onchain economic activity for use in protocols such as Decentralized Exchanges (DEXs) and lending markets. Strong TVL in the right places may enable greater onchain demand. #### How to Measure Growth: Net TVL Flows Because TVL is influenced by market fluctuations, it can be misleading when trying to measure true growth or user behavior. Net TVL Flows can adjust for this by tracking the net change in token balances, valued at current prices. **Calculation:** ( `# of Tokens on Day N` - `# of Tokens on Day 0` ) \* `Price of Tokens on Day N` **Example:** If an app has 100,000 ETH locked on Day 0 when ETH/USD is $2,000, and 90,000 ET
프로젝트로 돌아가기