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 receipts | No event-specific advice |
| SDK type | Webhook.IdentityRegistrationRetractedV1 |
This row gives advice only. DALP waits for a counter-signed receipt only if the webhook endpoint's counterSignedReceipts value is true when DALP queues the delivery. When the value is false, a normal 2xx response completes the delivery.
Related references:
idxr_accountidxr_identity
Payload schema
{
"type": "object",
"properties": {
"accountAddress": {
"type": "string"
},
"blockNumber": {
"type": "string"
},
"chainId": {
"type": "integer",
"exclusiveMinimum": 0
},
"country": {
"type": "integer",
"minimum": 0
},
"identityAddress": {
"type": "string"
},
"registryAddress": {
"type": "string"
},
"status": {
"type": "string"
},
"transactionHash": {
"type": "string"
},
"supersedes": {
"type": "string",
"pattern": "^evt_[a-zA-Z0-9]+$"
},
"reorgBlockNumber": {
"type": "integer",
"minimum": 0
}
},
"required": [
"accountAddress",
"blockNumber",
"chainId",
"country",
"identityAddress",
"registryAddress",
"status",
"transactionHash",
"supersedes",
"reorgBlockNumber"
],
"additionalProperties": false
}TypeScript SDK example
import { verifyWebhook } from "@settlemint/dalp-sdk/verify-webhook";
import type { Webhook } from "@settlemint/dalp-sdk";
const result = await 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_cac0ce564720ea43f22c3cc0683d1f50" \
-H "webhook-timestamp: 1778112000" \
-H "webhook-signature: v1,docs-example-signature" \
--data '{"evt_id":"evt_cac0ce564720ea43f22c3cc0683d1f50","lifecycle_state":"retracted","supersedes":"evt_identityRegistration001","payload":{"accountAddress":"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","blockNumber":"18445201","chainId":537001,"country":56,"identityAddress":"0xcccccccccccccccccccccccccccccccccccccccc","registryAddress":"0xdddddddddddddddddddddddddddddddddddddddd","status":"ACTIVE","transactionHash":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","supersedes":"evt_identityRegistration001","reorgBlockNumber":18445201},"related":{"idxr_account":"idxr_account_example","idxr_identity":"idxr_identity_example"},"type":"identity.registration.retracted","version":1,"request":{"idempotency_key":"idem_01JZP7R5W8M9N0P1Q2R3S4T5"}}'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.