Returns a list of domains owned by the specified wallet address
Profile API (1.0.0)
The Profile API allows clients to retrieve and update domain profile details. There are both public and authenticated endpoints available for domain profiles. For authenticated endpoints, the API requires request signatures generated using the domain owner's private key.
These endpoints are available without any authentication.
- Retrieve public profile data associated with a domain
- Domain owner controls which fields are public or private
- Private data is always the default
- Retrieve NFTs for addresses associated with domain
- Domain can have any number of blockchain addresses associated for resolution services
- Resolution addresses are stored on-chain
- Query on-chain data for NFTs
- Retrieve badges data for addresses associated with domain
- Retrieve the following status of two domains
The owner of a domain may use this API to view or edit their private profile data. When managing profile data, authentication headers must be provided using the approach described below.
- Determine the message that must be signed through the message generator endpoint
- Request GET /api/user/{domain}/signature?device=true&expiry={timestamp}
- Replace '{domain}' with desired domain
- Replace '{expiry}' with desired Unix epoch timestamp
- Response contains the message that must be signed
- Message is a unique hash value
- Represents combination of provided request parameters
- Includes an expiration timestamp
- Request GET /api/user/{domain}/signature?device=true&expiry={timestamp}
- User must sign the message returned by the message generator API
- For example, the Metamask wallet could be used to sign the message
- Generated signature is used in header of subsequent GET or POST request
- Construct a request to the desired endpoint that requires user authentication
- Must include headers
- x-auth-domain - Must equal the {domain} in context
- x-auth-expiration - Must equal the {expiry} timestamp in the signed message
- x-auth-signature - Must be set to the value of the user generated signature
- Must include headers
- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/domains
- Staginghttps://api.ud-staging.com/profile/user/{address}/domains
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/profile/user/{address}/domains?take=0&cursor=string'{ "data": [ { … } ], "meta": { "total_count": 0, "pagination": { … } }, "relationship_type": "followers", "domain": "string" }
Comma separated list of ticker symbols to query NFT collections data. For example an EVM address may be provided, which may specify multiple chains. The symbols=MATIC would indicate only Polygon data is requested. Omitting the symbols parameter will return data for all blockchains associated with the address.
- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/nfts/collections
- Staginghttps://api.ud-staging.com/profile/user/{address}/nfts/collections
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/profile/user/1.0392900530713021e+47/nfts/collections?symbols=ETH%2CMATIC%2CSOL' \
-H 'Authorization: my-jwt-access-token'{ "SYMBOL": [ { … } ] }
Comma separated list of ticker symbols to query NFT data. For example an EVM address may be provided, which may specify multiple chains. The symbols=MATIC would indicate only Polygon data is requested. Omitting the symbols parameter will return data for all blockchains associated with the address.
- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/nfts
- Staginghttps://api.ud-staging.com/profile/user/{address}/nfts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/profile/user/{address}/nfts?symbols=ETH%2CMATIC%2CSOL&collection=unstoppable-domains&limit=50&cursor=desiredPage' \
-H 'Authorization: my-jwt-access-token'{ "SYMBOL": { "property1": { … }, "property2": { … } } }
Comma separated list of ticker symbols to query transaction data. For example an EVM address may be provided, which may specify multiple chains. The symbols=MATIC would indicate only Polygon data is requested. Omitting the symbols parameter will return data for all blockchains associated with the address.
The paging cursor used in combination with the limit parameter
- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/transactions
- Staginghttps://api.ud-staging.com/profile/user/{address}/transactions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/profile/user/{address}/transactions?symbols=ETH%2CMATIC&cursor=desiredPage&forceRefresh=1707491939' \
-H 'Authorization: my-jwt-access-token'[ { "data": [ … ], "cursor": 123 } ]
- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/wallet/rpc
- Staginghttps://api.ud-staging.com/profile/user/{address}/wallet/rpc
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X POST \
'https://api.unstoppabledomains.com/profile/user/{address}/wallet/rpc' \
-H 'Authorization: my-jwt-access-token'- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/wallet/simulate
- Staginghttps://api.ud-staging.com/profile/user/{address}/wallet/simulate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X POST \
'https://api.unstoppabledomains.com/profile/user/{address}/wallet/simulate' \
-H 'Authorization: my-jwt-access-token' \
-H 'Content-Type: application/json' \
-d '{
"serializedTx": 291
}'[ { "success": true, "logs": [ … ], "results": { … }, "errorMessage": "An error message" } ]
- Productionhttps://api.unstoppabledomains.com/profile/user/{address}/wallets
- Staginghttps://api.ud-staging.com/profile/user/{address}/wallets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
curl -i -X GET \
'https://api.unstoppabledomains.com/profile/user/{address}/wallets?verbose=true&forceRefresh=1707491939&walletFields=native%2Cnft%2Cstats%2Ctoken%2Ctx' \
-H 'Authorization: my-jwt-access-token'[ { "firstTx": "2023-05-08T20:04:47.000Z", "lastTx": "2023-09-06T13:28:47.000Z", "symbol": "MATIC", "address": 1.1706481464129065e+48, "type": "native", "name": "Polygon", "logoUrl": "http://host.io/path/to/logo", "balance": 10, "tokens": [ … ], "nfts": [ … ], "txns": { … }, "totalValueUsd": 200, "totalValueUsdAmd": 200, "walletType": "external", "value": { … } } ]