import{createPublicClient as a,http as t}from"viem";import{a as e}from"./getPublicClient-D4yNgeGy.mjs";const n=async({chain:n,address:s,appId:c,rpcConfig:i,erc20Address:o})=>{let p=a({chain:n,transport:t(e(n,i,c))});return{balance:await p.readContract({address:o,abi:r,functionName:"balanceOf",args:[s]}).catch((()=>0n)),chain:n}};let r=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}];export{n as g};
//# sourceMappingURL=getErc20Balance-Bkuf9-pm.mjs.map
