@ensnode/ensnode-sdk 0.0.0-next-20260525063051 → 0.0.0-next-20260525092046

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.
Files changed (2) hide show
  1. package/README.md +21 -9
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -13,6 +13,7 @@ npm install @ensnode/ensnode-sdk
13
13
  ## EnsNodeClient
14
14
 
15
15
  The `EnsNodeClient` provides a unified interface for the ENSNode REST APIs:
16
+
16
17
  - Resolution API (Protocol Accelerated Forward/Reverse Resolution)
17
18
  - Indexing Status API
18
19
 
@@ -31,7 +32,10 @@ const { records } = await client.resolveRecords("jesse.base.eth", {
31
32
  });
32
33
 
33
34
  // Resolution API: Primary Name Resolution
34
- const { name } = await client.resolvePrimaryName("0x179A862703a4adfb29896552DF9e307980D19285", mainnet.id);
35
+ const { name } = await client.resolvePrimaryName(
36
+ "0x179A862703a4adfb29896552DF9e307980D19285",
37
+ mainnet.id,
38
+ );
35
39
  // name === 'gregskril.eth'
36
40
 
37
41
  // Resolution API: Primary Names Resolution
@@ -57,9 +61,8 @@ The returned `name` field, if set, is guaranteed to be a [Normalized Name](https
57
61
  - `trace`: (optional) Whether to include a trace in the response (default: false)
58
62
  - `accelerate`: (optional) Whether to attempt Protocol Acceleration (default: false)
59
63
 
60
-
61
64
  ```ts
62
- import { mainnet, base } from 'viem/chains';
65
+ import { mainnet, base } from "viem/chains";
63
66
 
64
67
  const { records } = await client.resolveRecords("greg.base.eth", {
65
68
  // Resolve ETH Mainnet Address (if set) and Base Address (if set)
@@ -95,19 +98,28 @@ The returned Primary Name, if set, is guaranteed to be a [Normalized Name](https
95
98
  - `accelerate`: (optional) Whether to attempt Protocol Acceleration (default: false)
96
99
 
97
100
  ```ts
98
- import { mainnet, base } from 'viem/chains';
99
- import { DEFAULT_EVM_CHAIN_ID } from '@ensnode/ensnode-sdk';
101
+ import { mainnet, base } from "viem/chains";
102
+ import { DEFAULT_EVM_CHAIN_ID } from "@ensnode/ensnode-sdk";
100
103
 
101
104
  // Resolve the address' Primary Name on Ethereum Mainnet
102
- const { name } = await client.resolvePrimaryName("0x179A862703a4adfb29896552DF9e307980D19285", mainnet.id);
105
+ const { name } = await client.resolvePrimaryName(
106
+ "0x179A862703a4adfb29896552DF9e307980D19285",
107
+ mainnet.id,
108
+ );
103
109
  // name === 'gregskril.eth'
104
110
 
105
111
  // Resolve the address' Primary Name on Base
106
- const { name } = await client.resolvePrimaryName("0x179A862703a4adfb29896552DF9e307980D19285", base.id);
112
+ const { name } = await client.resolvePrimaryName(
113
+ "0x179A862703a4adfb29896552DF9e307980D19285",
114
+ base.id,
115
+ );
107
116
  // name === 'greg.base.eth'
108
117
 
109
118
  // Resolve the address' Default Primary Name
110
- const { name } = await client.resolvePrimaryName("0x179A862703a4adfb29896552DF9e307980D19285", DEFAULT_EVM_CHAIN_ID);
119
+ const { name } = await client.resolvePrimaryName(
120
+ "0x179A862703a4adfb29896552DF9e307980D19285",
121
+ DEFAULT_EVM_CHAIN_ID,
122
+ );
111
123
  // name === 'gregskril.eth'
112
124
  ```
113
125
 
@@ -124,7 +136,7 @@ Each returned Primary Name, if set, is guaranteed to be a [Normalized Name](http
124
136
  - `accelerate`: (optional) Whether to attempt Protocol Acceleration (default: false)
125
137
 
126
138
  ```ts
127
- import { mainnet, base } from 'viem/chains';
139
+ import { mainnet, base } from "viem/chains";
128
140
 
129
141
  // Resolve an address' Primary Names on all ENSIP-19 supported chain ids
130
142
  const { names } = await client.resolvePrimaryNames("0x179A862703a4adfb29896552DF9e307980D19285");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensnode/ensnode-sdk",
3
- "version": "0.0.0-next-20260525063051",
3
+ "version": "0.0.0-next-20260525092046",
4
4
  "type": "module",
5
5
  "description": "A utility library for interacting with ENSNode and ENS data",
6
6
  "license": "MIT",
@@ -52,15 +52,15 @@
52
52
  "typescript": "^5.7.3",
53
53
  "viem": "^2.50.3",
54
54
  "vitest": "^4.0.2",
55
- "@ensnode/shared-configs": "0.0.0-next-20260525063051"
55
+ "@ensnode/shared-configs": "0.0.0-next-20260525092046"
56
56
  },
57
57
  "dependencies": {
58
58
  "@ensdomains/address-encoder": "^1.1.2",
59
59
  "caip": "1.1.1",
60
60
  "date-fns": "4.1.0",
61
61
  "zod": "^4.3.6",
62
- "@ensnode/datasources": "0.0.0-next-20260525063051",
63
- "enssdk": "0.0.0-next-20260525063051"
62
+ "@ensnode/datasources": "0.0.0-next-20260525092046",
63
+ "enssdk": "0.0.0-next-20260525092046"
64
64
  },
65
65
  "scripts": {
66
66
  "prepublish": "tsup",