const tokenAddress = '0x29Ede1E1254419Fe5a3c803fC2b015042075A49A';const res = await fetch(`https://lfg.rich/api/bsc/tokens/${tokenAddress}`);const json = await res.json();if (!json.success || !json.data) throw new Error('Token not found');console.log(json.data.pool_id);console.log(json.data.current_price);console.log(json.data.floor_price);
The pool_id field is important for V5. Use it for Hook reads and estimates. If it is missing in an external integration, resolve it with hook.tokenToPoolId(tokenAddress).
const res = await fetch('https://lfg.rich/api/bsc/tokens/jsonconfig/contracts');const json = await res.json();if (!json.success) throw new Error(json.error || 'Failed to fetch JSON ABI config');console.log(json.data.hookABI);
Use this only when your tool requires canonical JSON ABI objects.