ENS

Examples

Note

These examples are crafted as a Jupyter notebook. You can download the original notebook file here.

Also note that inside Jupyter notebooks, await can be used freely outside of asyncio.run().

ens

Reference

async ctc.protocols.ens_utils.async_get_expiration(name)
Return type

int

async ctc.protocols.ens_utils.async_get_owner(name, *, provider=None, block=None)
async ctc.protocols.ens_utils.async_get_registration_block(name)
Return type

int

async ctc.protocols.ens_utils.async_get_registrations()
async ctc.protocols.ens_utils.async_get_text_records(*, name=None, node=None, keys=None)

https://docs.ens.domains/ens-improvement-proposals/ensip-5-text-records

Return type

dict[str, str]

async ctc.protocols.ens_utils.async_record_exists(name, *, provider=None, block=None)
async ctc.protocols.ens_utils.async_reverse_lookup(address, *, provider=None, block=None)
ctc.protocols.ens_utils.hash_name(name)