[{"data":1,"prerenderedAt":397},["ShallowReactive",2],{"navigation_docs":3,"-providers-mempool":120,"-providers-mempool-surround":392},[4,56,116],{"title":5,"path":6,"stem":7,"children":8,"icon":55},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19,23,27,31,35,39,43,47,51],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"CLI","\u002Fguide\u002Fcli","1.guide\u002F02.cli",{"title":16,"path":17,"stem":18},"Provider selection","\u002Fguide\u002Fselection","1.guide\u002F03.selection",{"title":20,"path":21,"stem":22},"Balances","\u002Fguide\u002Fbalances","1.guide\u002F04.balances",{"title":24,"path":25,"stem":26},"Transactions","\u002Fguide\u002Ftransactions","1.guide\u002F05.transactions",{"title":28,"path":29,"stem":30},"Tokens","\u002Fguide\u002Ftokens","1.guide\u002F06.tokens",{"title":32,"path":33,"stem":34},"Contracts","\u002Fguide\u002Fcontracts","1.guide\u002F07.contracts",{"title":36,"path":37,"stem":38},"Gas and blocks","\u002Fguide\u002Fgas-and-blocks","1.guide\u002F08.gas-and-blocks",{"title":40,"path":41,"stem":42},"Errors","\u002Fguide\u002Ferrors","1.guide\u002F09.errors",{"title":44,"path":45,"stem":46},"Agents","\u002Fguide\u002Fagents","1.guide\u002F10.agents",{"title":48,"path":49,"stem":50},"Custom providers","\u002Fguide\u002Fcustom","1.guide\u002F11.custom",{"title":52,"path":53,"stem":54},"Explorer","\u002Fguide\u002Fexplorer","1.guide\u002F12.explorer","i-solar-book-2-linear",{"title":57,"path":58,"stem":59,"children":60,"icon":115},"Providers","\u002Fproviders","2.providers\u002F0.index",[61,63,67,71,75,79,83,87,91,95,99,103,107,111],{"title":62,"path":58,"stem":59},"Overview",{"title":64,"path":65,"stem":66},"Etherscan","\u002Fproviders\u002Fetherscan","2.providers\u002F01.etherscan",{"title":68,"path":69,"stem":70},"Blockscout","\u002Fproviders\u002Fblockscout","2.providers\u002F02.blockscout",{"title":72,"path":73,"stem":74},"Blockchair","\u002Fproviders\u002Fblockchair","2.providers\u002F03.blockchair",{"title":76,"path":77,"stem":78},"Mempool","\u002Fproviders\u002Fmempool","2.providers\u002F04.mempool",{"title":80,"path":81,"stem":82},"Blockstream","\u002Fproviders\u002Fblockstream","2.providers\u002F05.blockstream",{"title":84,"path":85,"stem":86},"Solscan","\u002Fproviders\u002Fsolscan","2.providers\u002F06.solscan",{"title":88,"path":89,"stem":90},"Helius","\u002Fproviders\u002Fhelius","2.providers\u002F07.helius",{"title":92,"path":93,"stem":94},"TONAPI","\u002Fproviders\u002Fton","2.providers\u002F08.ton",{"title":96,"path":97,"stem":98},"TRONSCAN","\u002Fproviders\u002Ftronscan","2.providers\u002F09.tronscan",{"title":100,"path":101,"stem":102},"Aptos Explorer","\u002Fproviders\u002Faptos","2.providers\u002F10.aptos",{"title":104,"path":105,"stem":106},"Blockberry","\u002Fproviders\u002Fblockberry","2.providers\u002F11.blockberry",{"title":108,"path":109,"stem":110},"Koios","\u002Fproviders\u002Fkoios","2.providers\u002F12.koios",{"title":112,"path":113,"stem":114},"Arweave gateway","\u002Fproviders\u002Farweave","2.providers\u002F13.arweave","i-solar-library-linear",{"title":117,"path":118,"stem":119},"Chains","\u002Fchains","3.chains",{"id":121,"title":76,"body":122,"description":385,"extension":386,"links":387,"meta":388,"navigation":187,"path":77,"seo":390,"stem":78,"__hash__":391},"docs\u002F2.providers\u002F04.mempool.md",{"type":123,"value":124,"toc":379},"minimark",[125,129,134,284,288,292,314,318,362,366,375],[126,127],"provider-facts",{"provider":128},"mempool",[130,131,133],"h2",{"id":132},"address-it","Address it",[135,136,141],"pre",{"className":137,"code":138,"language":139,"meta":140,"style":140},"language-ts shiki shiki-themes github-light github-light poimandres","import { Mempool } from \"@agntn\u002Fexplorers\u002Fproviders\u002Fmempool\";\n\nconst mempool = new Mempool();\nconst history = await mempool.getTxHistory(\"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa\", \"bitcoin\");\nhistory[0]?.opReturn; \u002F\u002F [{ hex, text? }] when the transaction carries one\n","ts","",[142,143,144,182,189,212,258],"code",{"__ignoreMap":140},[145,146,149,153,157,161,164,168,172,176,179],"span",{"class":147,"line":148},"line",1,[145,150,152],{"class":151},"sP0CR","import",[145,154,156],{"class":155},"sKlNE"," {",[145,158,160],{"class":159},"snHMy"," Mempool",[145,162,163],{"class":155}," }",[145,165,167],{"class":166},"stCPd"," from",[145,169,171],{"class":170},"scVjq"," \"",[145,173,175],{"class":174},"sQ7BG","@agntn\u002Fexplorers\u002Fproviders\u002Fmempool",[145,177,178],{"class":170},"\"",[145,180,181],{"class":155},";\n",[145,183,185],{"class":147,"line":184},2,[145,186,188],{"emptyLinePlaceholder":187},true,"\n",[145,190,192,196,200,203,206,209],{"class":147,"line":191},3,[145,193,195],{"class":194},"s1TYA","const",[145,197,199],{"class":198},"saoiD"," mempool",[145,201,202],{"class":194}," =",[145,204,205],{"class":151}," new",[145,207,160],{"class":208},"sULi6",[145,210,211],{"class":155},"();\n",[145,213,215,217,220,222,226,229,232,235,238,240,243,245,248,250,253,255],{"class":147,"line":214},4,[145,216,195],{"class":194},[145,218,219],{"class":198}," history",[145,221,202],{"class":194},[145,223,225],{"class":224},"sZW6a"," await",[145,227,199],{"class":228},"spVlQ",[145,230,231],{"class":155},".",[145,233,234],{"class":208},"getTxHistory",[145,236,237],{"class":155},"(",[145,239,178],{"class":170},[145,241,242],{"class":174},"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",[145,244,178],{"class":170},[145,246,247],{"class":155},", ",[145,249,178],{"class":170},[145,251,252],{"class":174},"bitcoin",[145,254,178],{"class":170},[145,256,257],{"class":155},");\n",[145,259,261,264,267,271,274,277,280],{"class":147,"line":260},5,[145,262,263],{"class":228},"history",[145,265,266],{"class":155},"[",[145,268,270],{"class":269},"siHFe","0",[145,272,273],{"class":155},"]?.",[145,275,276],{"class":228},"opReturn",[145,278,279],{"class":155},"; ",[145,281,283],{"class":282},"sjhu3","\u002F\u002F [{ hex, text? }] when the transaction carries one\n",[285,286,287],"p",{},"Default chain Bitcoin. Litecoin goes to litecoinspace.org and Pepecoin to peppool.space, the same Esplora API on three hosts.",[130,289,291],{"id":290},"what-it-reads","What it reads",[285,293,294,297,298,301,302,305,306,309,310,313],{},[142,295,296],{},"\u002Fapi\u002Faddress\u002F:address"," for the balance with funded and spent totals, ",[142,299,300],{},"\u002Fapi\u002Faddress\u002F:address\u002Ftxs"," for history, ",[142,303,304],{},"\u002Fapi\u002Ftx\u002F:hash"," for one transaction, ",[142,307,308],{},"\u002Fapi\u002Fv1\u002Ffees\u002Frecommended"," for fees, and ",[142,311,312],{},"\u002Fapi\u002Fblocks\u002F:height"," for a block, which answers a page of blocks the provider searches for the exact height.",[130,315,317],{"id":316},"gotchas","Gotchas",[319,320,321,329,340,351],"ul",{},[322,323,324,325,328],"li",{},"Gas and blocks work on Bitcoin and Litecoin only. Peppool has no fee endpoint and does not return complete block metadata, so on Pepecoin those two throw ",[142,326,327],{},"UnsupportedOperationError"," even though the provider advertises them elsewhere.",[322,330,331,332,335,336,339],{},"Peppool paginates confirmed history with ",[142,333,334],{},"?after_txid=",", not Esplora's ",[142,337,338],{},"\u002Ftxs\u002Fchain\u002F:txid"," route, and the provider knows which host it is talking to.",[322,341,342,343,346,347,350],{},"OP_RETURN pushes are decoded from every output. ",[142,344,345],{},"hex"," is always there; ",[142,348,349],{},"text"," appears only when the bytes are printable UTF-8, so Runes and Omni carriers never become mojibake.",[322,352,353,354,357,358,361],{},"Fee units are ",[142,355,356],{},"sat\u002FvB"," on Bitcoin and ",[142,359,360],{},"litoshi\u002FvB"," on Litecoin, and the unit is in the answer.",[130,363,365],{"id":364},"where-it-lives","Where it lives",[285,367,368,371,372,231],{},[142,369,370],{},"src\u002Fproviders\u002Fmempool.ts",", with the shared Esplora mapping in ",[142,373,374],{},"src\u002Fcore\u002Fesplora.ts",[376,377,378],"style",{},"html pre.shiki code .sP0CR, html code.shiki .sP0CR{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7}html pre.shiki code .sKlNE, html code.shiki .sKlNE{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#A6ACCD}html pre.shiki code .snHMy, html code.shiki .snHMy{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#ADD7FF}html pre.shiki code .stCPd, html code.shiki .stCPd{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#A6ACCD}html pre.shiki code .scVjq, html code.shiki .scVjq{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#A6ACCD}html pre.shiki code .sQ7BG, html code.shiki .sQ7BG{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#5DE4C7}html pre.shiki code .s1TYA, html code.shiki .s1TYA{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#91B4D5}html pre.shiki code .saoiD, html code.shiki .saoiD{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#E4F0FB}html pre.shiki code .sULi6, html code.shiki .sULi6{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#E4F0FBD0}html pre.shiki code .sZW6a, html code.shiki .sZW6a{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7C0}html pre.shiki code .spVlQ, html code.shiki .spVlQ{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E4F0FB}html pre.shiki code .siHFe, html code.shiki .siHFe{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#5DE4C7}html pre.shiki code .sjhu3, html code.shiki .sjhu3{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":140,"searchDepth":184,"depth":184,"links":380},[381,382,383,384],{"id":132,"depth":184,"text":133},{"id":290,"depth":184,"text":291},{"id":316,"depth":184,"text":317},{"id":364,"depth":184,"text":365},"mempool.space for Bitcoin, litecoinspace.org for Litecoin, peppool.space for Pepecoin. Fee recommendations in sat\u002FvB, OP_RETURN payloads decoded, no key.","md",null,{"icon":389},"i-solar-layers-linear",{"title":76,"description":385},"rIiDxqIByEU6Nrmo870NYVo4bCn7BeHuH_rHsQ5LI-4",[393,395],{"title":72,"path":73,"stem":74,"description":394,"children":-1},"One dashboard API for Bitcoin, Ethereum and eCash. Works without a key, ranks higher with one, and is the only provider that names the block a balance was read at.",{"title":80,"path":81,"stem":82,"description":396,"children":-1},"Bitcoin through Esplora at blockstream.info. An independent second backend for the same chain, so a Mempool outage is not your outage.",1788626961518]