Fetch Identity
Methods related to the identity management.
Get identities from a chain type
Get identities owned by a user on a given chain type.
Method
wallet.identity.getOwnedSmartAssetsIdentities(i18nStrategy?:useLanguages)
Parameter | Type | Required | Description |
---|---|---|---|
chainType | testnet or mainnet | ✅ | Return identities owned by the user on testnet or mainnet . |
language | fr-fr , en-US ... | ❌ | Language(s) returned in order of preference. |
Return Payload
promise
returns an array
of all the identity information owned by the user on the chain.
[{
data: {
address: '0x90d181a3e977E8CcD7822B711Bb3A83E79beaEFF',
imprint: '0x67b57a673e6903805146ca125140631293e78e1866a058c61a779ec64f61db2d',
isApproved: true,
isAuthentic: true,
content: ArianeeBrandIdentityI18N,
rawContent: ArianeeBrandIdentityI18N,
protocol: { name: 'testnet', chainId: 77 },
ownedCount: 3
}
}]
Get identity from the issuer
Method
wallet.identity.get(issuer, i18nStrategy?:useLanguages)
Parameter | Type | Required | Description |
---|---|---|---|
issuer | String | ✅ | Address of the identity to retrieve its content. |
protocolName | String | ❌ | Protocol identity. If empty, default value: polygon |
language | fr-fr , en-US ... | ❌ | Language(s) returned in order of preference. |
Return Payload
promise
returns an object
with the identity information for the identity whose address is the issuer.
{
data: {
address: '0x90d181a3e977E8CcD7822B711Bb3A83E79beaEFF',
imprint: '0x67b57a673e6903805146ca125140631293e78e1866a058c61a779ec64f61db2d',
isApproved: true,
isAuthentic: true,
content: ArianeeBrandIdentityI18N,
rawContent: ArianeeBrandIdentityI18N,
protocol: { name: 'testnet', chainId: 77 },
ownedCount: 3
}
}
Updated 11 months ago