diff --git a/docs.wrm/cookbook/ens.wrm b/docs.wrm/cookbook/ens.wrm new file mode 100644 index 0000000000..c0ac3896ea --- /dev/null +++ b/docs.wrm/cookbook/ens.wrm @@ -0,0 +1,66 @@ +_section: Cookbook: ENS Recipes @ + +Here is a collection of short, but useful examples of working with +ENS entries. + + +_subsection: Get all Text rectods @ + +Here is a short recipe to get all the text records set for an ENS +name. + +It first queries all ``TextChanged`` events on the resovler, and +uses a MulticallProvider to batch all the ``eth_call`` queries +for each key into a single ``eth_call``. As such, you will need +to install: + +``/home/ricmoo> npm install @ethers-ext/provider-multicall`` + + +_code: Fetching all ENS text records. @lang