"use strict";var t=require("viem"),e=require("./getPublicClient-CFd_sHBk.js");let n=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];exports.getErc20TokenInfo=async({address:i,chain:a,rpcConfig:r,privyAppId:s})=>{try{let o=t.createPublicClient({chain:a,transport:t.http(e.getJsonRpcEndpointFromChain(a,r,s))}),[c,l]=await Promise.all([o.readContract({abi:n,address:i,functionName:"symbol"}),o.readContract({abi:n,address:i,functionName:"decimals"})]);return{decimals:l,symbol:c}}catch(t){return console.log(t),null}};
//# sourceMappingURL=getErc20TokenInfo-BAl5vkXC.js.map
