ENS
resolveENS
Resolves an ENS name (e.g. vitalik.eth) to its Ethereum address. Returns the resolved address or 404 if the name cannot be resolved.
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "resolveENS",
"params": {
"name": "vitalik.eth"
},
"id": 1
}'import { Spectrum } from '@spectrumnodes/sdk';
const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' });
const result = await spectrum.ens.resolve('vitalik.eth');
console.log(result);{
"jsonrpc": "2.0",
"result": {
"data": {
"name": "vitalik.eth",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
},
"id": 1
}Parameters
| Name | Required | Description |
|---|---|---|
| name | yes | ENS name to resolve e.g. vitalik.eth |
Response Fields
| Field | Type |
|---|---|
data | object |
name | string |
address | string |
Supported Networks
Ethereum
reverseENS
Performs a reverse ENS lookup to find the primary ENS name associated with an Ethereum address.
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "reverseENS",
"params": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
},
"id": 1
}'import { Spectrum } from '@spectrumnodes/sdk';
const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' });
const result = await spectrum.ens.reverse('0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045');
console.log(result);{
"jsonrpc": "2.0",
"result": {
"data": {
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"name": "vitalik.eth"
}
},
"id": 1
}Parameters
| Name | Required | Description |
|---|---|---|
| address | yes | Ethereum address (0x...) e.g. 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
Response Fields
| Field | Type |
|---|---|
data | object |
address | string |
name | string |
Supported Networks
Ethereum