ä»åã¯Beacon Chainã®blockæ å ±ãinfura.ioã使ã£ã¦åå¾ããæ¹æ³ã«ã¤ãã¦è¨äºã«ããã
twitterã§è©±é¡ã«ãªã£ã¦ãããreorgã«ã¤ãã¦ä½ãèµ·ãã¦ãã®ãã調ã¹ãããã«blockã®æ å ±ãè¦ã¦ã¿ãããªãã¨æã£ãã®ããã£ããã§ããã
The Ethereum beacon chain experienced a 7-block deep reorg ~2.5h ago. This shows that the current attestation strategy of nodes should be reconsidered to hopefully result in a more stable chain! (proposals already exist) pic.twitter.com/BkQrKuUlw1
— Martin Köppelmann ðºð¦ (@koeppelmann) 2022å¹´5æ25æ¥
ãªããèªåã§nodeãç«ã¦ãã®ã¯å°ã大å¤ãªã®ã§ãinfura.ioã使ã£ã¦Beacon Chainã®Blockæ
å ±ãªã©ãåå¾ããã
ããããªãããinfura.ioã使ã£ã¦Beacon Chainã®æ
å ±ãåå¾ããæ¹æ³ãã¾ã¨ããè¨äºãå°ã調ã¹ãã ãã ã¨è¦ã¤ãããªãã£ãã®ã§ãä»åè¨äºã¨ãã¦æ®ãã¦ãããã¨æã£ãã
- Clientãã¼ã«
- infura.ioã§ETH2.0ã®ããã¸ã§ã¯ããä½æ
- Beacon Chainã®REST API
- genesisãã¼ã¿ãåå¾
- blockã®æ å ±ãåå¾
Clientãã¼ã«
ä»åã¯Beacon Chainããæ
å ±ãåå¾ããæ¹æ³ãç°¡åã«èª¿æ»ããç¨åº¦ãªã®ã§ãinfura.ioã¸ã®ã¢ã¯ã»ã¹ã«ã¯Postmanãå©ç¨ããã
www.postman.com
infura.ioã§ETH2.0ã®ããã¸ã§ã¯ããä½æ
infura.ioã§ã¢ã«ã¦ã³ãã®ä½æã®ä»æ¹ãªã©ã¯ä»ã®è¨äºã«è²ããæ¬è¨äºã§ã¯ã¢ã«ã¦ã³ããæ¢ã«æã£ã¦ãããã¨ãåæã¨ããã
infura.ioã«ãã°ã¤ã³ãã¦ãå³ä¸ã®ãCreate New Projectãããæ°è¦ã®ããã¸ã§ã¯ããä½æããããã®æã«ãPRODUCTã«ãETH2.0ããé¸æããã¨ãBeacon Chain(ETH2.0)ã®æ å ±ã«ã¢ã¯ã»ã¹ã§ããendpointãçºè¡ãããã
Projectãä½æãããããProjectIDãSecret KeyããããEndpointã表示ãããã®ã§ãhttps://ãããå§ã¾ãendpointãã³ãã¼ããã
Beacon Chainã®REST API
Eth1.0ã§ã¯nodeããæ
å ±ãåå¾ããã¨ãã¯JSON-RPCã§ãªã¯ã¨ã¹ãããå¿
è¦ããã£ãããBeacon Chainã§ã¯RESTful APIã§ãªã¯ã¨ã¹ãããã
å©ç¨å¯è½ãªREST APIã¯ä»¥ä¸ã®ãã¼ã¸ã§ç´¹ä»ããã¦ããã
docs.infura.io
ãã詳ãã使ãæ¹ã¯ãinfura.ioãå©ç¨ãã¦ããnode clientã®TEKUã®ãã¼ã¸ãåç
§ããã¨è¯ãã
consensys.github.io
genesisãã¼ã¿ãåå¾
genesisãããã¯ã®æ
å ±ãåå¾ããã«ã¯ã'eth/v1/beacon/genesis'ã«GETãªã¯ã¨ã¹ãããã
以ä¸ã®ããã«jsonå½¢å¼ã§genesisã®æ
å ±ãåå¾ã§ããã
blockã®æ å ±ãåå¾
åæ§ã«ãblockã®æ å ±ãåå¾ãããå ´åã¯ã'/eth/v2/beacon/blocks/:block_id'ã«GETãªã¯ã¨ã¹ãããã:block_idã®é¨åã¯ä»»æã®åå¾ãããblock numuber(=slot number)ãå ¥ããã
3,887,074ã®ãããã¯ãåå¾ããçµæã¯ä»¥ä¸ã®éãã¨ãªãã
ãªããblockã®çæã«å¤±æãããã®ã¯åå¾ã§ããªããä¾ãã°ãä»å話é¡ã«ãªã£ã3,887,075ãããã¯ãåå¾ããã¨ä»¥ä¸ã®çµæã¨ãªãã
explorerã§failedã«ãªã£ãblockã®æ å ±ã表示ãããªãã®ã¯ããã®æçºããã