[{"data":1,"prerenderedAt":366},["ShallowReactive",2],{"navigation_docs":3,"-providers-blockscout":120,"-providers-blockscout-surround":361},[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":68,"body":122,"description":353,"extension":354,"links":355,"meta":356,"navigation":358,"path":69,"seo":359,"stem":70,"__hash__":360},"docs\u002F2.providers\u002F02.blockscout.md",{"type":123,"value":124,"toc":347},"minimark",[125,129,134,244,255,259,298,302,334,338,343],[126,127],"provider-facts",{"provider":128},"blockscout",[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","const blockscout = await create(\"blockscout\");\nawait blockscout.getTokenBalances(\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\", \"ethereum\", {\n  nonZeroOnly: true,\n});\n","ts","",[142,143,144,184,221,238],"code",{"__ignoreMap":140},[145,146,149,153,157,160,164,168,172,176,179,181],"span",{"class":147,"line":148},"line",1,[145,150,152],{"class":151},"s1TYA","const",[145,154,156],{"class":155},"saoiD"," blockscout",[145,158,159],{"class":151}," =",[145,161,163],{"class":162},"sZW6a"," await",[145,165,167],{"class":166},"sULi6"," create",[145,169,171],{"class":170},"sKlNE","(",[145,173,175],{"class":174},"scVjq","\"",[145,177,128],{"class":178},"sQ7BG",[145,180,175],{"class":174},[145,182,183],{"class":170},");\n",[145,185,187,190,193,196,199,201,203,206,208,211,213,216,218],{"class":147,"line":186},2,[145,188,189],{"class":162},"await",[145,191,156],{"class":192},"spVlQ",[145,194,195],{"class":170},".",[145,197,198],{"class":166},"getTokenBalances",[145,200,171],{"class":170},[145,202,175],{"class":174},[145,204,205],{"class":178},"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",[145,207,175],{"class":174},[145,209,210],{"class":170},", ",[145,212,175],{"class":174},[145,214,215],{"class":178},"ethereum",[145,217,175],{"class":174},[145,219,220],{"class":170},", {\n",[145,222,224,228,231,235],{"class":147,"line":223},3,[145,225,227],{"class":226},"snHMy","  nonZeroOnly",[145,229,230],{"class":170},":",[145,232,234],{"class":233},"siHFe"," true",[145,236,237],{"class":170},",\n",[145,239,241],{"class":147,"line":240},4,[145,242,243],{"class":170},"});\n",[245,246,247,248,210,251,254],"p",{},"No key, no configuration. Each chain has its own Blockscout host, ",[142,249,250],{},"eth.blockscout.com",[142,252,253],{},"base.blockscout.com"," and so on, and the provider picks the host from the chain.",[130,256,258],{"id":257},"what-it-reads","What it reads",[245,260,261,262,265,266,269,270,273,274,277,278,281,282,285,286,289,290,293,294,297],{},"The REST v2 API under ",[142,263,264],{},"\u002Fapi\u002Fv2",": ",[142,267,268],{},"\u002Faddresses\u002F:address"," for the balance, ",[142,271,272],{},"\u002Faddresses\u002F:address\u002Ftransactions"," for history, ",[142,275,276],{},"\u002Ftransactions\u002F:hash"," for one, ",[142,279,280],{},"\u002Fsmart-contracts\u002F:address"," for contract metadata, ",[142,283,284],{},"\u002Faddresses\u002F:address\u002Ftoken-balances"," for holdings, ",[142,287,288],{},"\u002Faddresses\u002F:address\u002Ftoken-transfers"," for transfers, ",[142,291,292],{},"\u002Fstats"," for gas and ",[142,295,296],{},"\u002Fblocks\u002F:number"," for a block.",[130,299,301],{"id":300},"gotchas","Gotchas",[303,304,305,316,327],"ul",{},[306,307,308,311,312,315],"li",{},[142,309,310],{},"\u002Fapi\u002Fv2\u002Faddresses\u002F:address\u002Ftoken-balances"," returns the complete holding array. A busy wallet makes that an answer of several megabytes, so this one read allows sixty seconds unless ",[142,313,314],{},"ProviderConfig.timeout"," overrides it.",[306,317,318,319,322,323,326],{},"It is the final fallback. ",[142,320,321],{},"resolveProvider()"," returns Blockscout for a chain nobody serves, and the answer is then an ",[142,324,325],{},"UnsupportedChainError"," naming the chain, which is more useful than an unrelated provider's complaint.",[306,328,329,330,333],{},"Public instances rate limit generously but not infinitely. A 429 is a ",[142,331,332],{},"RateLimitError","; with an automatic selection the read moves on once.",[130,335,337],{"id":336},"where-it-lives","Where it lives",[245,339,340,195],{},[142,341,342],{},"src\u002Fproviders\u002Fblockscout.ts",[344,345,346],"style",{},"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 .sZW6a, html code.shiki .sZW6a{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7C0}html pre.shiki code .sULi6, html code.shiki .sULi6{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#E4F0FBD0}html pre.shiki code .sKlNE, html code.shiki .sKlNE{--shiki-light:#24292E;--shiki-default:#24292E;--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 .spVlQ, html code.shiki .spVlQ{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E4F0FB}html pre.shiki code .snHMy, html code.shiki .snHMy{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#ADD7FF}html pre.shiki code .siHFe, html code.shiki .siHFe{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#5DE4C7}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":186,"depth":186,"links":348},[349,350,351,352],{"id":132,"depth":186,"text":133},{"id":257,"depth":186,"text":258},{"id":300,"depth":186,"text":301},{"id":336,"depth":186,"text":337},"Keyless and complete on ten EVM chains, one host per chain. The backstop when nothing else serves a chain and the first stop when there are no keys.","md",null,{"icon":357},"i-solar-global-linear",true,{"title":68,"description":353},"F8pNGUufzqSxZ2dVak1i-R-FQm1zXfYUxeLbzdu3FtM",[362,364],{"title":64,"path":65,"stem":66,"description":363,"children":-1},"The v2 API with one key for ten EVM chains and every operation. Five requests a second on the free tier, and the first choice whenever ETHERSCAN_API_KEY is set.",{"title":72,"path":73,"stem":74,"description":365,"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.",1788626961518]