From de2d482cac9f58e01db08109c21c77da6099e2ec Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Tue, 3 Sep 2024 13:38:24 +0200 Subject: [PATCH 1/2] feat(blockchainAPI): optional chainId for the identity --- docs/specs/servers/blockchain/blockchain-api.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/specs/servers/blockchain/blockchain-api.md b/docs/specs/servers/blockchain/blockchain-api.md index f3a50310..47563d88 100644 --- a/docs/specs/servers/blockchain/blockchain-api.md +++ b/docs/specs/servers/blockchain/blockchain-api.md @@ -6,10 +6,15 @@ Used to lookup ENS name and avatar for the Ethereum address. -`GET /v1/identity/{address}?projectId={projectId}` +`GET /v1/identity/{address}` + +* `address` - Ethereum address to lookup for the ENS name and avatar. + +#### Query parameters: -* `address` - (Optional) Ethereum address to lookup for the ENS name and avatar. * `projectId` - The project identifier. +* `chainId` - (Optional) CAIP-2 chain identifier to use for the address. +If it's not set the Ethereum mainnet and ENS resolution is used. #### Success response body: @@ -25,7 +30,7 @@ Used to lookup ENS name and avatar for the Ethereum address. #### Response error codes: -* `400 Bad request` - Wrong requested address format. +* `400 Bad request` - Wrong requested address format or unsupported chain ID. ## Hexless account profiles API From 087812778947680d00036f5385387c1f78e8d545 Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Tue, 3 Sep 2024 14:37:21 +0200 Subject: [PATCH 2/2] fix: removing ENS from the identity --- docs/specs/servers/blockchain/blockchain-api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/specs/servers/blockchain/blockchain-api.md b/docs/specs/servers/blockchain/blockchain-api.md index 47563d88..66979144 100644 --- a/docs/specs/servers/blockchain/blockchain-api.md +++ b/docs/specs/servers/blockchain/blockchain-api.md @@ -1,14 +1,14 @@ # Blockchain API -## Identity ENS lookups +## Identity name lookups -### ENS Name lookup +### Name lookup -Used to lookup ENS name and avatar for the Ethereum address. +Used to lookup name and avatar for the provided address. `GET /v1/identity/{address}` -* `address` - Ethereum address to lookup for the ENS name and avatar. +* `address` - The address to lookup for the name and avatar. #### Query parameters: @@ -25,7 +25,7 @@ If it's not set the Ethereum mainnet and ENS resolution is used. } ``` -* `name` - Registered address ENS name. +* `name` - Registered address for the name. * `avatar` - URI of the avatar of presented. #### Response error codes: