A-Chain
index.getContainerByID
Get container by ID.
Method: POST
https://odyssey.nownodes.io/ext/index/A/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.getContainerByID",
"params": {
"id": "6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
"encoding":"hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "not found",
"data": null
},
"id": 1
}
index.getContainerByIndex
Get container by index. The first container accepted is at index 0, the second is at index 1, etc.
Method: POST
https://odyssey.nownodes.io/ext/index/A/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.getContainerByIndex",
"params": {
"index":0,
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"id": "21uFuUDFvgh6H9qqREQ8oFxt2kW35as9AB7uHw2YbVN6JANvGx",
"bytes": "0x0000000000007977c4d14cfa223f73a9fc64de112a4005cf6fa011f2eaf00a088788aea475630000000067077f51000000000000000000000000000001f90000000000147977c4d14cfa223f73a9fc64de112a4005cf6fa011f2eaf00a088788aea4756300000000000000010000000067077f510000000000000000000000000000000000000000000000000000000000000000000000010000000300000001cbc2297258acc4807dcce81b878a87b226d10c276c0a866c2d2a9cf8ef3ac7ca000000011b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b00000007000000037e11d60000000000000000000000000100000001d7be2ddd6a0def66f19a51eb9751eaa22916ed970000000000000052414c504841207574696c697479206d6574686f64206275696c64496d706f7274547820746f20696d706f72742044494f4e4520746f2074686520412d436861696e2066726f6d2074686520442d436861696e579bbdb071deb52d3aa5cf0b0e47f47b2b7481d229dd5cc908336a07eff0380300000001955c65aa0c7130c6562e3e69acd06cee25d8cc0898f68194bf54055f962ed32a000000001b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b0000000500000004a817c80000000001000000000000000100000009000000010aece41bdc7fb6d92105e704c259eda8147ded33798fa2c23ae635347376b9a64ad580b92d199671441930644dfdc8230dc80f59b9eb8a3d80509787500427670000000000169ea2bd",
"timestamp": "2024-11-21T13:57:36.194367381Z",
"encoding": "hex",
"index": "0"
},
"id": 1
}
index.getContainerRange
Returns the transactions at index [startIndex
], [startIndex+1
], ... , [startIndex+n-1
]
Method: POST
https://odyssey.nownodes.io/ext/index/A/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.getContainerRange",
"params": {
"startIndex":0,
"numToFetch":100,
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"containers": [
{
"id": "21uFuUDFvgh6H9qqREQ8oFxt2kW35as9AB7uHw2YbVN6JANvGx",
"bytes": "0x0000000000007977c4d14cfa223f73a9fc64de112a4005cf6fa011f2eaf00a088788aea475630000000067077f51000000000000000000000000000001f90000000000147977c4d14cfa223f73a9fc64de112a4005cf6fa011f2eaf00a088788aea4756300000000000000010000000067077f510000000000000000000000000000000000000000000000000000000000000000000000010000000300000001cbc2297258acc4807dcce81b878a87b226d10c276c0a866c2d2a9cf8ef3ac7ca000000011b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b00000007000000037e11d60000000000000000000000000100000001d7be2ddd6a0def66f19a51eb9751eaa22916ed970000000000000052414c504841207574696c697479206d6574686f64206275696c64496d706f7274547820746f20696d706f72742044494f4e4520746f2074686520412d436861696e2066726f6d2074686520442d436861696e579bbdb071deb52d3aa5cf0b0e47f47b2b7481d229dd5cc908336a07eff0380300000001955c65aa0c7130c6562e3e69acd06cee25d8cc0898f68194bf54055f962ed32a000000001b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b0000000500000004a817c80000000001000000000000000100000009000000010aece41bdc7fb6d92105e704c259eda8147ded33798fa2c23ae635347376b9a64ad580b92d199671441930644dfdc8230dc80f59b9eb8a3d80509787500427670000000000169ea2bd",
"timestamp": "2024-11-21T13:57:36.194367381Z",
"encoding": "hex",
"index": "0"
},
{
"id": "3LJ2j12vfvqhkZZDwkqhmtL96dvkus8r6ejhhwQdSwBEQAgkx",
"bytes": "0x00000000000085bdec3d33eb0de8da08aff05b8d1bb0019c3c75b2937c333f7bed3fc237248c0000000067077f8c000000000000000000000000000002490000000000144d8f0a355065e0d58275f709545e7c1b7eb8243c3bb333f49e91ebdd65450d3300000000000000020000000067077f8c0000000000000000000000000000000000000000000000000000000000000000000000010000000400000001cbc2297258acc4807dcce81b878a87b226d10c276c0a866c2d2a9cf8ef3ac7ca000000011b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b00000007000000002a25e2a000000000000000000000000100000001d7be2ddd6a0def66f19a51eb9751eaa22916ed9700000001c1b6f274de46c8fc2c56b68596bd390f3a4c386258cd0c0c9e10b53f4ba157d0000000001b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b00000005000000037e11d600000000010000000000000052414c504841207574696c697479206d6574686f64206275696c644578706f7274547820746f206578706f72742044494f4e4520746f2074686520442d436861696e2066726f6d2074686520412d436861696e579bbdb071deb52d3aa5cf0b0e47f47b2b7481d229dd5cc908336a07eff03803000000011b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b000000070000000229e6016000000000000000000000000100000001d7be2ddd6a0def66f19a51eb9751eaa22916ed97000000010000000900000001012dcdaf6c48508b165b19abdbab28d4c1139cbdb8b9cd5b080117eed2a6ef6201a53f42ff09857fec9eb8302f2e5e972945eb6f036b7cecaf62e9bb37aca96e0000000000109fb72e",
"timestamp": "2024-11-21T13:57:36.194806675Z",
"encoding": "hex",
"index": "1"
}
]
},
"id": 1
}
index.getIndex
Get a container's index.
Method: POST
https://odyssey.nownodes.io/ext/index/A/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.getIndex",
"params": {
"id":"6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "not found",
"data": null
},
"id": 1
}
index.getLastAccepted
Get the most recently accepted container.
Method: POST
https://odyssey.nownodes.io/ext/index/A/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.getLastAccepted",
"params": {
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"id": "3LJ2j12vfvqhkZZDwkqhmtL96dvkus8r6ejhhwQdSwBEQAgkx",
"bytes": "0x00000000000085bdec3d33eb0de8da08aff05b8d1bb0019c3c75b2937c333f7bed3fc237248c0000000067077f8c000000000000000000000000000002490000000000144d8f0a355065e0d58275f709545e7c1b7eb8243c3bb333f49e91ebdd65450d3300000000000000020000000067077f8c0000000000000000000000000000000000000000000000000000000000000000000000010000000400000001cbc2297258acc4807dcce81b878a87b226d10c276c0a866c2d2a9cf8ef3ac7ca000000011b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b00000007000000002a25e2a000000000000000000000000100000001d7be2ddd6a0def66f19a51eb9751eaa22916ed9700000001c1b6f274de46c8fc2c56b68596bd390f3a4c386258cd0c0c9e10b53f4ba157d0000000001b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b00000005000000037e11d600000000010000000000000052414c504841207574696c697479206d6574686f64206275696c644578706f7274547820746f206578706f72742044494f4e4520746f2074686520442d436861696e2066726f6d2074686520412d436861696e579bbdb071deb52d3aa5cf0b0e47f47b2b7481d229dd5cc908336a07eff03803000000011b8d466639551620fe2d129737f46e1dab7a60a7d39ea2b76fcb04b98c78355b000000070000000229e6016000000000000000000000000100000001d7be2ddd6a0def66f19a51eb9751eaa22916ed97000000010000000900000001012dcdaf6c48508b165b19abdbab28d4c1139cbdb8b9cd5b080117eed2a6ef6201a53f42ff09857fec9eb8302f2e5e972945eb6f036b7cecaf62e9bb37aca96e0000000000109fb72e",
"timestamp": "2024-11-21T13:57:36.194806675Z",
"encoding": "hex",
"index": "1"
},
"id": 1
}
index.isAccepted
Returns true if the container is in this index.
Method: POST
https://odyssey.nownodes.io/ext/index/A/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.isAccepted",
"params": {
"id":"6fXf5hncR8LXvwtM8iezFQBpK5cubV6y1dWgpJCcNyzGB1EzY",
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"isAccepted": false
},
"id": 1
}
Last updated