Fetch Identity using Issuer Address
Before you begin
Fetch an identity and its associated content through the issuer's wallet address.
Let's start π
To retrieve all information on an identity, use https://custody.arianee.com/{{client}}/{{network}}/identity/get
.
Input | Mandatory | Type | Description |
---|---|---|---|
issuer | β | String | Issuer wallet address. |
{
"issuer": "0x57F5111A7e997a7Ba63CC8976C92decbd86C1B08"
}
Example:
curl --request POST \
--url https://test.arianee.com/client/testnet/identity/get \
--header 'accept: application/json; charset=utf-8' \
--header 'authorization: Bearer eyJhbGciOiJS...' \
--header 'content-type: application/json' \
--data '
{
"issuer": "0x57F5111A7e997a7Ba63CC8976C92decbd86C1B08"
}
'
Result:
httpCode | Description |
---|---|
200 | The identity is returned. |
400 | Parameters in the request may be wrong. |
{
"data": {
"address": "0x57F5111A7e997a7Ba63CC8976C92decbd86C1B08",
"imprint": "0xdfee9c6b92e2cb9a5fc6b4b394f46926510fc66db9faa694c53c61d4307cf883",
"isApproved": true,
"isAuthentic": true,
"content": {
"$schema": "https://cert.arianee.org/version2/ArianeeBrandIdentity-i18n.json",
"name": "NMP Arianee",
"companyName": "Arianee",
"arianeeMembership": "associate_member",
"rpcEndpoint": "https://nmp.arianee.com/rpc"
},
"rawContent": {
"$schema": "https://cert.arianee.org/version2/ArianeeBrandIdentity-i18n.json",
"name": "BDH STEF",
"companyName": "Arianee",
"arianeeMembership": "associate_member",
"rpcEndpoint": "https://nmp.arianee.com/rpc"
},
"protocol": {
"name": "testnet",
"chainId": 77
}
}
}
{
"errors": [
{
"type": "field",
"value": "0x57F5111A7e997a7Ba63CC8976C92decbd86C1B0",
"msg": "issuer parameter is required and must be an ethereum address",
"path": "issuer",
"location": "body"
}
]
}
Updated about 1 year ago