{"slug":"api-macaroonnetwork-com-execute-ens-lookup-v1-00fd7c","title":"ENS and Basenames lookup in one call","host":"api.macaroonnetwork.com","method":"POST","resource":"https://api.macaroonnetwork.com/execute/ens-lookup-v1","category":"code","description":"ENS and Basenames lookup in one call: a name to its address (Ethereum or Base coin type), or an address to its primary name, returned only when that name resolves back to the same address. Handles subnames, wildcards and offchain names such as *.base.eth via CCIP-Read, pinned to a stated block. Add ","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":330,"reported_calls_30d":4,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"input":{"name":"vitalik.eth"},"predicate":{"conditions":[{"field":"$.query_type","operator":"in","type":"field_changed","value":["forward","reverse"]},{"field":"$.ethereum_block_number","operator":"gte","type":"field_changed","value":1},{"field":"$.resolved","operator":"in","type":"field_changed","value":[true,false]},{"field":"$.limitations","type":"count_gte","value":1},{"duration_hours":1,"field":"$.retrieved_at","type":"within"}],"type":"all"}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":342,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":323,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":329,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":323,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":330,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":349,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":348,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":348,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":344,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":338,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":345,"error":null}],"description_full":"ENS and Basenames lookup in one call: a name to its address (Ethereum or Base coin type), or an address to its primary name, returned only when that name resolves back to the same address. Handles subnames, wildcards and offchain names such as *.base.eth via CCIP-Read, pinned to a stated block. Add resolved=true to your predicate to pay only for found results.","last_updated":"2026-11-22T08:01:31.1Z","schemes":["exact"]}