Domain To Addresses

Query blockchain addresses that are associated with a domain

beta

Supported Networks:

  • Ethereum: chain_id: "0x1"

All requests require an API key. Add "x-api-key" to your request header as shown in the example below.

Don't have an API key? Contact us to get one.

post

Query for blockchain addresses associated with a URL

Body
urlstringOptionalExample: https://blockfence.io/
pageintegerOptionalExample: 1
Responses
200
Successful operation
application/json
post
POST /api/v1/url-to-addresses HTTP/1.1
Host: api.blockfence.io
Content-Type: application/json
Accept: */*
Content-Length: 41

{
  "url": "https://blockfence.io/",
  "page": 1
}
{
  "addresses": [
    {
      "blockchain_address": "0x8904E3E9eaB00F64458845d32Ea22b2279fda1f7",
      "chain_id": "0x1"
    }
  ],
  "page": 1,
  "page_count": 1
}

This API returns at max 50 results per call. Check the response for page and page_count to query the rest of the results.

Request Body Parameters

Parameter Name
Parameter Type
Comments

url

string

Domain / URL

page

int (optional)

Page number (for pagination purposes)

Usage Example

curl https://api.blockfence.io/api/v1/url-to-addresses -X POST -H "Content-Type: application/json" -H "x-api-key: <YOUR API KEY>" -d '
{
    "url": "https://thesandbox.gwnfts.com",
    "page": 1
}
'

Last updated

Was this helpful?