How to resolve identity?
Check Quickstart for authenticating with API Key
Using API
Using SDK
For Quickstart
Call Resolve Function
Last updated
Check Quickstart for authenticating with API Key
For Quickstart
const id = await fetcch.identity.resolve("satyam@metamask")
// CAN ALSO DO
const id = await fetcch.identity.resolve("satyam.eth")
// OR
const id = await fetcch.identity.resolve("satyam.sol")
// EVEN OR
const id = await fetcch.identity.resolve("satyam.nft")
Last updated
const response = await fetch('https://sandbox-api.fetcch.xyz/v1/identity', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": {
"id": "text",
"identifier": "text",
"providerId": "text",
"provider": {
"id": "text",
"logo": "text",
"apiKey": "text",
"delimiter": "text",
"txHash": "text",
"registry": [
{
"address": "text",
"chainType": "EVM",
"txHash": "text",
"providerId": "text"
}
],
"dataSourceId": 0,
"ownerId": "text",
"updatedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
},
"defaultAddress": "text",
"default": {
"address": "text",
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
},
"chainId": 0,
"isMultisig": false,
"isSmartContractWallet": false,
"walletId": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
},
"updatedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
},
"secondary": [
{
"id": "text",
"address": "text",
"isMultisig": false,
"isSmartContractWallet": false,
"chainId": 0,
"chain": {
"id": 0,
"name": "text",
"symbol": "text",
"icon": "text",
"rpc": [
"text"
],
"type": "EVM",
"shortName": "text",
"infoURL": "text",
"chainId": 0,
"updatedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
},
"walletId": "text",
"updatedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
}
],
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-12-21T14:52:40.570Z",
"createdAt": "2024-12-21T14:52:40.570Z"
},
"status": 0,
"timestamp": "2024-12-21T14:52:40.570Z"
}