ethereum-optimism/supersim

supersim admin API (read)

开放

#204 创建于 2024年10月17日

 (0 条评论) (1 个反应) (0 位负责人)Go (116 个派生)github user discovery
P0enhancementhelp wantedunprioritized

仓库指标

星标
 (264 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Useful read-only APIs for devs using supersim programmatically

write APIs out of scope

general

  • JSON RPC so it's easily usable with cast rpc

some example endpoints

  • ready(): used for checking whether the service is ready to use
  • getConfig(): returns config of the chains (RPC URLs, addresses, etc.
  • getL1Addresses(chainId): returns contract addresses for given chainId
  • getL2Addresses(chainId): same as above but for L2 contracts
  • getL2ToL2MessageByMsgHash(msgHash)
  • getL2ToL2MessageByTxHash(msgHash)
  • getL1ToL2MessageByTxHash(l1DepositTxHash)
  • listL1ToL2Messages(optional chainId)
  • listL2ToL2Messages(optional chainId)
  • getAutoRelayedMessages

贡献者指南