"use strict";var e=require("viem"),a=require("./getPublicClient-CFd_sHBk.js");let t=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}];exports.getErc20Balance=async({chain:n,address:r,appId:c,rpcConfig:i,erc20Address:s})=>{let p=e.createPublicClient({chain:n,transport:e.http(a.getJsonRpcEndpointFromChain(n,i,c))});return{balance:await p.readContract({address:s,abi:t,functionName:"balanceOf",args:[r]}).catch((()=>0n)),chain:n}};
//# sourceMappingURL=getErc20Balance-BS-Z8fp9.js.map
