ENS

Examples

ens

Reference

async ctc.protocols.ens_utils.async_get_expiration(name)
Parameters

name (<class 'str'>) –

Return type

<class ‘int’>

async ctc.protocols.ens_utils.async_get_owner(name, provider=None, block=None)
Parameters
  • name (str) –

  • provider (ProviderSpec) –

  • block (BlockNumberReference | None) –

Return type

str

async ctc.protocols.ens_utils.async_get_registration_block(name)
Parameters

name (<class 'str'>) –

Return type

<class ‘int’>

async ctc.protocols.ens_utils.async_get_registrations()
Return type

Any

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

Parameters
  • name (str | None) –

  • node (str | None) –

  • keys (Sequence[str] | None) –

Return type

dict[str, str]

async ctc.protocols.ens_utils.async_record_exists(name, provider=None, block=None)
Parameters
  • name (str) –

  • provider (ProviderSpec) –

  • block (BlockNumberReference | None) –

Return type

bool

async ctc.protocols.ens_utils.async_reverse_lookup(address, provider=None, block=None)
Parameters
  • address (Address) –

  • provider (ProviderSpec) –

  • block (BlockNumberReference | None) –

Return type

str

ctc.protocols.ens_utils.hash_name(name)
Parameters

name (<class 'str'>) –

Return type

<class ‘str’>