{"_id":"@web3-onboard/gas","_rev":"33-a22ae4777b5ecb0f37a0b469aac14fe7","name":"@web3-onboard/gas","dist-tags":{"next":"2.2.0-alpha.2","latest":"2.2.1"},"versions":{"2.0.0-alpha.1":{"name":"@web3-onboard/gas","version":"2.0.0-alpha.1","keywords":["gas"],"license":"MIT","_id":"@web3-onboard/gas@2.0.0-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"64ea1b82b04a4921f6a796142281508bd312f471","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.0.0-alpha.1.tgz","fileCount":14,"integrity":"sha512-xQMrDKjK6d0i5Q1cdaY6+zQkO3snUaT+QhKC7vUzleNc9YrrOrIXRCRRQI8txjYF13rohdJD0POlMjckFXBn+g==","signatures":[{"sig":"MEUCIEoB3YEhwfezwtEQJemWt5mrvc8l5192mWIT9KSnWFC1AiEA2mK8RlincqYChEa3uQfoovUjnIR8r0b6gAM9D+1R0Rg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4DGoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3dxAAo/7O0vY18zYl3sE9rOmcxE32RTwudKKY5UPKGqtkVIX6krr5\r\nZ+Qy4lP1UvWcKcDOaQWZpLobVZuHVg1zRJt9JtZvUGR1OnSHtaNuZFJpkRY3\r\n+DEJy8wUkGUq8gcGCfze2pTLNumpfEFuioHZSd+zxh2S7T2690qAR7KJEloo\r\nG+l2Y5/Lu/p4OceNQwQSrt7kRzOcYITxE6bShrHyvBLnx5DFJvCRFx6XHyFI\r\nmK5Gj5BMCPoLlJuqN196XxBPpuYr7ex0lR5gzm4Hgdve3bfNmpNW9iLi1SU2\r\nsxlFd1ze6ssWi6mbtGywG2IE4mz5xkIms2Pp3sPQQbdcRVoVeapJTDiGqAJM\r\nom8N8I7Sp4M0Cg189f1maO/gIg8AikDEl8/1/665cC+etoed2IhvpyldPvu6\r\nMsLgY5OhuenvOLFWC721Iy2DQ1IilkLbke7lh50UbRztQvDMdDQi7dlbXt9f\r\n2PLYntht1tLr0j6/Egy8ZnmE5c98rEDj3gDh1uaG8Rv0YkW9HpV8YdU8ICoE\r\nxGFWnpJqQwDk7DxClwq4GZQK8ZNRDjRMrakF2qGtU+miLQaQaNI+En1KRFk5\r\nALz/S/lbD4qsPQ/I/aVvKyNRgKNlyHKCNMJTSFv9QbLyhrwo9i2CHbXHsLsR\r\nb1VsUbrocqu91SNCwaQeHBfazOzpaRb/P6w=\r\n=NhO/\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","gitHead":"6813beb800e013e67a77d997111bee58f080aa0c","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Gas","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.0.0-alpha.1_1658859944052_0.5105746537190985","host":"s3://npm-registry-packages"}},"2.0.0-alpha.2":{"name":"@web3-onboard/gas","version":"2.0.0-alpha.2","keywords":["gas"],"license":"MIT","_id":"@web3-onboard/gas@2.0.0-alpha.2","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"acabfae5a240789f70a44746a22e570adf6c061b","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.0.0-alpha.2.tgz","fileCount":14,"integrity":"sha512-TQumn3VlKgkuRKZ2Ysh3CC/maUxw0yAx2bqaOL0etauJxxJmVLyFbDJC4CLZjXy1FfhyEd/NYNgWsj47oMqG1Q==","signatures":[{"sig":"MEQCIFA99obvB+buWXtiqnbkHvL/pheZamYMYmJxfkJmYZ6bAiBplw4cAxA0CcQfGrKsH94b1kQ+lL5/GwEbL3ZCmYnttg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4Y6TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrj5hAAoHWSmrC5TLpSNP5SCkvG0IaVWPmRDmqEZMQyFy/MgaLzE3xC\r\ntWo7ebWo1M1t8PRZR/0H3T6DrhIo8k/4CwBZydssWIx2wusKqomha1gNL3Op\r\n2kR4sRXa11UchGiXiZSab2yPCofBlKsp3zkw8FbmT6HNwPeDYcWxymULKixj\r\n8QrY3HOhi3FXgAUyLYp88RUiZLKPsaorQjn+dxhr353cPCHPCD8TPCmFkoco\r\nV8SyAubHUo7yI2A9Jo2Ivueq9b2TpMB343O83tB1SlR+lumPVqwJoOUXtYoT\r\no+MT+tn9x5b2K6sPJNDfK0rfg02DIsXbCEmrlKtq8JHJl1ck5UusRbwnfYwN\r\nIesfBfUEeJCMytiNXvmyP3FhRWxM7d5MaV49i1wCSRddefm5b1p99ZRea792\r\nCVtoCzH1YieYzfIAZ2Nt/HWNXL778+3y/0IpuiTU71Z1FjT4aNLGXvUCFZ1A\r\noos1u6aK3Z3iF+M0PDuOq8x1h6fD96P0Uo9Wr73cZfGqqkq+4JyafPLxhTCX\r\n+7OTFPLWka1aKHojto++wVAZssZHjeTUAL/O/PfJXx2HORTvhB4Rp6xP1sl0\r\ngBrifeIDkMoHZURXWGloN9VQt9bHJ+X39s11rYEE+ANDdhUSQxI3N+Z4zQXh\r\nYOL4Z6sCE7jv2MNuMrTvL+EN6URH0waUvAg=\r\n=JNJL\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform).\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Usage\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n","gitHead":"9b285dcfceea1d0edac4e08af7f5fdbf51f0060b","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Gas","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.0.0-alpha.2_1658949267503_0.783827539747701","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@web3-onboard/gas","version":"2.0.0","keywords":["gas"],"license":"MIT","_id":"@web3-onboard/gas@2.0.0","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"0c38e522915878bc010ce45fb329c2ef9b8d67db","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.0.0.tgz","fileCount":14,"integrity":"sha512-sjO4rRqxh9CoVuyuhu3N/mdqjswMxi64kkXvid2XnuDOBeASqy5MSl8O1OoSuribDvzSg37stpe+ZNlIXRiEyA==","signatures":[{"sig":"MEYCIQC5gkwh63bEG98qO/G/aSAB+6dotIaxA6kQpWFsBLHJkQIhAPbdEBc2iGv3FfiNYniXCY5G9UDIdqdQBYqwJIybE+vR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6FljACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXPg//WcdLFSEGGDTN5lUfdVUVumslPZOrwQIcNdZYjH8PqZGF+dcK\r\nTTJO7wTt4KRGQ+qiT9BS1rIoCfUp6ZIF3Kdt89Yre03Jq9w7QOChXodGqtyP\r\n+x90UGktCdIUlICrlPoxABsUTjHOiFxdil3F55O/xQjK3GvnX1UFqjp6ta8i\r\nQuHCGHh7n91cVfmugETopywImmhwHhw3qA1bKxsyBkOKXlAo1+kOXPqVKFqy\r\nntxhMB9EtEe1bTv3eGTF4TfNBbcRMaE605fbsxVqMwJZp30cSUph6zd4YTzW\r\n0D0+nm1g6dfdPPKKhJGItJsbEpnDzZiogmYEUqQ8NQsl0SWlu69G8k9n7Gcn\r\n0k8anDdEXq1KN7LX06f3R+lZ8O5DaFLjrhcy8ZHqpBOOcq0FSZo+Nhje8CUP\r\n5XpETanIGwcygjx37B4zlsXNibRVtRmtAAEctNbV/xnyifMLUft4MS2xeCzw\r\nvjH6jTTJ/V+3+dECWkp0g4E684McHbb4TCw5wZZFGp9qvCcRm9ngHDL9vbAm\r\nX8Lv/CVR/JesWROBuihsWspP3Tt5oQBdq9G4nxXZgMaoU9j/7LkXo/jjweb1\r\ni9zXb8NXixpy4GgMyDVPX3N89gSXDwja8k7RWWBoe8h0DHhEN/hCCXOO4OEN\r\nuCYj1ACCfSH2NgBFq84EkaWGHu88N07UuDc=\r\n=eQ5M\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","gitHead":"d4530813530dd322a6f15f9dbfe7af1078e34881","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Gas","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.0.0_1659394402830_0.7875230467764627","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@web3-onboard/gas","version":"2.1.0","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.0","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"b771835523babfbcaf06af0684c241c0eac40224","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.0.tgz","fileCount":14,"integrity":"sha512-dgARIqhiSGzL6Vi5fGWSCPVYonUO2VMqCg1riEjuwk5JW/u4Tyw+aAA/CBvQ7Wr2G32KDlvApPlch51LDHBEoA==","signatures":[{"sig":"MEQCIEJ6I8NhT2rOMspzsyu0onv/nYIPh5WokqOhLMcaYQgRAiA6E5Z7YZQd3ow86C9O3R95unr0P6k6m8w4AqcYKnG58w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/vDOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+lQ/+O9g0/iFqauxC2jMevByhZaboMxpmDS8YrrI+h+D8c1DTl7Et\r\n0kJg7/Yml9eW5OvOqSzfZtke5EKrhe+tmWlskm7yCB1ZWMqELvaGZ9q4jZKW\r\nA2YElQQQBWQAyTWXSpNnOFRAXaAICJteX6tIfGq/071Si4jNZqxF0ox5ej89\r\nXXeqrxoepZXOiOqe//tCOQfNQjgwV8fsMjgFhcgu0l+ZQWMGI/kiCgZmFAVL\r\nnyisZsx9BYNmNf8uMFEiFJYGuB83n8ryVuCr6ttWgcTGuMh80jOz0lUlOS8p\r\neGFMdRZ9lbmd3qbneUgiEzOyvAaLN+Nu32cXZdJUQAlgZgh3M2yFcMHhJpR9\r\nbz1Blp4gRICf+s8lJZFnnlWajz1Pqlmla6NvGr+fzB27SzG2B4mIjEnV+0/r\r\n3meMjrlZoHq9/2/2TfGkWGs2vrVO4TOv38rg5vDHOZpAs7tpe6kJ01AVdgEL\r\nbQ40hYKlX2iMT3RX+hCQ40esU/lT19Tg8EueNjJsPs6pksLuMUMebAG3ArE6\r\n3UbzwFNmJ0dpPcYg4e3Ko9IOhofu4qLxhaaSHowSsj7h25LGOpSDOokeGzCG\r\nU5ETq9vx5bxyO81th9SpU9Xt4PSJfmlk+/eqhsZtFZhFTdLyuLjTyFkF9v4o\r\nzSqxV1m+pP8LpZWZQWrYgPDS63fm4g0wYz4=\r\n=BJAT\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","gitHead":"10a633ca6e4c36af74cc32580f1eee158f7b857b","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.0_1660874957972_0.8446365318265314","host":"s3://npm-registry-packages"}},"2.1.1-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.1-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.1-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"44b6c6a06d3b6b76387a6d9f2ed68e579b6d9ff4","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.1-alpha.1.tgz","fileCount":14,"integrity":"sha512-qM78MXPvGcIYaA4wjfS+o2UomdSuhj1QGsd8gUkuDlTJGomLvrWSDXshtsPHIJIyj1WUbj5lE2rv8ZGM+yYFqw==","signatures":[{"sig":"MEYCIQDRqt881Isi419Pnv8mxhxHbROwuLGOnxupKBMQ5epRQgIhAPCAuaKpTvRjerZEzZW4IwaaqHRuDRuX3VBEmxiov0tn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBBN9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlQQ/+Jb+XQQkvl8b5GG1vgRQ5/nw6jnSOSA6wUGU04ldFOtXDPpIQ\r\nf+1zV8xRNz4lX3TEkVJMOaaQ5duJG2rFg43aMjFPS8Xd36k2c2Pd+V6afqFO\r\nXXdHSfw42gkZt/9gNvvkvze/OAn0pqk/M+qEjD99caNux2KhxMFJne42rO6Y\r\nVFpjbzsn4Lqmq0eLAO0qtdX1iLA8Qy7jZw6U8DqsPT4a89+4RVaROJSZ+N7j\r\nEh5cQt/T8eWqjiLYeob4r+PpMeHgDR04Zk88it6+qBALzXdrJoBFUjAw/AfB\r\np6zRvZ5qJnmIhAm3+djMA20y9NvIsveSLv5POGazzNGtQ60fkKJ0mGxKnxDD\r\nCalgTMJiPwL6nXI86xA+inOpoZYs70G2A694QqSGLM4MhE8rZcHEpG5S7dqx\r\nHFJxPrxXOe99PdZt3ok7ySgbNCQuh40PMKMoAy+yijJ+GrAYUOWPbMhKDmGv\r\nT1rmMnaEPtCDBbc/X+isoHMwAMrGZvsq12HsZ1ruDc7SvSEU/+swGjcZ4+H+\r\nvgKbyTtqBKYHac4NUsiNUOT7cMpOSE7iZwjY6qSQO21rMrUdYf0gn6i9sbFh\r\nftxIiRA1BX0mntY+rNHypycGFaZw9/GjksysBUt6Zogu+7vvus2HG3y+TDtG\r\nkokWUEhsygMlhPyqRO1fp4A90xXOyMlkt0w=\r\n=JlKV\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform).\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Usage\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n","gitHead":"748f7d8c81763d82226f64244c4777b97c37bc9c","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.1-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.1-alpha.1_1661211517359_0.14079622582471063","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@web3-onboard/gas","version":"2.1.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"a94c9cdb2a3d8650fcb64d15633c85353ac2ec7d","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.1.tgz","fileCount":14,"integrity":"sha512-DdxRpV6+DGKyaIpBSW+Btt+N+bYpPWo5RkJGXxzMgXfCnXDL+YytOhsNxQCrucfzjIZWvWzCsklgOfSEhFtyKw==","signatures":[{"sig":"MEUCIFZTEgkrZwfZI5Las1NBPk92/5B0HfbW2dwHJkblNIlDAiEAxM+pmKvsk5ryFq1ADRvfzI5eXyXhkUSHf0Su1b7+5tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBqZdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4TA//ZbBDZ91EAgd7JxbA90XAjBrmMQnjkHfbZYu8t4vv63CuU6xV\r\nv5Y1RreBpVLv0HmnJ0orTt3uJ+QhhxylxFfqFMwxyR55U/94AV00NJxl60zm\r\nfPFWSm7x8OUStWtRzC4j4zh6KnfOdKFcjXNKe1hfvRtlVAed/aNU71KelgVg\r\nxHnZUIU8ELds89bj2+JnoQMzeg62FEXyTCjyGFHtsuz6P/JHtuEZj6uMQDKb\r\nJgfG/U8+oYxZxI3mTSTOhY48iEp/Y9dvkhCdDZOJE8e3ZF6rmJyQCwd5Ck4a\r\nFlOQ48IJYO1pjzym642VonewwSOVjzsBEo1YvMsOZhffJnqyjCPDENAbTQnG\r\ntrXMJlFrN5csz6XyVFD2xCs9pP7mQOGJIoAur3T993SrinZC1nPduViaUn6k\r\nSvL/sH7TtuvFG9lC0Yn45k3T4QrGUNGrtBF55vPcNAccnzl7CfqsoYpnNtyh\r\n3dQMPhE9nm9F8cm+i6GQluzzxAUsKQ6V8q7HaNknt56tb9t2O+oRc8WTJSFE\r\nGx8ZQqsgdJJUeI8wRkMPv01yhTY8wRDY+wvnc4nh2gfwVW2sVAz6YLr69eQ2\r\nffOfGgp0S6DsnSqWInA/YokeN0Fv5RvuhZ99tNRf6fxZo1umAOoOjldpaknC\r\nhuErXR4yNkT8cIKgcgN6lsQcmFPmWrfZb+k=\r\n=qlnY\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","gitHead":"d97dae8833168b3fb331579aea475ceb0e794efb","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.1_1661380189403_0.6760952822036055","host":"s3://npm-registry-packages"}},"2.1.2-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.2-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.2-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"02bf83a02d1ec04042da456eb58d6d17bec2d370","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.2-alpha.1.tgz","fileCount":14,"integrity":"sha512-k54If+kVpLY6WD2pcjQKNH6dYZnN+cbDuFMyK1dZP3PZqlDZVbr2aKv92Pn5miHpCmJI7HTCmvg2ydpAi0r1IA==","signatures":[{"sig":"MEYCIQCSpcUqjxSoSY+dtfi+IXVYUxbDauqcrN0Fv1MZYQx+OQIhAL8Kq3yWwT/bFxHUMlLFERTUKPzBHx9Jx9fun0JyLEBN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEnJDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTLg//R80hrVAOwJnJXJSvJ+bat8TQlsGny6bV49KHDiWaTjxmuS4l\r\nLzU1ShqbG1pKV/tcLXa5ainpL0HUt3c4xXAIDiMaUSX/o+wiqgG3vWmJCjbd\r\nmvAUeEM6ul4EOfqI20uXN8p5rfvrULVOfMG/YDNVKNLy3hbkFB+/w4KOpcLb\r\n8v2KomzWbLCz+JOiHCSh3hUI2YAOMUo9xjWmaapXZzlJT8EF9Zm7pN0Hg4wG\r\nCp5JLmVgBdwXs/lzoR4pC4QRJtsjQCysddcHoZFv5Di0X3j3M5k9RQGOEdr+\r\nWZ2l9b9lbNyVE5lGkMiLuveL5ZorT8W3U6+10JJvmPRtvC5R5ELwHvvTQgMR\r\nzLNrjAOdNuxQV+WgmyF2k9ZmVmY+nxPKtLBnfTUNXN6NgOCo88DdlsHmOVlz\r\nIlcQ2D8+xk0fceII3fvrlN7uH3mDUTnZgbjvhHnh6WhttPVWWT71Zo/3Kxw7\r\nacOdkHE27JqZOjnQ/Q5I6teMnNKHp5YEG3A7L5QlPngmtQbsUoi2d/0OdNAz\r\nBikAe2oAsMm7ugbrJ63PU73FGE8mi+DdOfqQfCI4sgyu5B/FkKaNSjZXR2lS\r\nSm2Is2mSPLw/X7RnBETewRRoZ0IEgZca9ThAFEI7DUnZu+f++1x2jfvlV4F5\r\n1EuPuvoljfdBkjGj9cB5cxZVx1Rc4W887WI=\r\n=NqTf\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform).\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Usage\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n","gitHead":"8834c05ec7c3974d99324d5701d01486ed6b0c8d","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.2-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.2-alpha.1_1662153282828_0.7941879154451956","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"@web3-onboard/gas","version":"2.1.2","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.2","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"291c572bfb3a705335ee096355bf67c06739c9a5","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.2.tgz","fileCount":14,"integrity":"sha512-MUPGdZOcP84RVX0msZdVdVLDbOFJMWBcJqNIvGaSQvBdUBIg8zUBRh2vSO3Ynqpm/RJffl+cJfnKVP6pEfbUXg==","signatures":[{"sig":"MEUCIQDwcTsLbqTfDdxNXa1Oj84XTrZD59OeJL/6D0kHVuD1JwIgWxURbpGgkDDiw2vMRQTsp/LjUaEgwjwBWQ6mbGSiUuU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF8fpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKAw//WbCQDFw9zvqSpYcGp16pbe3+yV6MHju0E/IbwxW+Ji8rFFd8\r\nkONHxmVAGdFJ1H3fRIg0us6y7NlS6PJ+LGtfbCohAAY3QScoT29vA8Nndjqw\r\niC4ncaPdYtkFa2MNd/9vb9x6xbM4pLcGt96FEpgIPSf9lDiWD1g4nPdrXHV5\r\npml0sANSkGyN2Y5tBFo/3xJJMd2RFAOrZSRXJN53xmEqp2NcQ9QPTQy+rw8e\r\n0BVLNlttrIKKXC818uAvOV61GppajsHVDloAMNZTPsrh37vG/5i0N4fJnKLP\r\noQqZkajz+WaC20mbXOE+n/xW63nCX6AsUo5TsTRpXnMaaCc01diob2aBtsE7\r\npOovVHpMptTlUS66B9KRQym8BFwvv/9zVo/IXgTcYaC80wb8qtjRDAMO18s5\r\nCo4U1U20WXTS6zF8yXd0REvTxj9NaOjThcS4e53/zIbrvSDtvp0YyZhyME/7\r\nPkPdMu6P0LD5EooskS+UJ6frax83zTbX4SioJ/yJrZqDet9zhtPBlrJMx3EJ\r\n/ezf1LW+E3YwCKFn2Yu4XjA1uKLIIHyrUD0Fkz3ZTevSLA5ySfSEpkrFzXMR\r\nJX9RoKWZSGXY/nim3r16jkb7yGsHC52ZWMf6DtsG2AjNRUSI2EynkSf3rl7T\r\nmKc5dopvh7VWyZvbYvUa+p2K7hMaRdTkWCg=\r\n=3YYN\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","gitHead":"50833aa115a448cf1b38de647d20539a6d282500","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.4.2","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.2_1662502889082_0.477093001482797","host":"s3://npm-registry-packages"}},"2.1.3-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.3-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.3-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://www.blocknative.com/onboard","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"51dec7cdb7aabcecc2b4b8889120a8dee0ada348","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.3-alpha.1.tgz","fileCount":14,"integrity":"sha512-/IN/vL38ronvgD8yEruwaM1NJL46euQRvj5hb1dCGQVsdYY+z3VCzf4885tOBnILsdia7Rozrvk/xuktXS/zWA==","signatures":[{"sig":"MEYCIQDpX55Vd2Z1kyw5v7Jaagsr7hk2dpReLWu2NTJ/8MOvSAIhAJkl6pYlEarobhtBs2n5PTsM6oqVMAtADfHYfLt3v1Rk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLNYtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpv9A//Wo9NmDoYgd5pCAJ0svIIwxqtE9bBUu6sN+GdmtayM8b6mevj\r\n8I1ov+CFVMXuJeJfDCAiuCLoCB/MzHmTEctP0yYnx/9SVx+eg5P7F/+cnB3B\r\nZ8Zl9g5GChTr7nqTT5P+lTiTmgfV8ZhoLlHkcyAlGFREwALksbX6lXsPzQ10\r\ne7W4V7hbT8u4QfUO5BXHtYNTy24/hZTjSDX2zJNTHZix95bpll4gDNmDk724\r\nI20tHjAIAQFVNBouiX8z7G4ZE5gWNEl8YyfL8x3a2sJGtow+0gO2m8eVqsJO\r\nKmgEQfNKqwOVNQs/6cl1qJekpvTGuHZWx5HA6Cye9GAExE7h1PKXcwR9qWlr\r\n4PNJyeiKgJN8DOg0lgDdtjNUckVOHO+lDAoB0MNqyohEi4lPYbc4DKSV+vOB\r\nDfmuw8uXoIkyy1J5RGVTtAWuGHbXVc9uXIgwTvFPBrJU5Sy+enuTsUttim4z\r\nb/y4A1wTqy0WagzqFU1AkVhxHiLJjd5N4/3WCX90cl2w08mlVOmKsvOFE9Ny\r\nnPC5MdmcYoee5j3VQKoVkYyFKc1BZ5kDFUYUhnBTHK2gxlzWK3ayJSzZUq2y\r\nYr4iu7upEnedhKHrR4LgIlO2IynE7r8Hm0/jX8isfHTMeWaEyA6MtMHqTj/D\r\n/jJh/H3IA/qZO8EgXkuOtVp930plR6Ox9xA=\r\n=9emv\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform).\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Usage\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n","gitHead":"347dd934042d6a54791a2fda3656b0649d05da9c","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.6.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.3-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.3-alpha.1_1663882797490_0.2731407105599195","host":"s3://npm-registry-packages"}},"2.1.3":{"name":"@web3-onboard/gas","version":"2.1.3","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.3","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"1f4f2da8e758dba6bb2cdca8e552dcc801c4981d","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.3.tgz","fileCount":14,"integrity":"sha512-5k3O5bX0hdJvGvi1w5ztUg8/muJeyPTuzcryCOnY1/PoSq/znUy3z1Qjl3V1zJtUhKydirPRzXEbUushjQ1VVQ==","signatures":[{"sig":"MEUCIQDeQdPaexOI39t1RZqxcWA9+qG2OvJf7C8Fa7pWiuJLhAIgYHewq0QJBu0MjhnQbaVxVmtzgGXnt1VQGwxPXDm569Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMiV/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBjg/9EaROvRwW+CI9F4654aUVD1+PRZZAX1Kr6a0ZisIxz5tPB9Te\r\nhEoWKRyzWmehWQxaHD13WQnn63tqFsTth7+rFzYZEz1wuDzu/pFKqBB1INQA\r\nFvLMPolvCqOgXtq9E51EM/kvoNKdEowb4+z3LYXBr2/fddUs8pZNUCT28AqU\r\n0TJ7LFujxFbQ/WmQMqXlt506uyicTTMeBgszUI1fyaAx/P2cRPFApNhm2wF2\r\njb34JlRP3B5wKUk5YPz6e1ZVQB26Dg2tzrJJ+6fsdAZiZTWVobzdm4fHvnPi\r\na3oj0Dbbl55IG1d1sn5RgnEZMNdAQX2cViZsOHdfSd/SYjG562Jsf2oAWCrO\r\n6cnLISCd57h4+MKfImYlwTAy68YL0GuteqkHSYe1NInAVEiJ430G90M8kIQf\r\nYJBmHwAi0HVLr+pHkh/95pare0xPJqZ/JrAQmtU3thion3+eR34v76xcEmts\r\n1yL1tBFokQ9JvOl4OaXBiVwqQfGyND/PQ3bRO+Q5AZpFMz3gNQ8+PNUo3W9z\r\nBFOnjgIEpvXi8vd9QBikLVVsIY/jrlE0YfQpw81EKGwoT16j3krCxXRSRaMG\r\n+tw0ZBQOp4W3lNfduY/NH5WdvRDhRkvkeYhZF8w8ewzUBudQbwOuSdiCV9kA\r\nzOJq0seWlziuxmMEsNrjLzJwXexqtT2NOyY=\r\n=SAU9\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","module":"dist/index.js","gitHead":"4d34a3fcbad8ab2fd50d2a1e9680bd4804b11e3a","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.6.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.3_1664230782975_0.6983655842392242","host":"s3://npm-registry-packages"}},"2.1.4-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.4-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.4-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"f0b4d84043987d51d656c0507f1fc98e83890b04","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.4-alpha.1.tgz","fileCount":14,"integrity":"sha512-gEuhTu9aOxEbXJoQgqHl+BbXdLRRX9enW/dbgFya2JR2y1wEDLuvph7m4hVtZBTcN6xQ/tOd0ksJAlcYNet3wQ==","signatures":[{"sig":"MEYCIQCNaNIFbrnnDeb+g6+j++8AU7TKApMbpRYrnBGnosk2hwIhAOHMARTH5Zkr0+ciQJxf8PXLXMY/NWVT2tDgxHTHgHKR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWbI/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7ug/7BmHvDLhD0Mc7Vm0LK8aJtnXd8z9TerUuZcDewDSwZ+WtTB7b\r\nSiRZTff5adfgs68Ujp+YMM7Im+UTD7Uq7zzL56/lwqENSjqfjFZFA0oCa48K\r\nsXtgWjCTCWros7U+MoVVl1egdx8KqclMW/xDMBfWvqP+kb8Wz7qLB3ahaEiP\r\nTXu7Ep/gnW5HBExKtNPitRV1RZCa6ogBdfsXiN2mS/U1+DemLESTWyPoAVDZ\r\nSJJioDRV04x8JqNRu3lHZfDomKatGI669UZq7CaXqiObBd15sU4D5pNzx7SA\r\n0M9z8BN0qKYzpKIFC7hitHcjj1ZYLAjO8SgBe0+YSlvstht+70HI9XExEACj\r\nTdZUG+A62jXGIT/NNkE2wSWNsU9QQvjAPkA200z/mCXDT3pmtb9GQiNNxeZh\r\n08oqXQzXB5IFXXGkVUliyY+GMbkF8GIc0oLqFO0p57nMKZELj/dQ9HRe04uL\r\nN4T6GwOV74thNyKzTYEpMFgaXNEV+GEHGYXlPT4WmZdX3KQz3/RJyN5dY9mA\r\nypJh62ASSuRhgikEj8yP7CSZSBMpn/Vv73cSIXjn4ihoTybwB2hnmoflPn92\r\nXgYdpXwBu0jHpg1CfPxfRim4whk8mc2/aCwBJLJ7i0x6yL1zzowUHRkHbxFA\r\n5GnxoGog8uMYMQfiwNROZyBPhq6u0daDAxY=\r\n=SETX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Usage\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n","browser":"dist/index.js","gitHead":"e3f4f4c1c0997e660e65fa49d5f4f464eeb66bea","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.6.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.4-alpha.1_1666822719205_0.5429243986576988","host":"s3://npm-registry-packages"}},"2.1.4":{"name":"@web3-onboard/gas","version":"2.1.4","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.4","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"6022cd10419c5b28b93d7c914e2165e33098a027","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.4.tgz","fileCount":14,"integrity":"sha512-7yGYQ5/KTdZqt2TtHQi7kTTL9Fp1nQRAARct0JgJLbwG6XbVd+5GG47Nc4KXeCFAYjBWzJ2rBO59zejt3/R9uA==","signatures":[{"sig":"MEYCIQCNUeoIb7HGWvfDyLda7aXoSt/soQRszsaOqweIzMzIUgIhAMrHaKWRoVOGz2c9Pcy80GZM5YGjRiyHaUL16iRusf/I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXC8MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJRw//bNykUfZ/mzuXoQ1JNXhvImW7pHhcJr1K4dyY9pN4lpieT+a3\r\nIhqhfRTiZUd6oes5A3Ok1JgG5Y757ISc1iSPnDLSbGWTFcwJYG4e4SahrhNW\r\nzT1zvRJNRtx8xXsKZ7kqzTUN27v0g1kAL7uprEAsW3YbqqpVoxOA9VXpKTtn\r\nn4PPG1TwH1dWahs6d2wcPMnmCKZZ+xNvlUs3BsHZ3FJJsY5nizCx4S04whB9\r\n+67WKPQcG5YhtZVETkFGIdbsncuncqB62TJ48ZkKPErel3TWUsMtKkFFH7Tt\r\nO1vv+/mWQZxdrH4Gu/Hcks20J/bTmhGuRpMy+DxWu2hbc1G7MmYjSk2HwEGf\r\n9hsovPWBRZG4PfaPAOEsDjDhmFC0WMiL+/TMZLHA5qHxVwtD/kOMxyUc0YNI\r\naQZQm9tbmy8TGDeakhaNXpnlKY+McHPg1+ROE79mBU5y8ddiUrUReLuT93Qt\r\n5xvtk57mxErSlgV7C1SqBwzQe7Ur2+VXRuUKFFFaM3jI3zfmZG6xqMLSP1A2\r\ncyfiaZiNqLFaI3e6IZGVRs9DoOtTJ7yiC4fcVedUbdyo9EUtiHLIk7KxogcN\r\nkKth7/A86ez5dUNTKsW0CtpUYu4zQo/nh04CvSuHiplLlsECWIF5My9xbsU3\r\ninQHvIqvb93Q0P6OAJfHGgsiqkOSqWFKLbA=\r\n=vxFo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"efcb1a4d2d09466d6aa50e5e2f6b157c6c16966a","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.6.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.4_1666985740415_0.3084984843234977","host":"s3://npm-registry-packages"}},"2.1.5-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.5-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.5-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"41409dcb99ef67794947def7f0369e622bdf11d7","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.5-alpha.1.tgz","fileCount":14,"integrity":"sha512-ZMVBIchAxGXMK4PJiovMYmzh22xpm2dol49j0LgyBm6Y+jq7K6SYZ18GpiwHDFKD5kfBYHzKdX72ovKVZW1N9A==","signatures":[{"sig":"MEUCIF1Lk1QCU05d1/w7AWYxRyjELYvdvhLgkS6PY/SVsYRvAiEA/LcN5t2tkwUawEtb2Q/cX47OUhaamCQCyW8YXTk1M4A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGNLFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPfBAAkvqrFS7yCQC3OttOhsodvjDySq3bRxWGWYCWvS7e+LofF5mC\r\nCMR4d3hNxUkuvT8fhFtzUyrVNUtxlkIJ4RReYMRVX8cyrcXTVk567awzoVkD\r\nIuhoCvvjd3PrgJWDtjFZCjTFdPIN17+03ws/J/bQ4DHqxHtj+XwieeTKdpMv\r\n9QJw8jlp9rYoXbQ7tsmVsQLm7A8Uofb1GWr5Uks+YC6oP1j/asxQkaerhMYA\r\nRaBUoSbq1TOMjpZxfmBl8iSH/W6ZfXfY8G1vn2baXUMACTaM59eZPwqX6w1E\r\n5JsJkYygBm3yLs4Yh9KKFOfq15w2W2cWsz0o03jSVYbEFG3CDtLoVLLKaFJl\r\ny62yqAIvgKP7X4eSCekzl/YNXprfHTw6f36y2YmuSmAvoHVX04CMrQXqNsJi\r\nvKscQv/gl1YBMod8yK9e7Yy56h51LX2hRY8QbvmaffZjOdTJJKzkjLt+FPM7\r\n0tfC5FHSJgF//F7wNB6Toal88cALEMn22RC+XZzuUYmXCaD4XzoCOt5Kdi1s\r\nztk1gzzZqi3LPB8d7lJBa5zYF5210DJjR4VHZeBvD4Emkb0CbPpA6BR/qX2C\r\njArQikzmqG2LPn2NoT7GnVZ/nuhq6M1Ov5rzKHwdL+nZu8YVaWSIA6tegvZO\r\ndcHQXB9yAAVGDjV+2yTyj44+rnRviIHsjSk=\r\n=3iTs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"7d14b349c632c92a8ad73617634a57fa525084c9","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"^17.6.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.2.4-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.5-alpha.1_1679348420989_0.09064001246597364","host":"s3://npm-registry-packages"}},"2.1.5-alpha.2":{"name":"@web3-onboard/gas","version":"2.1.5-alpha.2","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.5-alpha.2","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"0701cb3618b94262a222d2777a81a22e35373ce5","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.5-alpha.2.tgz","fileCount":14,"integrity":"sha512-gNgxOkOWSQ0zyT0+R5bUiZRr1lnb3Tb95vPa7B+1JYOy+Z1Vl3ha0mHG1G4vENNZqZSV8X+CK1xUFwhvraUC5w==","signatures":[{"sig":"MEQCIGEdEMbZ5IF/B7YiNoHlK0DD+JJQcZma2BiTeMvHN/94AiA4P7w0Ldv4XVUc8AnFnAClf2KgyZ/j7OGTyBkt1mq6KQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHd6qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpxeg/9G47Yw3nZRmU3H0BXtbOJtX7vezbTMMRvQ38rBXIzg2/vwqzm\r\ngQgQ6bFvQxKVxtOYRnyAqbByDhdpkFrzQGmMq/9j5umr86FS7UGCnPYaI5OU\r\nPKGmNAi1DRW7Qdhwzry6KRlCYpK4aZ+rJ7v5WQ/jPpJ5x6SFvBKaz6dGLZDF\r\nVOqOeOZt+kO4VzniM/qN7xbXk+T574+529qqGqKovSbtYbNRtI9wtFEq9m24\r\nzMz2AhU39dhcOFw7y2QYKRsOC9qnmEBgG50H1And64KDhXwNNGEhezRegQFN\r\nx8BET32i6ScoE+pDE3B3FOmW9ySKQSnR5Eky4Sz6QQ1UzeZhbRljtF4RgA2B\r\ngONxilYxXCVp0TpzKCERR1mlG1j4E/pMgt90DpfaKvXrwIYIon1Mlz7cjviQ\r\ngIKKt7CHE9ttXfU16oNIO+9F+0P0xvcp97NbRUjXuUajhcKBMVFnr7NqviyI\r\nZr80IjKcauBzXniWnx5OMvWg+wnQ52HG7HmQt4/9akb+LilXBG5XOw7OUe+l\r\nmVZpcMc4GAUHM/5MqtteXu30LY3866RN8Lolp/GTzuUCL3fbt33wIfQewuGE\r\nY9Q1XLFsyzmCzuB57jsDF9S/SCJnW9q4NrHdAK81g5hDKqr2PM4EAUoUV+BI\r\nfdOznDIXyKYdLTpbnnbCFso3/oKvNfCn/qg=\r\n=bi4M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"e760d2be51bca95d7931abf1b91eefe75812cd0f","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.0-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.5-alpha.2_1679679146102_0.15253956803555568","host":"s3://npm-registry-packages"}},"2.1.5":{"name":"@web3-onboard/gas","version":"2.1.5","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.5","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"bf7fa4cd5a168c78e36dfd39a6113dac5657aa1a","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.5.tgz","fileCount":14,"integrity":"sha512-sB4a94eYUKr9fI4GmgtqGdAKgAGQqB4i6dDufBq4iBmhUmWfAd1xRK5dY4t2O0ccPbamjzHQM5WRz5Ez/WKzmA==","signatures":[{"sig":"MEYCIQDnkSnvU+UNp92Auic/a984rraTBizPw581+mozP/qxCgIhAKB8l0lGQNJ5QfmuwOp4cyAuytN15il2vRK1Rq743V0c","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIx/LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJHRAAjfcNUvStgZ0FWOBYG+hNmZ2iZzaKcfmH5VeGvAqH2arTzPJa\r\n+oOyCXZvj3TWNyDLSx/yb2SvzlWlDW22K8T95xTnVn6x/tiMDK2KwwkuoC6E\r\nmrm1F+ja9i1j4kNwQU5LME9ppaJINScQb3dSTDiSZSZ80MGSCtemu/aGX8/9\r\nj7xi+QXH0ZrFh5ZvvIzdjoZpmXo01kfpKYMZBs8lGjqGAuu2VNW/CSkJNMUm\r\n7uHKr+P8dPDriL+A893BHpC8EHDjgGV/6baSRYq8hBUsd5NnTC2ZMzEYQ792\r\nV8nhIapKs9jQaC7sC/0XIuGh4/HER/1eFDM96Jr2r8L+PeDNEzCguwj0wJZk\r\nlltLt9av+vCKjcYrjjPHfIPIiH2RERVBmuxe/Z5bKyywSwy9HxDD+dLC9HjK\r\nkPzyhB3P+gIW4/jvTI8zSaiQSGOt0xqVvWVsrqrOdnOT8iFQO/iNbNbe7L8T\r\nQo6MkU9atLV1a2iciCmj0V0bZVA4+dbO3nNvZr/zRufoP3Csob/srieSuQ61\r\nwNShpOFyA5fxBUwjOd4JMbnOX1xNkIcXcNgJ0oxd+Yc0zeApYzB7d1S66Vyv\r\nLhSbAH+DxRBbsEZWI5H7EzOVGywZaMFhONmYLM2CkS3KMdgE2/vicqTWneHC\r\ngSN9ar9Rp2RUhLweTtqQTmCq2K1isPTgL0o=\r\n=i7nC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"2fc6f8d4018699a7607444f48026b10161547841","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.5_1680023499267_0.2853140180776037","host":"s3://npm-registry-packages"}},"2.1.6-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.6-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.6-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"3d8b3a5b2e032519a4384b2449488d5abf2b80ed","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.6-alpha.1.tgz","fileCount":14,"integrity":"sha512-wPU9F8IEl6buRpf4pynKL3sVcVMlIqiKMH8sY8edCLE4n1XwJhuLXwQSfnRSvo2tu9LC9UB/1F2kgkZBfYjKRA==","signatures":[{"sig":"MEUCIQCzYEFMs8PPjoTaCgZuhfE5+tYuAwxhRBzS5x3P2ltPdgIgFz3x48MnyI8il5p3DcWQxy8/vec2E3XLhK27qT1n/70=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLyxVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1Ew/+O7lP4Us4PKzBM5NcW4VK56LOSeATzRyBeMREds+gbqmU9mq1\r\nhIP9utmfhUFU28OoS8EpHg/+wSom1daVYqTcygndyp0yni20+K/wXV9/A/TE\r\nFPYNEkBIOpOa6MoYfUApfo/4eASwHxtFDmr6DpsgCgQ7LcF33HWooW2RGYz3\r\nEe5W6b3D2wEUeZlHc2dg3E4Q1CzIp4cvUkKjbsQtZwVsrdzI/Gwa5cHR9mUA\r\n1G679rPOr/RTxh/J9pExKM+TECRbADjPHqqbi2wotjz6ZtLgewl5rqItX66x\r\noFJQxRptBIrU23mbtrHcneZ0QfpWKZ5QvokXHOfqRI/7c3A2YvI3rChnIm1h\r\nzxBZh74N0tXLb7dcAG6EcEpLYIdQEwpPg4sSrPWBo9ugpMCavY0PLsBNvI1/\r\nw0ssDlpnF7g410aJ1iAYlvzjSCeheE6V5+xMQJkEnPHq29OUm8/POgKRuMeG\r\nV+dIid/wHkxlYyWuT6L8HYzgm4J5rP/EDysjoFeWqNVUw7Fb3LfxhZ0QPrB7\r\nVynGkTZ3ZEDz7cnyIIjvNDEfVrifho+c34V9sgpC/YBgXW1I/NEajcmRVLDd\r\no+/s2fydng7LnibsFqdaIP1YZ5QLNkZqSOdC0mKocY0AGrDFiW0kHwBP3Xnt\r\n0C1cMv0F1DERb1aslc3/H4db1jMb4ErTyaQ=\r\n=O/I4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"e92a3231852374c0238ca2e580897efb063c19c3","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.1-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.6-alpha.1_1680813141545_0.6035119353876417","host":"s3://npm-registry-packages"}},"2.1.6":{"name":"@web3-onboard/gas","version":"2.1.6","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.6","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"33130abbbd94d65645e911b324f4b229343f7536","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.6.tgz","fileCount":14,"integrity":"sha512-3wxXzn+6LOfBzezMYvlmspkJuVTRMSoQTYwD1S8I06j5SKON54TRSAsKL4doEA5skB3YDzXOOiEP+50Gk+Kfhg==","signatures":[{"sig":"MEUCIQDFq/TwJ7vtDu9JdwuHQcittgDtUfaozFLc805lrklzOgIgDYIGpB1uPxG3Wc2XkRJah7ZR2HJmzTot66WavuL2gVg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMCwKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvHA//R2EaCy9YCEn6EEha+3zf7nY6IrhA74QeqMMHg0CeN1J8Fmtr\r\nbiJg44pIjneRHuKKGS/XumGP0JoLzytwob31vdXM4ZZiIMlAUUeUZysHAauM\r\nIUdf4qSfcLza3ooCaetMEC4ouv8cWV5nzqwbYlYvmutuNmiU3ltikPUs+C76\r\nwrbcECEOibRkDAX3iBOAgcrx5DaBhD9sg8r7oVcLljx34iwgyK9SsPoL/3iR\r\nB8Jzzvr4PrlWWhLIavJFVzfdrQV0wgdJd9VguF6dt7fVz5/Gcmqoci0fDbgT\r\ntMIsxcP31S9Hp2eW6t2zsjBRFL8lkPpp/kh+j4lJe3F20lq8P2Sn4wwdEPFM\r\nPpJZpvmTKrru4vcYXN5UOevqvHXkryNcMuFHDuwjR2/4jVR4ILP80vcovpLb\r\nlfs7a+D9nw4PYwa6Ejzf8JRQJuTI8n6BKMlMz1GPI1MhUmbOZ74zNmTfbmo3\r\nr5O7TnHGij8RYWU/JsdICcBfYXiFwj4y4nNJC1lmrMKLch08JtbTI74GZKfp\r\nxW/LC1IOT4KIYzQfjqXb52lYShawBOuJQjUidFXmjyBw5AJ9Wl7DncTq3itJ\r\nL9sJrOyYOkJUj8uAbpK7hdKvIzY2byYC9IECg76+Zs97wE5a+iJaLNu/0BVW\r\nb4R/JIiae8hsqZcNfOGpWx2VBplsSycyU5M=\r\n=Uocp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"a4767aa39955f4cc66c38dfd1961e7397d2067cd","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.6_1680878602481_0.8107825414207064","host":"s3://npm-registry-packages"}},"2.1.7-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.7-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.7-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"3abecb618a4c192eb118cf1316f5ca4ac78a05a6","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.7-alpha.1.tgz","fileCount":14,"integrity":"sha512-8JYKB/abhNB1DkP0/tdHSAXs3Ci2gv35ydU/5PoHPXvnvkxL3w4HIRtT2BJcvBVemIckp5bc1hdQdsURDw445A==","signatures":[{"sig":"MEUCIQD94Dfboo6XOLP5y21ATr6iQCP2FItTtZ7ctZ/hQp6ctgIgRswz48xfRYITUbAu9EqreEkfUnExR4MXfyx5tu4smh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9007},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"515372922a5b600a1e0df7585c9ebb81b5eaf736","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.2-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.7-alpha.1_1683558978981_0.6953420902038747","host":"s3://npm-registry-packages"}},"2.1.7-alpha.2":{"name":"@web3-onboard/gas","version":"2.1.7-alpha.2","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.7-alpha.2","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"d49a7676d71a6e0d209a3e16e2b6b918cc632ad1","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.7-alpha.2.tgz","fileCount":14,"integrity":"sha512-Yrkf2ONBxxnTezIIAdvCj9qjVZRuRw1OJfhCsR8lKoFa7sAJapxiyH3rQBvj3oVlwvKC+2fWU4efXftSnAs23A==","signatures":[{"sig":"MEYCIQCgDY3jJxVNFU9xvxEc/FUW3FQJhL1OWdr/Z52k9jFN5AIhAIYa5ygi/sBN6RQ0Xh22ybQxGdey7i1MJECeR4lKwHvB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9007},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"8de19ecb0f10f92398bfaf307bbf7a2d662d5d08","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.2-alpha.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.7-alpha.2_1683651769910_0.18744768934979295","host":"s3://npm-registry-packages"}},"2.1.7":{"name":"@web3-onboard/gas","version":"2.1.7","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.7","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"caef19baac5b6ae8a48ce433473d7d45ce40e6a8","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.7.tgz","fileCount":14,"integrity":"sha512-OVb73b6irHYkqZO45lB3bMe7BLc4Lr4mVdqSrv/YiFjCgq1iosb6AO/MHgQAzG3X9zwbFs4Jls9gkaUgW5jluw==","signatures":[{"sig":"MEQCICYigTJmlyVuj9t61ryFJBBVFOci91j7GV2zGvsMzXuJAiAjChIkQsBH1qj6iPGQk22pDHeCM9G+SXw5cvMKAd1dEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8991},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"fe2ebdb90e4429755b38dedc4e3ebeddbc03283b","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.7_1683819499603_0.6945021171882793","host":"s3://npm-registry-packages"}},"2.1.8-alpha.1":{"name":"@web3-onboard/gas","version":"2.1.8-alpha.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.8-alpha.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"2d846d4d148ab9f0ea0eb86f728c2648fc9d484f","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.8-alpha.1.tgz","fileCount":14,"integrity":"sha512-3Y5SNMvX1LgsHvQkRjIU/eLMyRNtzFGDFh1h6+ahNbNm3dMLG0Kgjyq6uhSWDlCk1QxtMqzGOWsYooz2jh/hEA==","signatures":[{"sig":"MEQCIHtJT+EVcc9E1Rk7oZe0RE+ErwtXjmFBEehHDQz7LQB8AiA2JB7ENJQWn68mwrFeqp2hBQg1ao0ZAiIloHgwd128BA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9007},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://onboard.blocknative.com/docs/packages/gas).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"820cf0015bb2f809cca3dd50dc1cb9a81f5798b3","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.3-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.8-alpha.1_1684514320281_0.6833843672027764","host":"s3://npm-registry-packages"}},"2.1.8":{"name":"@web3-onboard/gas","version":"2.1.8","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.1.8","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"394572e9f97f150bab2dcef054735f0da51f238d","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.1.8.tgz","fileCount":14,"integrity":"sha512-me0vWCP4rB3STeaS773WOzfSI61A3nss0a+SkrKmgKrvrqSSmmXB6orO2wqUrESBJqEK6V8G8p0FU8nG/BYBFQ==","signatures":[{"sig":"MEQCIAKX6KlN6KWmtIflpF9zpkcPUHR/o9bbMrmMyp8YolnHAiAk8ouGhQ9okfGCLe3Kx3g/O5BxEpZOBaKF/cORnFaR1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8991},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"307c3b88cd9df396986b323a2545ef1ea2373d06","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.8.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.3.3"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.1.8_1684529463792_0.15129167765332974","host":"s3://npm-registry-packages"}},"2.2.0-viem.1":{"name":"@web3-onboard/gas","version":"2.2.0-viem.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.2.0-viem.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"37bc8f665e941aeca6a71db5d52638cafe4fe437","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.2.0-viem.1.tgz","fileCount":14,"integrity":"sha512-HqJSrnR8oHDo1rCvfuOtdQg26N3+JZEO2BXAdqF6+PWqqHojL6jvdzPfBnum3GmJX//yEM2LaO3c2x7CU+8eyw==","signatures":[{"sig":"MEYCIQCXVHC4XCGeVamUfoTmg2UPWM1/f29JJME2QYtQvjwmQwIhAJUU8IjMcVXI14lbRk0o5POiXRQvW5+xwvUtijxfqeeI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9012},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-prediction/gas-platform).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"44619041631661d7af761f9d14bcf26505f9a092","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.9.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.4.0-viem.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.2.0-viem.1_1715619955037_0.3915281227378917","host":"s3://npm-registry-packages"}},"2.2.0-wagmi.1":{"name":"@web3-onboard/gas","version":"2.2.0-wagmi.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.2.0-wagmi.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"ffe71138362d1043f1ff13434c2696890f4a800d","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.2.0-wagmi.1.tgz","fileCount":14,"integrity":"sha512-kGWJQUYJvhUcDaX2/YVr8973yavAcp7+AhJPUL1N4MpTsA5ONR4lg05WBDA+MznhRlepngw87MKVGlARrD7LiA==","signatures":[{"sig":"MEQCIEqXdXPDu7bfWOg4YgVpK8olTjnoBsGEXMsH0q3qvffhAiA7ybFHDFM9G+dykNxiqETA2kmTtr4VokWaJEOmSOWIGg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9014},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-prediction/gas-platform).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"e8b8ec4302ca883b35502bc3e4b2c66719cac131","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.9.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.4.0-wagmi.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.2.0-wagmi.1_1715979090555_0.5444988999245874","host":"s3://npm-registry-packages"}},"2.2.0-wagmi.2":{"name":"@web3-onboard/gas","version":"2.2.0-wagmi.2","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.2.0-wagmi.2","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"763d991c9fcf1358879e3bf132502f386b37a05e","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.2.0-wagmi.2.tgz","fileCount":14,"integrity":"sha512-rRPT7y6wt7QeYBvpAHYKYiitttupZSaWIjadJvkavmjoQ695sylFasyKk+pfocUPRrnZ/kh+c9VYdQSEizTjSQ==","signatures":[{"sig":"MEYCIQCpKyDD/28Q6M7z/ZIRG8BFVku6oiSv89vvkTk9o2WdrwIhAJLYfM6EH3v+unalDYPKc+NiBTUU5mg2zye0zYixsZbB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9014},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-prediction/gas-platform).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"e6257221135e8a48703aba2df2c74d99edb6f599","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.9.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.4.0-wagmi.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.2.0-wagmi.2_1716481534484_0.5771275980350237","host":"s3://npm-registry-packages"}},"2.2.0-alpha.2":{"name":"@web3-onboard/gas","version":"2.2.0-alpha.2","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.2.0-alpha.2","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"be5c324e47cf7fcf06fa5db66e482635b1a0f124","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.2.0-alpha.2.tgz","fileCount":14,"integrity":"sha512-jA5uo/h6pWInK7RzfNezRwr+fwra7y/MK8SdvKHIjHlL5wddpraUBbTkDk4EZlI72VxGX1vd1O7+YD5iPiTR/g==","signatures":[{"sig":"MEYCIQDp5k/W3TQpI9VRTt/p4oY3f/3QjMf4IEy382DA50jROgIhAKLOJhHebHN4rcu2xGBHisDjixT/zxXjLYfjPCSGTCwW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9014},"main":"dist/index.js","type":"module","module":"dist/index.js","readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-prediction/gas-platform).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","browser":"dist/index.js","gitHead":"0fdd0ac59c651686b36d8384db1263aea76611ba","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.9.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.4.0-alpha.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.2.0-alpha.2_1716916873138_0.8203217752735907","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@web3-onboard/gas","version":"2.2.0","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.2.0","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"68f1429a586d879556167dcb479e26dda5184264","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.2.0.tgz","fileCount":14,"integrity":"sha512-6ILydPH832B0/PZhtxgYXsyN+2Voq/XtAoJEb/EMdjL82yDaqpOQJMOcB7o+1wfPlwzGkFRM0nf87EN90aVeZQ==","signatures":[{"sig":"MEUCIH9Dx8mLiFsb+Yc4dT2buS5dQfPQZFuXnS1Ev1w/ZkWwAiEAgNZNN9D4Y8K8n7/mUi11CLBk3junYLfFh5m6VrQMiDc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8998},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"0ea0fed8f810c59788bffacb5ffba1f21b434e53","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.9.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.4.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.2.0_1717178325480_0.43645199968801207","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"@web3-onboard/gas","version":"2.2.1","keywords":["gas","Ethereum","Polygon"],"license":"MIT","_id":"@web3-onboard/gas@2.2.1","maintainers":[{"name":"aaronbarnard1","email":"aaron@blocknative.com"},{"name":"cmeisl","email":"chris@blocknative.com"}],"homepage":"https://onboard.blocknative.com","bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"dist":{"shasum":"f0444ac257868155f4ee06c83185aba7abf09f02","tarball":"https://registry.npmjs.org/@web3-onboard/gas/-/gas-2.2.1.tgz","fileCount":14,"integrity":"sha512-B7JXnr4DVgLzlLrF8iWJ3nrr46CiDSyG7swGkRtwf4BTkENSXvIGy+jG91LCFr3Qd/Z4aX8tFndnrI1hhw1RUQ==","signatures":[{"sig":"MEUCIBXjTdJNF35abNRMbo3eO2CGlZKhWWr4SNhdI4gIqnXDAiEAp8FXvyz62sSS8qgJwLm50dgDCZKIk+y6Vh35sdByOgE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8998},"main":"dist/index.js","type":"module","module":"dist/index.js","browser":"dist/index.js","gitHead":"be9328cc17641ff1313a9e991e4ad668f2effd49","scripts":{"dev":"tsc -w","build":"tsc","type-check":"tsc --noEmit"},"typings":"dist/index.d.ts","_npmUser":{"name":"cmeisl","email":"chris@blocknative.com"},"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"_npmVersion":"8.1.2","description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"joi":"17.9.1","rxjs":"^7.5.2","@web3-onboard/common":"^2.4.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/gas_2.2.1_1717611251877_0.06365295027229356","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-07-26T18:25:43.956Z","modified":"2026-01-13T02:53:12.987Z","2.0.0-alpha.1":"2022-07-26T18:25:44.272Z","2.0.0-alpha.2":"2022-07-27T19:14:27.641Z","2.0.0":"2022-08-01T22:53:23.015Z","2.1.0":"2022-08-19T02:09:18.117Z","2.1.1-alpha.1":"2022-08-22T23:38:37.558Z","2.1.1":"2022-08-24T22:29:49.713Z","2.1.2-alpha.1":"2022-09-02T21:14:43.033Z","2.1.2":"2022-09-06T22:21:29.277Z","2.1.3-alpha.1":"2022-09-22T21:39:57.671Z","2.1.3":"2022-09-26T22:19:43.202Z","2.1.4-alpha.1":"2022-10-26T22:18:39.364Z","2.1.4":"2022-10-28T19:35:40.632Z","2.1.5-alpha.1":"2023-03-20T21:40:21.162Z","2.1.5-alpha.2":"2023-03-24T17:32:26.234Z","2.1.5":"2023-03-28T17:11:39.417Z","2.1.6-alpha.1":"2023-04-06T20:32:21.709Z","2.1.6":"2023-04-07T14:43:22.653Z","2.1.7-alpha.1":"2023-05-08T15:16:19.193Z","2.1.7-alpha.2":"2023-05-09T17:02:50.084Z","2.1.7":"2023-05-11T15:38:19.780Z","2.1.8-alpha.1":"2023-05-19T16:38:40.474Z","2.1.8":"2023-05-19T20:51:03.962Z","2.2.0-viem.1":"2024-05-13T17:05:55.311Z","2.2.0-wagmi.1":"2024-05-17T20:51:30.718Z","2.2.0-wagmi.2":"2024-05-23T16:25:34.625Z","2.2.0-alpha.2":"2024-05-28T17:21:13.281Z","2.2.0":"2024-05-31T17:58:45.636Z","2.2.1":"2024-06-05T18:14:12.043Z"},"bugs":{"url":"https://github.com/blocknative/web3-onboard/issues"},"license":"MIT","homepage":"https://onboard.blocknative.com","keywords":["gas","Ethereum","Polygon"],"repository":{"url":"git+https://github.com/blocknative/web3-onboard.git","type":"git","directory":"packages/gas"},"description":"Estimate the gas prices needed to get a transaction in to the next block for Ethereum Mainnet and Polygon Matic Mainnet.","maintainers":[{"email":"npm@thirdweb.com","name":"jake-thirdweb"},{"email":"npm@jakeloo.me","name":"jakeloo"}],"readme":"# @web3-onboard/gas\n\n## A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-prediction/gas-platform).\n\nSupports both Eth Mainnet and Polygon gas pricing.\n\n### Install\n\n**NPM**\n`npm i @web3-onboard/gas`\n\n**Yarn**\n`yarn add @web3-onboard/gas`\n\n### Standalone Setup\n\n```typescript\nimport gas from '@web3-onboard/gas'\n\n// subscribe to a single chain for estimates using the default poll rate of 5 secs\n// API key is optional and if provided allows for faster poll rates\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n\nconst { unsubscribe: ethGasUnsub } = ethMainnetGasBlockPrices.subscribe(\n  estimates => console.log(estimates)\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(ethGasUnsub, 10000)\n\n// OR you can subscribe to multiple chains at once:\nconst gasBlockPrices = gas.stream({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices',\n  // can override default poll rate as well\n  poll: 1000\n})\n\nconst { unsubscribe } = gasBlockPrices.subscribe(estimates =>\n  console.log(estimates)\n  console.log(estimates[0].blockPrices[0].estimatedPrice)\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  console.log(bnGasPrices.find(gas => gas.confidence === 90))\n)\n\n// .... sometime later, unsubscribe to stop polling\nsetTimeout(unsubscribe, 10000)\n\n// Can also just do a one time get rather than a stream\nconst gasBlockPrices = await gas.get({\n  chains: ['0x1', '0x89'],\n  apiKey: '<OPTIONAL_API_KEY>',\n  endpoint: 'blockPrices'\n})\n```\n\n\n## Usage with Web3-Onboard wallet Connect and Ethers.js\n\nThis example assumes you have already setup web3-onboard to connect wallets to your dapp. \nFor more information see [web3-onboard docs](https://onboard.blocknative.com/docs/modules/core#install).\n```ts\nimport gas from '@web3-onboard/gas'\nimport { ethers } from 'ethers'\n\n// Set provider using the Web3-Onboard wallet.provider instance from the connected wallet\nlet provider = new ethers.providers.Web3Provider(wallet.provider, 'any')\nlet bnGasPrices\n\nconst ethMainnetGasBlockPrices = gas.stream({\n  chains: ['0x1'], // '0x89' can also be added/replaced here for Polygon gas data \n  apiKey: '<OPTIONAL_API_KEY>', // for faster refresh rates\n  endpoint: 'blockPrices'\n})\n\nethMainnetGasBlockPrices.subscribe(estimates => {\n  console.log(estimates)\n  bnGasPrices = estimates[0].blockPrices[0].estimatedPrices\n})\n\n\nconst gweiToWeiHex = gwei => {\n  return `0x${(gwei * 1e9).toString(16)}`\n}\n\nconst sendTransaction = async () => {\n  if (!toAddress) {\n    alert('An Ethereum address to send Eth to is required.')\n    return\n  }\n\n  const signer = provider.getUncheckedSigner()\n  \n  // define desired confidence for transaction inclusion in block and set in transaction\n  // block inclusion confidence options: 70, 80, 90, 95, 99\n  const bnGasForTransaction = bnGasPrices.find(gas => gas.confidence === 90)\n\n  const rc = await signer.sendTransaction({\n    to: toAddress,\n    value: 1000000000000000\n\n    // This will set the transaction gas based on desired confidence\n    maxPriorityFeePerGas: gweiToWeiHex(\n      bnGasForTransaction.maxPriorityFeePerGas\n    ),\n    maxFeePerGas: gweiToWeiHex(bnGasForTransaction.maxFeePerGas)\n  })\n  console.log(rc)\n}\n```\n","readmeFilename":"README.md"}