var b=Object.create;var p=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var A=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},s=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!u.call(t,n)&&n!==o&&p(t,n,{get:()=>e[n],enumerable:!(r=k(e,n))||r.enumerable});return t};var C=(t,e,o)=>(o=t!=null?b(f(t)):{},s(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),y=t=>s(p({},"__esModule",{value:!0}),t);var m=(t,e,o)=>new Promise((r,n)=>{var h=a=>{try{i(o.next(a))}catch(d){n(d)}},P=a=>{try{i(o.throw(a))}catch(d){n(d)}},i=a=>a.done?r(a.value):Promise.resolve(a.value).then(h,P);i((o=o.apply(t,e)).next())});var D={};A(D,{scanTransaction:()=>_});module.exports=y(D);var l=C(require("axios"),1);var c=require("react"),I=require("react/jsx-runtime"),B=(0,c.createContext)(void 0),v="production";var x=v==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var _=(t,e)=>m(void 0,null,function*(){try{return(yield l.default.post(`${x}/transaction/scan`,e,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}});0&&(module.exports={scanTransaction});
