P-Chain
index.getContainerByID
Get container by ID.
Method: POST
https://avax.nownodes.io/ext/index/P/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://avax.nownodes.io/ext/index/P/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": "eRM7GDVKGwTEZpdduu87Agb43uvTww8HafeCTPMJ4vhmGKvrg",
"bytes": "0x000000000000dc5ab164fd12b91e04866be0d15bb4d065a618b41eb15c35f2d32e8c86dd652200000000657e64af0000000000a0f8a1000000000000006200000000001d00000000657e64af000000007653b3fb0c8ed9d6f06546c87e083ac315be12174ce39c5004dfd5388ac9ea680000000000a0f8b3000000147260405b48e6b74e72bf4edc61203c8b5dbe273238af87d75a4a7c132b4fbe0b0000000000000000a2f2e7ac",
"timestamp": "2023-12-29T14:25:55.559860715Z",
"encoding": "hex",
"index": "0"
},
"id": 1
}
index.getContainerRange
Returns the transactions at index [startIndex
], [startIndex+1
], ... , [startIndex+n-1
]
Method: POST
https://avax.nownodes.io/ext/index/P/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": "eRM7GDVKGwTEZpdduu87Agb43uvTww8HafeCTPMJ4vhmGKvrg",
"bytes": "0x000000000000dc5ab164fd12b91e04866be0d15bb4d065a618b41eb15c35f2d32e8c86dd652200000000657e64af0000000000a0f8a1000000000000006200000000001d00000000657e64af000000007653b3fb0c8ed9d6f06546c87e083ac315be12174ce39c5004dfd5388ac9ea680000000000a0f8b3000000147260405b48e6b74e72bf4edc61203c8b5dbe273238af87d75a4a7c132b4fbe0b0000000000000000a2f2e7ac",
"timestamp": "2023-12-29T14:25:55.559860715Z",
"encoding": "hex",
"index": "0"
},
{
"id": "2sprrfNUGR67ofBkjX4AC2SPSLvT64NPtrA31rmP7aKxLFJN6x",
"bytes": "0x00000000000154f756b1c0b757a0adba8f9ebb0dcfbbacc7c715d37b003305543567bcd63dcd0000003600000000001f00000000657e64aff5e77d50f8885d9732e9fe1e03b829f6ffba188b029bb1b8bcdcc25b3a809ce70000000000a0f8b4593999c8",
"timestamp": "2023-12-29T14:25:55.560592987Z",
"encoding": "hex",
"index": "1"
},
{
"id": "2MWXUfLHXPdTCe84ix5AmvCVnu3GDMaMgBwPFYLqVQ4eTf9dGE",
"bytes": "0x000000000000f719d15c4a8ecd0b64e4f089e4e586800fdb6f15009c3d4a7d93d6f9593999c800000000657e64b30000000000a0f8a4000004a13082049d30820285a003020102020100300d06092a864886f70d01010b050030003020170d3939313233313030303030305a180f32313232303931393032333832325a300030820222300d06092a864886f70d01010105000382020f003082020a0282020100b2f629282a67630098dc47811ea622c1dc117173038a826423282a03ec3552c292b5dec36b871eb671bb60f77255a9ab8066049f052df00a2557764d4e9e82b017d7ec68ec5fee67cc82b1b6fc41b905a693d2196aa2a4288622d5677eccd6c02c4b8943aca7cdb58162841030768b89e9fa6b00ae564bcdb6778f60b00e1bd248491818f293ed9965c867fc77eef20141e9dec37d312fdf32d034b551ab579bf005d349c3f37e28f859ed8f9ab66d9923f47dd87e7b0e6e9cbd87a9187458aaba92b194b1d7917088a7101c708f19bcc54e4bbb8f4afd469a0dc8409531f02d5cddb74fa4ff960f0fb97befa650fc2b056ade1fcb0e3f72bc788dfa2f08f7a67f7cfaa2cac19a5e36b1080079fba519256eb4cd2c44f25aefc69cca2ec980ac88dcb236aa29f735b83c087a5ab56dae7e1dda8c3a0ffb522623397691035a6d5ec1f95459ae2e72087d2d5250fe462c3e1ab791c0d8821a47b06982cccc8bbba2047202a4b99155d6753e95d8da12c708f35db80a3826776743d968b6417c942dc53a8039ed50d1b7901e62eab992f8b9fde93b73f530f4797e735d40b54a34e46a58514b0b219e667c133235091a505e8aabcd89dfed4f75d31d003a29bfaabed5ea94c87c4e1539bae8eac5a53bad009944c992e9d12fb9a8bd6e0d3150dac90aee663939a71c1a468c8604be93d0165ac9b1f3737ea91878045fc44f8b470203010001a320301e300e0603551d0f0101ff0404030204b0300c0603551d130101ff04023000300d06092a864886f70d01010b05000382020100082c0e449a3b4fdb9fc781852b597ad04dc56090f25c2d88e819a40c730decb356cf4b0f70ffe6d66e08c4a9328991581472ce44df2ab8f6a363892d77d3645bb7d75608a7fc7870f5e03e9994e7f9a0d49515d3c4663b581f20917a1d57db25c2ece20dfa430579194150a4978a81c23b87ec3f7ddddcc6495dc418f6f2a0516ffc2e8ad61d32500c1fa8eafdafa297e91b5d765c30243be4c86701a476c5c902c67dfe5cb9e4fe7e7df9dd49e72c4bd73efd4f5213f37831389a3d80f2471b9ed39fea8a5d6e5966342c7f86325a1fdbea750f1b50bdf1cb91efe5f4119d68b5c9d89acd21ba02834e2d9fecfd5d632882cd422b3a6661310f5115c90997378b3d89ea21c334e0781a46568f1e435e6cdb0915e2e8730de569323ae64b5c050127cf5f05d98b71755151be6b309ea88fba97d12b0b545e1861f104a8e2005706c5f877d628acbf5a0689e7cf1015509d2ace48565e8c385246dee085e58c89226c3dff82e631a8dfa1c4d3fdc5517cffb0d0364a3bb7a8d39c6ac3d50b73a170215abffc465350d22b76c8d509e5c25efdec29807772c951d90c8c6f99abf5c0f93d3907b98f029c929cec09801931c21a59edf2b541bc6ec9f03692aa1a819b829e7e5a75f288f3dfa8e4b954c60b172daf82a81a9f14d8c2145c034522d882d6527c785abd5687c00300626946b62d58a989e3840b3362946e5b259718040000006200000000001d00000000657e64b300000000c4be257a4213004d4475a30072792c1be8aca42c4367379582f7c8c63e1e3b280000000000a0f8b50000001417ac36df6fd1d8881d3af8e01a0d0fdef7b59d3769a0e0dd5ccce79b20b309fc0000000000000200325641cd06fe98ea2a69267883bc993046eaba639b118158c9c88bb61dd1b2bad8ef130b4dd1805b12e7a53dbdd047e769cc2a18967eb7df2c2a4464622c2b770ccf603b107aeb35cd26b3ca3b7b37916ae7846b7a8517cf9865a08331769b3967c1f3dc23cc4f625876f83f8240b4c866487a9ee27f416dccbaf476c33644ca984eca10fc808a5118873fca71977e47b5c2b9612d5b7824fabbd95e1f7ede1a56ef6cf18f6343799790db94e35e5b73aa665433e73e89c9cd9fea5ade02f87b007f8a7cadbb34e6e9c98bf8df6f8b22bddec0082574660317691e88ab53b652ad070e1f00cf9a956406f9cf030ffdc1bfa180d926fe04ecbd00a64681231922db49a5cecafedd6b416ea5ed3fd4d9ca88a66334cbb0d1d5b6630506a7e83e66700697b221fa75d1dd0d60a9295d338e8170a665f41ca7146e0860a1cefd337b4eb5e9c704c9579920f1ca87563bb7dd4d25ed351f3bd3c599a035b99a437077cfdf4a77a50a085a53bc4834d2bcaa7c71d1518f439ec692775d6e23d15c85f0ee1b412b91f72a82e1188acd7741e339f1f5175bbcb310266c691e37879a9c7c1bb0913dc55b2159050d50a5537461044fef33629a051d4fdd5356c9d8ecb8e85d3e2876b860e522f5491c0cf4939e6bcb74bb6aaa5779564397572b48c8ff6ab75a32df50ef650febcf0370ff609206c6d596fe018ae9bd6348f240b56f3111019925be",
"timestamp": "2023-12-29T14:25:55.56784971Z",
"encoding": "hex",
"index": "2"
},
{
"id": "9iKa335xib87U1FvHTqKsryBGjpBYorMrAMxsRBhcAaSJ1dQe",
"bytes": "0x000000000001b243b15087c248a6f41cfac662379e2caee833e64f1b0d8244e3d2d652e9c87e0000003600000000001f00000000657e64b32b5a1dcd978e9fbf2e9e2b52479c46c1232d34bde5dbfcb73d7fe389d4b716560000000000a0f8b6c69ede78",
"timestamp": "2023-12-29T14:25:55.568253677Z",
"encoding": "hex",
"index": "3"
},
{
"id": "YSUvVUzQPqRocw72tVcG4YL6ngwNes6TyG7qwHWrXug7YwZcK",
"bytes": "0x00000000000013c858fbfdeddca04d55aa2c5344d4db178e9dfba1d2a13754011fefc69ede7800000000657e64b60000000000a0f8a6000004a13082049d30820285a003020102020100300d06092a864886f70d01010b050030003020170d3939313233313030303030305a180f32313233303432373135313231315a300030820222300d06092a864886f70d01010105000382020f003082020a0282020100e8fa29f68758ad091a84537c27292dd122c776d6128a9bf259f1b80b43c87c72fe4af052fd6af0136d26e2a0cf9f846d78f6affa64ce1e971ff6229b85153b06d1c6357182403f2f67b0a369041e0da82335848aefb987b5270ef12a4af0a3bd935bc04213131c60b4c3ccabe7ec65f827544fdd0d4fd7705218e277fafceb8d13c1681d3f2d4617344b32091d7c274a3180b52c28402f969ca08336fe0f90dba2f9dec2fcb5a1f119661b5678ef0c98ab00dddc3a4294b5688902ab5dee75636479fb3af40953712d6a6ec9b9f91f43bf3ef5d536be268d691c10beda8e85a794dbf8cab105be4289e3d412ab05a7a85ef8259ccb88f082f7b31d821cd692f3ba6243a94dd1134ab02ce223ea3e85ca1d7cfba521f7c8a08c27b5277e7e75f1289609aefbd562a9d802a1ae9a996aeae737a26b426f0e0a8af4cc927b8d86e44549f5f2f647ff79d568b7467e739383cb719e174a68565db4706a6c98415dc081bb5c7f170bacf94f299aa84221887904f72195535eb4c54497c950c3e382a74ad007ea377983525cf33068f3a658f4d535b4fa0ef1bda0ad7204f7df865cff24be5f49653798096d488751405e0d58f113d8505f8c70ec850eb6d879516ed956d0e79e8ba6247e6f349c0ff067188655de5a2c2cfe8862d1e826a55589715c2dc1eb26063a3c89f5867bddf7e0556f6c065a27387fdc043e35c22079ee93910203010001a320301e300e0603551d0f0101ff0404030204b0300c0603551d130101ff04023000300d06092a864886f70d01010b0500038202010001c3398543c20a313662d0c94c593a578aa54b0abee406a2b68e0e388dbf5325e9badc3ee21ba41e44916f636624fec41085fb5fd7b7d9a1f3de044b131aea5380d01b1e9fe0fc866bcfbf614dc0ae4494bab9a483558efb3c2f32c5575038560d6e921f62e6f1b258f1380cc991fc44bfdbf43cb6b2f1d81ce563498b0698597b9867dece1c1c0d5188177c997f0d218bfe90d32a075d9b67c581354a6e30759636bdd0118275d319204625c47db853999b6205fd7bfde68c7169ed938602016948fe9b824ffcd5af203f007369cecf13f3b105b83b7c2342bfaf307929b69e01fdf950f0d85ca2b600b923a8233cd27e8047bed343fbae8049e617275369fb706e6ea2d85d671f87281b92e2bbc0657fd0b0e2482734d5e7871228d5dcb6a09541bf6fb8442c37d0e7165848cfc862d17f4fde9819db392754faa8d1af5d0ee76572ee1cb29a94db1b53dbb562b0648281998fbaaae18a84fb3193e71cc9d0e1c5bcd2d38d7de6e0b1ce7b0e07e7cc25d39a23ad2b755e40f62af3549a7df98d3ad963baf793fcaee355adfba799dd559f776a2e2915972ffa930cd470e32f84714375ddede8963c95bfb9891ed90045a75d45fba21cee18c973f6991ef08999f4dc52e608f654aed9dd996c52fdb8d0bad607f63a23f3edfa0dbd30929e97319c8b75bc00030bfa8e41960b8b64764424a35bcb7547a4ff7e73e0fd6d7dc00000006200000000001d00000000657e64b6000000003956ccc28ef483fcd981a4fe7540c05bf7d7c4ca67b92208dd9f50c72251879a0000000000a0f8b700000014120972a4e34d988addd71e9bd886819a675d084d16cf1cabcd7c76d89cb73e1b000000000000020023989330ca2c129397e6045f9e0fa7d6cb39adcf0eecbf5e43f5ae5b70f76842c493ef9c6989f02ecb100567cdc379801e73ae2cb0b0c684397162b8dd6c61f9da7deb92637aa596eb47f8e7d8f0dbb264011951c18b5bfb7512d24a311839e89a00a79f13ee318bc2d34f5b5611af36af3bd929a7ef4eeb7238fa98db5bd802bd8a073b334f511969103ff8899e878a8f6aded41280400f684d3232eb5e25db75016468a6128f3a098a5039d57bf934ade3ac39d564b840b53f28a133fab4a646247bf372bb78a664bf03d01181b2395c097596d22e21a18ec47ad48235de188a019f51a97788466557162ee1a910f8ced256d0bca70a983cca786493aaab38bc1011626d991c52ab6dfce6a2e219bc6dd481d036835092bead5e3f5edb8eae77508b113e3288d55ea098c75a39063dc042d8c477ac29293970ed725aa6955c800ed926ed4dc3379d72ccfccfbc9c503052f8e154e9d07c25b84c5b15a3375ee57b08c96378f7ecb0c3b61e9e0583d715f839528ab429fe17c0640d3d3adf5102226979c605d6f9f3b6cd63193f4d006ebbf5ef1b7d47c842bffb7b73bafbe9b76c39cde54e052239acb9d197c12d447c6cd10692a0e0000559f22ba3accee5ce1c3c212d666789c1469819fcd3f00e54531e5a8de42fd73ab94343cc2f0138a80b12c56341723b5a8e77f24789517adc5e320c41bce844c6ae27699d15c45a7ad5f35a",
"timestamp": "2023-12-29T14:25:55.575011336Z",
"encoding": "hex",
"index": "4"
},
{
"id": "dBsTya4GSGzTSoKaCg7wqdrXWBUG4gRDCFLj8PHRisgwh7Mfe",
"bytes": "0x000000000001476308fa1ba01d71fd2cd3ec94e1b8b6dc4ebc6ea0f09918a6b99dd2ea5700290000003600000000001f00000000657e64b632cfb7fe81a8905b6f0103b5cf151598dbe18e66769ff69ebf20c41e2c86bd190000000000a0f8b813f77adc",
"timestamp": "2023-12-29T14:25:55.575404763Z",
"encoding": "hex",
"index": "5"
},
{
"id": "sdJJASQMMoVRyGky55Tpza88F3FMB1EwsZvRqhk4KgDGB7TMb",
"bytes": "0x000000000000522afefdfa1638eaea5201a8377e9f5ce3943961d766a8d46755c43313f77adc00000000657e64b90000000000a0f8a8000004a13082049d30820285a003020102020100300d06092a864886f70d01010b050030003020170d3939313233313030303030305a180f32313231303832343231313530355a300030820222300d06092a864886f70d01010105000382020f003082020a0282020100d3170878f39773582dc871ba3ecfde4da4f78c80fd2fdf1f14e2c1005d771549e367d1e2054b8b54ef92b37db94af889f8690a466a83499ab51c235f6e982c7fc3ea65252c4899123b60f73b26631161d65729ad66ffe76242edf5f90ed9a7b46abad83dcfbaf2dd4f8947eed3ac785ce63f614d57b267af3aec4e5ab66ec561bf0c9471322fe46b91cfda9ccd0d3c9ea0589e6d6034e997bc0876431b19fe700e10fa0ddda9212ad1235cf721bbd14c7f64da7a313f8497daddc3a9b279974c9a081f99bf16e6fc62f0f614f0dabbb386bd4ad10d39a5ac27567d08545b046dea696ba8b9d045493cc122be62a81bbf1a103b12eb5438519733702e4c1773377a79f5932fa5c66b1aea6c6ededdc689fa11c7a71a7bb8dad54bc4ebd9968568879c0b7803fcdd811731e98482afb029c6252cf2ebe6d229727100a6dc2d3f857a31acc53280000527d749f974835cb7c04fc2a481d22d55307a68acdeafe390237c6ce40cf4998869c19c5a331fdc612f9f321136871f4151d51005b7a2668108eeb5301f14a636491fa5eaedbc7eccdef5b8a542f9725df3fde311d00b0a3fc0cc638f42912da7f281ab277347902bb4d9eb78984bd5c0d35505a360688e9bdd1a9dd4bb34b9e36f5f066f6d07cbc904012ba99011f4230395989d3ffe30aab31ead87ef3c4c6edd62b79c353606a23fccaf7aec1c39aecf6cc3d359aa28390203010001a320301e300e0603551d0f0101ff0404030204b0300c0603551d130101ff04023000300d06092a864886f70d01010b050003820201004cf2c0a16933c33927cde225b8bc1413e6d91a4e76c66a7e3b955f3a96cd9e44814685574e7465ae1180daaa62dc739b6d6e7a1480d447f6e14570d660defe5e174468067aa5db8af6030d27e9981d2f0c7c3d6ac7c10f99659c88091a1b108f14c705f2162bdb15515eb77dc37f41e361f19309cf1f2af82aa08e4ce2c87139a911c6cc1aab1311f3a519d7c493646c042acb71d5fc234bf403e691bc5ece3180c111a52d9c6a071a55939a5a2a972595fe14e65d2177e76cfba1f520b2fce0bf9ee567a963ccec6bffdc2233e6f2d916feb5b46d4aaaaf52d73536d65057d1e5618194c5d1fdcaa248e00217ef8621f4a29b2b1ac37d0b475bd19d3470a0650f65c8c7ef17a6b3ce5d5402c8e5d80b34c3171f4e0fa2bd3864dbc1161b2da36f2096664e1610390a581ce8f2c37e830e0606ebe56183f5735b9f566974fb9e5fb3a6a2f5c4178a7ec16c3532689057ea87d45ad5c686d564935c03a496cf9c83ab65fe3c613feba5be39aea503b49ca76ace99e31c98fc711b031bbe2416f94f40549349d648335ac330724d20bea0ab6d32bc5f01d2abcf8b486c45243ac2a59c50e5033b318674a2c4b9d01486dcffaeb5726d87ae42365d5723aa0765065833128fc6b3ed08b8f0e6fda458c6faa8c7a3808eba9b10403a073ec2219cc63ad9272bcc4d221d8e02fe469020b1cc8d92901c8084b2b42c58506574e768f30000006200000000001d00000000657e64b90000000093e2f2248261d6beb0b16196e053062b8f47805e909ddd1e25e1fd98b377bfa70000000000a0f8b90000001441cb1cadaae4f394b6f3392241b254a2965cdeb845d2fc669e9d0e64e5d1b730000000000000020021bfa78688c43f25857ae0e694b43e68f2e8102506c534125c9350cd7bb26fbd45b33e7d48e666a278ac89d4358e977ce2e9c62c3b60d5de9359e3f614465c406b7422aa3ca93f400a32d10fbf06ea0908a4b2a33e75064a1c93c2a55f78181322474fe00877f87c778d3e2b122dfefc8fb43f24da77a9ca0dab23eb83a90e53995f2e56354a717379a73560a5727b9676127c98a880aa59809735c71174cfc84b22fb2ee15343be54f9fabab3a5de8572c285402d1407ce730ea5db5587e41c911ad100d2b29c5cbab5eb0df69c697b0501df7f716405086406b5d34e6edae23e81312c7c635bdcd8cc0bb1c159841705de2f41c2155f337e32e0f869f8b1642d4f471fd5a5d39435ebb270ba44394c311bd543446c3024623e88112383cd2e72c3052b5f245d0770f3b83b3a741a7ea7587b04e7d4f4beb38951a2ab7a0964810997acaa2869f260fdceb1cfb63067f6a9445552d9411a43fcdd21e7bd5242220dc1490d990753e0050fe27b2a250d6442a3b9c29236fb75ed1bfe26dec36fb348a4cdaddb108f3aa58d24e7c550191befe5d02a5b265851d8b260806842bf0ce5209cb8e7abd2c7c98719952012273c6ec0e6d275012594076527641b4cd92e59c45345e4ced5d2da34e5255bea68ac03cfbb7315f827ce7796f60b6fe5dc25efc05136b05713ae03198bcf70f7262624f9a02bec154bdaabb1204769a9589929ed61",
"timestamp": "2023-12-29T14:25:55.580893044Z",
"encoding": "hex",
"index": "6"
},
...
index.getIndex
Get a container's index.
Method: POST
https://avax.nownodes.io/ext/index/P/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://avax.nownodes.io/ext/index/P/block
Example body (raw)
{
"jsonrpc": "2.0",
"method": "index.getLastAccepted",
"params": {
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"id": "AYhCFWDfG32ADuv6SWAiX6pTegUw9ieoUP1i7awSAHPoRcJjK",
"bytes": "0x0000000000017c52d55cf49b71dc6722ca0595aff7a5252400981049247290cae9f9cbd0f4e30000003600000000001f0000000066127650ba9eeb628652441ae9305488f8f976e9aba287052598c9265353b8e8315848f30000000000bec75ec024c4f4",
"timestamp": "2024-04-07T10:32:49.669030784Z",
"encoding": "hex",
"index": "4910245"
},
"id": 1
}
index.isAccepted
Returns true if the container is in this index.
Method: POST
https://avax.nownodes.io/ext/index/P/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