@ensnode/ensnode-sdk 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.d.ts +471 -46
- package/dist/index.js +413 -56
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -48,6 +48,8 @@ const { names } = await client.resolvePrimaryNames("0x179A862703a4adfb29896552DF
|
|
|
48
48
|
|
|
49
49
|
Resolves records for an ENS name (Forward Resolution), via ENSNode, which implements Protocol Acceleration for indexed names.
|
|
50
50
|
|
|
51
|
+
The returned `name` field, if set, is guaranteed to be a [Normalized Name](https://ensnode.io/docs/reference/terminology#normalized-name). If the name record returned by the resolver is not normalized, `null` is returned as if no name record was set.
|
|
52
|
+
|
|
51
53
|
- `name`: The ENS Name whose records to resolve
|
|
52
54
|
- `selection`: Optional selection of Resolver records:
|
|
53
55
|
- `addresses`: Array of coin types to resolve addresses for
|
|
@@ -85,6 +87,8 @@ console.log(records);
|
|
|
85
87
|
|
|
86
88
|
Resolves the primary name of the provided `address` on the specified `chainId`, via ENSNode, which implements Protocol Acceleration for indexed names. If the `address` specifies a valid [ENSIP-19 Default Name](https://docs.ens.domains/ensip/19/#default-primary-name), the Default Name will be returned. You _may_ query the Default EVM Chain Id (`0`) in order to determine the `address`'s Default Name directly.
|
|
87
89
|
|
|
90
|
+
The returned Primary Name, if set, is guaranteed to be a [Normalized Name](https://ensnode.io/docs/reference/terminology#normalized-name). If the primary name set for the address is not normalized, `null` is returned as if no primary name was set.
|
|
91
|
+
|
|
88
92
|
- `address`: The Address whose Primary Name to resolve
|
|
89
93
|
- `chainId`: The chain id within which to query the address' ENSIP-19 Multichain Primary Name
|
|
90
94
|
- `options`: (optional) additional options
|
|
@@ -112,6 +116,8 @@ const { name } = await client.resolvePrimaryName("0x179A862703a4adfb29896552DF9e
|
|
|
112
116
|
|
|
113
117
|
Resolves the primary names of the provided `address` on the specified chainIds, via ENSNode, which implements Protocol Acceleration for indexed names. If the `address` specifies a valid [ENSIP-19 Default Name](https://docs.ens.domains/ensip/19/#default-primary-name), the Default Name will be returned for all chainIds for which there is not a chain-specific Primary Name. To avoid misuse, you _may not_ query the Default EVM Chain Id (`0`) directly, and should rely on the aforementioned per-chain defaulting behavior.
|
|
114
118
|
|
|
119
|
+
Each returned Primary Name, if set, is guaranteed to be a [Normalized Name](https://ensnode.io/docs/reference/terminology#normalized-name). If the primary name set for the address on any chain is not normalized, `null` is returned for that chain as if no primary name was set.
|
|
120
|
+
|
|
115
121
|
- `address`: The Address whose Primary Names to resolve
|
|
116
122
|
- `options`: (optional) additional options
|
|
117
123
|
- `chainIds`: The chain ids within which to query the address' ENSIP-19 Multichain Primary Name (default: all ENSIP-19 supported chains)
|