Difference between revisions of "5052"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
                                             connecting to an eth1 node on localhost:8545
 
                                             connecting to an eth1 node on localhost:8545
  
 
+
API https://lighthouse-book.sigmaprime.io/api-bn.html
 
* http://localhost:5052/eth/v1/beacon/headers/head
 
* http://localhost:5052/eth/v1/beacon/headers/head
 
* http://localhost:5052/eth/v1/beacon/states/head/validators/1
 
* http://localhost:5052/eth/v1/beacon/states/head/validators/1
Line 39: Line 39:
 
</pre>
 
</pre>
  
 +
 +
* [[lighthouse bn --checkpoint-sync-url]] "http://remote-bn:5052"
  
 
== Related ==
 
== Related ==
Line 46: Line 48:
 
* {{lighthouse}}
 
* {{lighthouse}}
 
* {{eth2 ports}}
 
* {{eth2 ports}}
 +
* [[Beacon Chain]]
  
 
[[Category:Lighthouse]]
 
[[Category:Lighthouse]]

Latest revision as of 15:46, 12 July 2023

CORS

lighthouse bn --http --http-allow-origin "*"


      --staking                            Standard option for a staking beacon node. Equivalent to `lighthouse bn
                                            --http --eth1 `. This will enable the http server on localhost:5052 and try
                                            connecting to an eth1 node on localhost:8545

API https://lighthouse-book.sigmaprime.io/api-bn.html


curl -X GET "http://localhost:5052/eth/v1/beacon/headers/head" -H  "accept: application/json" | jq
{
  "execution_optimistic": false,
  "finalized": false,
  "data": {
    "root": "0x9059bbed6b8891e0ba2f656dbff93fc40f8c7b2b7af8fea9df83cfce5ee5e3d8",
    "canonical": true,
    "header": {
      "message": {
        "slot": "6271829",
        "proposer_index": "114398",
        "parent_root": "0x1d2b4fa8247f754a7a86d36e1d0283a5e425491c431533716764880a7611d225",
        "state_root": "0x2b48adea290712f56b517658dde2da5d36ee01c41aebe7af62b7873b366de245",
        "body_root": "0x6fa74c995ce6f397fa293666cde054d6a9741f7ec280c640bee51220b4641e2d"
      },
      "signature": "0x8258e64fea426033676a0045c50543978bf173114ba94822b12188e23cbc8d8e89e0b5c628a881bf3075d325bc11341105a4e3f9332ac031d89a93b422525b79e99325928a5262f17dfa6cc3ddf84ca2466fcad86a3c168af0d045f79ef52036"
    }
  }
}


Related[edit]

See also[edit]

Advertising: