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-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
},
"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-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
},
"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-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
},
"updatedAt": "2024-12-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
},
"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-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
},
"walletId": "text",
"updatedAt": "2024-12-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
}
],
"nonce": 0,
"currentSignature": "text",
"previousSignature": "text",
"isContract": false,
"syncedAt": "2024-12-10T15:31:29.130Z",
"createdAt": "2024-12-10T15:31:29.130Z"
},
"status": 0,
"timestamp": "2024-12-10T15:31:29.130Z"
}