chainpeek (Tanod) Lightning invoice decoder
tanod.dev/v1/chain/bolt11/decode
chainpeek (Tanod) Lightning invoice decoder: BOLT11 payment request to amount, payee, payment hash, expiry and route hints. Pure computation. Use when an agent must read a Lightning invoice (lnbc...) before paying it: amount, payee, expiry, payment hash.
POST
https://tanod.dev/v1/chain/bolt11/decodeUptime100% of 5 checks in 30 days
30 days agoToday
Call it from an agent
curl -i -X POST -H 'content-type: application/json' "https://tanod.dev/v1/chain/bolt11/decode" \
-d '{"invoice":"lnbc2500u1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdq5xysxxatsyp3k7enxv4jsxqzpuaztrnwngzn3kdzw5hydlzf03qdgm2hdq27cqv3agm2awhz5se903vruatfhq77w3ls4evs3ch9zw97j25emudupq63nyw24cg27h2rspfj9srp"}'
# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.Example input
{
"invoice": "lnbc2500u1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdq5xysxxatsyp3k7enxv4jsxqzpuaztrnwngzn3kdzw5hydlzf03qdgm2hdq27cqv3agm2awhz5se903vruatfhq77w3ls4evs3ch9zw97j25emudupq63nyw24cg27h2rspfj9srp"
}More from Tanod chainpeekProvider status
- chain.tanod.dev/v1/solana/token-infoGet Solana SPL mint supply, decimals and authorities. Use when an agent needs an SPL token mint's supply, decimals and authorities on Solana.0.002
- tanod.dev/v1/chain/address-poisoningchainpeek (Tanod) address-poisoning check before a token transfer: is the recipient a lookalike (same first and last 4 hex characters) of an address in the sender's history or contacts? Use when an agent is about to send USDC or a token and must check the recipient is not an address-poisoning lookalike.0.002
- tanod.dev/v1/chain/allowanceGet an ERC-20 owner's allowance for a spender, with decimals and an unlimited-approval flag. Read-only. Use when an agent must check how much an ERC-20 spender may take from an owner, and whether it is unlimited.0.002
- tanod.dev/v1/chain/approvalschainpeek (Tanod) live token approvals of a wallet: ERC-20 and Permit2 allowances with risk flags and unsigned revoke transactions, on Base or Ethereum. Use when an agent must list and revoke its wallet's live token approvals, on a schedule or after a risky signature.0.005
- tanod.dev/v1/chain/balanceGet an address's native or ERC-20 balance on Ethereum, Base or Robinhood Chain. Read-only. Use when an agent needs the ETH or ERC-20 balance of an address on Ethereum, Base or Robinhood Chain.0.002
- tanod.dev/v1/chain/blockGet the latest block's number, timestamp, hash, base fee and gas usage on Ethereum, Base or Robinhood Chain. Use when an agent needs the latest block number, timestamp and base fee of Ethereum, Base or Robinhood Chain.0.001
- tanod.dev/v1/chain/block-atFind the last Ethereum or Base block at or before a timestamp, plus the next block. Read-only. Use when an agent must map a date or timestamp to the Ethereum, Base or Robinhood Chain block mined at that time.0.003
- tanod.dev/v1/chain/block-numberGet the latest block number, timestamp and age on Ethereum, Base or Robinhood Chain. Use when an agent needs the latest block number of Ethereum, Base or Robinhood Chain, with its timestamp and age in seconds.0.001
- tanod.dev/v1/chain/callCall an EVM contract read-only with raw hex calldata; returns raw hex output. Use when an agent must read a contract function's return value without sending a transaction.0.002
- tanod.dev/v1/chain/calldataDecode EVM calldata using a signature or return matching selector candidates; lookup hints are unverified. Use when an agent has raw transaction calldata and needs the function and arguments it encodes.0.003
- tanod.dev/v1/chain/candleschainpeek (Tanod) ETH and BTC OHLCV price candles (5m to 1d) computed from on-chain Uniswap v3 swaps on Base. Use when an agent needs ETH or BTC price history as OHLCV candles for charting or backtesting.0.003
- tanod.dev/v1/chain/codeGet deployed bytecode size, Keccak hash and minimal-proxy or delegation detection for an EVM address. Use when an agent must see if an address has contract code: size, hash, EIP-1167 clone or EIP-7702 delegation.0.001
