ethereum-optimism/supersim

supersim admin API (read)

オープン

#204 opened on 2024/10/17

 (0 件のコメント) (1 件のリアクション) (0 人の担当者)Go (116 件のフォーク)github user discovery
P0enhancementhelp wantedunprioritized

Repository metrics

Stars
 (264 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド