w3name
Version:
The JavaScript API client for w3name
3 lines (2 loc) • 330 B
JavaScript
import{throttledQueue as t}from"throttled-queue";class e{endpoint;waitForRateLimit;constructor(e=new URL("https://name.web3.storage/"),a=function(){const e=t({maxPerInterval:30,interval:1e4});return async()=>await e((()=>{}))}()){this.endpoint=e,this.waitForRateLimit=a}}export{e as default};
//# sourceMappingURL=service.mjs.map