Events
identity.registration.retracted
An identity registration was retracted because a reorg invalidated the source log.
An identity registration was retracted because a reorg invalidated the source log.
Delivery contract
| Field | Value |
|---|---|
| Event type | identity.registration.retracted |
| Version | 1 |
| Lifecycle state | retracted |
| Counter-signed receipt required | true |
| SDK type | Webhook.IdentityRegistrationRetractedV1 |
Related references:
idxr_accountidxr_identity
Payload schema
{
"type": "object",
"properties": {
"accountAddress": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"blockNumber": {
"type": "string"
},
"chainId": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"country": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"identityAddress": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"registryAddress": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"status": {
"type": "string"
},
"transactionHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
},
"supersedes": {
"type": "string",
"pattern": "^evt_[a-zA-Z0-9]+$"
},
"reorgBlockNumber": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"accountAddress",
"blockNumber",
"chainId",
"country",
"identityAddress",
"registryAddress",
"status",
"transactionHash",
"supersedes",
"reorgBlockNumber"
],
"additionalProperties": false
}TypeScript SDK example
import { verifyWebhook, type Webhook } from "@settlemint/dalp-sdk";
const result = verifyWebhook({
rawBody,
headers,
secret: process.env.DALP_WEBHOOK_SECRET!,
});
if (!result.ok) {
throw new Error(`Webhook verification failed: ${result.code}`);
}
if (result.event.type === "identity.registration.retracted") {
const event: Webhook.Event<"identity.registration.retracted"> = result.event;
console.log(event.payload);
}curl example
curl -X POST https://consumer.example.com/dalp/webhooks \
-H "content-type: application/json" \
-H "webhook-id: evt_docs_identity_registration_retracted_001" \
-H "webhook-timestamp: 1778112000" \
-H "webhook-signature: v1,docs-example-signature" \
--data '{"evt_id":"evt_docs_identity_registration_retracted_001","type":"identity.registration.retracted","version":1,"lifecycle_state":"retracted","supersedes":"evt_identityRegistration001","request":{"idempotency_key":"idem_01JZP7R5W8M9N0P1Q2R3S4T5"},"related":{"idxr_account":"idxr_account_example","idxr_identity":"idxr_identity_example"},"payload":{"accountAddress":"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","blockNumber":"18445201","chainId":537001,"country":56,"identityAddress":"0xcccccccccccccccccccccccccccccccccccccccc","registryAddress":"0xdddddddddddddddddddddddddddddddddddddddd","status":"ACTIVE","transactionHash":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","supersedes":"evt_identityRegistration001","reorgBlockNumber":18445201}}'Version history
v1: Initial registry entry foridentity.registration.retracted.
Deprecation
This event type is not deprecated.
Manifest
The machine-readable AsyncAPI entry is published in the DALP events manifest.
identity.registration.provisional
An identity was joined to an identity registry; the linkage is provisional until the indexer reaches the configured reorg depth.
settlement.transfer.retracted webhook event
Reference for the DALP settlement.transfer.retracted webhook event that invalidates an earlier settlement transfer event after a chain reorg.