import"./parse.E7PnpR0O.js";import{_ as i}from"./get.BQyRva31.js";function u(){try{let e;if(arguments.length===3?e=i(arguments[0],arguments[1],arguments[2]):arguments.length===2?e=i(arguments[0],arguments[1],""):arguments.length===1&&(e=arguments[0]),typeof e=="string")return e;throw new Error("A string could not be furnished from the preceeding arguments.")}catch{}return console.warn("A string could not be furnished from these arguments",arguments),""}const m=async({address_hexadecimal_string:e,net_path:c})=>{console.info({net_path:c});var f="0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>";const n=await fetch(`${c}/accounts/${e}/resource/${f}`),r=n.status;if(r===404){const o=await n.json(),t=u(o,["error_code"],""),a=u(o,["message"],"");let s="";return t==="resource_not_found"?s=`${t}

${a}

This might be an address that has 0 transactions associated with it.`:s=`${t}: ${a}`,{error_code:t,effective:"no",exception:s}}return r===400?{effective:"no",exception:await n.text(),error_code:""}:r===200?{effective:"yes",exception:"",error_code:"",Octa_count:(await n.json()).data.coin.value}:{effective:"no",exception:"An exception occurred.",error_code:""}};export{m as a};
//# sourceMappingURL=Count.DnCbBSdj.js.map
