PageSourceSearch

https://chat.libertai.io/assets/getBalance-BmOjZKxg.js

js libertai.io collected 2026-09-28 12:17:01 UTC 483 bytes, 1 lines download raw bytes

1import{ae as c,bi as r}from"./index-B4URaMw_.js";import{getCurrencyMetadata as n}from"./getCurrencyMetadata-D9qIwl7d.js";const s="0x70a08231",d=[{name:"_address",type:"address"}],o=[{type:"uint256"}];async function i(a){return c({contract:a.contract,method:[s,d,o],params:[a.address]})}async function u(a){const[e,t]=await Promise.all([i(a),n(a)]);return{...t,chainId:a.contract.chain.id,displayValue:r(e,t.decimals),tokenAddress:a.contract.address,value:e}}export{u as getBalance};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.