evm_api.resolve
evm_api.resolve.resolve_address()
Reverse resolve a given ETH address to its ENS domain.
from moralis import evm_api
api_key = "YOUR_API_KEY"
params = {
"address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
}
result = evm_api.resolve.resolve_address(
api_key=api_key,
params=params,
)
print(result)
Name | Type | Description | Required | Default | Example |
---|---|---|---|---|---|
address | str | The address to be resolved | Yes | “0xd8da6bf26964af9d7eed9e03e53415d37aa96045” |
evm_api.resolve.resolve_address_to_domain()
Resolve a specific address to its Unstoppable domain
from moralis import evm_api
api_key = "YOUR_API_KEY"
params = {
"address": "0x94ef5300cbc0aa600a821ccbc561b057e456ab23",
"currency": "eth",
}
result = evm_api.resolve.resolve_address_to_domain(
api_key=api_key,
params=params,
)
print(result)
Name | Type | Description | Required | Default | Example |
---|---|---|---|---|---|
address | str | The address to be resolved | Yes | “0x94ef5300cbc0aa600a821ccbc561b057e456ab23” | |
currency | enum[str]: - “eth” - “0x1” |
The currency to query | “eth” | “eth” |
evm_api.resolve.resolve_domain()
Resolve a specific Unstoppable domain to its address.
from moralis import evm_api
api_key = "YOUR_API_KEY"
params = {
"domain": "brad.crypto",
"currency": "eth",
}
result = evm_api.resolve.resolve_domain(
api_key=api_key,
params=params,
)
print(result)
Name | Type | Description | Required | Default | Example |
---|---|---|---|---|---|
domain | str | The domain to be resolved | Yes | “brad.crypto” | |
currency | enum[str]: - “eth” - “0x1” |
The currency to query | “eth” | “eth” |
evm_api.resolve.resolve_ens_domain()
Resolve a specific ENS domain to its address.
from moralis import evm_api
api_key = "YOUR_API_KEY"
params = {
"domain": "vitalik.eth",
}
result = evm_api.resolve.resolve_ens_domain(
api_key=api_key,
params=params,
)
print(result)
Name | Type | Description | Required | Default | Example |
---|---|---|---|---|---|
domain | str | The domain to be resolved | Yes | “vitalik.eth” |