import{dt as e}from"./useActiveWallet-CEs8euQ3.js";import{i as t,n}from"./_esm.js";var r=async({chain:r,address:a,appId:o,rpcConfig:s,erc20Address:c})=>({balance:await t({chain:r,transport:n(e(r,s,o))}).readContract({address:c,abi:i,functionName:`balanceOf`,args:[a]}).catch((()=>0n)),chain:r}),i=[{constant:!0,inputs:[{name:`_owner`,type:`address`}],name:`balanceOf`,outputs:[{name:`balance`,type:`uint256`}],payable:!1,stateMutability:`view`,type:`function`}];export{r as t};