-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
synchronize peer and channel data in fiber network #787
Comments
Need support from the Fiber Network team to add RPCs for retrieving peer list and channel-open/close transaction list. RPCs are expected to be added in 2 weeks. |
Frontend PR: Magickbase/ckb-explorer-frontend#426 |
Graph Nodes
{
"data": {
"fiber_graph_nodes": [
{
"alias": "",
"node_id": "024714ca19abea4ddc0f3863ffdfb2e2cee76af87c477de4bc67c74a83f8140042",
"addresses": [
"/ip4/0.0.0.0/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy",
"/ip4/54.179.226.154/tcp/8228/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy/p2p/Qmes1EBD4yNo9Ywkfe6eRw9tG1nVNGLDmMud1xJMsoYFKy"
],
"timestamp": "1728541089425",
"chain_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"auto_accept_min_ckb_funding_amount": ""
},
...
]
},
"meta": {
"total": 4,
"page_size": 10
}
} Graph Node Detail
{
"data": {
"alias": "",
"node_id": "026ff293a8e0990dc73108e77a7cc09c5f7069b743a11d49b6a7885e03657912a7",
"addresses": [
"/ip4/127.0.0.1/tcp/8228/p2p/QmRX6L8LiHSGLyqu6zArXx3FLTtL8KuEdqyB1e1KeqMrrd"
],
"timestamp": "1727683693959",
"chain_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"auto_accept_min_ckb_funding_amount": "",
"fiber_graph_channels": [
{
"channel_outpoint": "0xe29000aff6950883beca7e6c8329dc99afd5044c25547f11959e70f50ca0a06800000000",
"node1": "026ff293a8e0990dc73108e77a7cc09c5f7069b743a11d49b6a7885e03657912a7",
"node2": "02849f365a83aea567de017075402d78fadbce6af6828fbaf6b0a9be1cbc76e460",
"chain_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"funding_tx_block_number": "14746323",
"funding_tx_index": "0",
"last_updated_timestamp": "1727683757684",
"created_timestamp": "1727683757683",
"node1_to_node2_fee_rate": "1000",
"node2_to_node1_fee_rate": "1000",
"capacity": "206200000000.0"
}
]
}
} Graph Channels
{
"data": {
"fiber_graph_channels": [
{
"channel_outpoint": "0xe29000aff6950883beca7e6c8329dc99afd5044c25547f11959e70f50ca0a06800000000",
"node1": "026ff293a8e0990dc73108e77a7cc09c5f7069b743a11d49b6a7885e03657912a7",
"node2": "02849f365a83aea567de017075402d78fadbce6af6828fbaf6b0a9be1cbc76e460",
"chain_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"funding_tx_block_number": "14746323",
"funding_tx_index": "0",
"last_updated_timestamp": "1727683757684",
"created_timestamp": "1727683757683",
"node1_to_node2_fee_rate": "1000",
"node2_to_node1_fee_rate": "1000",
"capacity": "206200000000.0"
}
]
},
"meta": {
"total": 1,
"page_size": 10
}
} |
Now we have basic data from
cc @rabbitz |
|
|
Feature request from Cell Studio
cc @rabbitz |
Issues:
|
Searching with await fetch('https://ckb-explorer-api-staging.magickbase.com/api/v1/suggest_queries?q=02095434545011ead9bf736205cd7d08e9bea87b948a4792d10e127360bb761270',
{
headers: {
"Content-Type": "application/vnd.api+json",
"accept": "application/vnd.api+json"
}
}).then(res => res.json()) returns |
Create or Update Fiber Peer
/api/v2/fiber/peers
Peers list
/api/v2/fiber/peers
Peer detail
/api/v2/fiber/peers/{peer_id}
Channel detail
/api/v2/fiber/channels/{channel_id}
The text was updated successfully, but these errors were encountered: