SettleMint
API referenceEvents

primary-market.subscription.final

An investor paid into a token sale and bought tokens; sent once the chain finality watermark reaches its source block. The purchase is the subscription: no separate allocation event follows, and the tokens arrive with primary-market.delivery.final. Amounts are in each asset's base units.

Delivery contract

FieldValue
Event typeprimary-market.subscription.final
Version1
Lifecycle statefinal
Counter-signed receiptsRecommended for endpoints that consume this event
SDK typeWebhook.PrimaryMarketSubscriptionFinalV1

The receipt recommendation does not change delivery behavior. 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_token_sale

Payload schema

The schema and examples describe the full payload. Thin delivery omits personal data fields. Use the payload-shape guidance to choose the endpoint configuration.

{
  "type": "object",
  "properties": {
    "chainId": {
      "type": "integer",
      "exclusiveMinimum": 0
    },
    "saleAddress": {
      "type": "string",
      "minLength": 42,
      "maxLength": 42,
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "A valid Ethereum address (42 characters, starting with 0x)",
      "examples": ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
    },
    "tokenAddress": {
      "type": "string",
      "minLength": 42,
      "maxLength": 42,
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "A valid Ethereum address (42 characters, starting with 0x)",
      "examples": ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
    },
    "occurredAt": {
      "type": "string"
    },
    "transactionHash": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{64}$"
    },
    "blockNumber": {
      "type": "integer",
      "minimum": 0
    },
    "logIndex": {
      "type": "integer",
      "minimum": 0
    },
    "investorAddress": {
      "type": "string",
      "minLength": 42,
      "maxLength": 42,
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "A valid Ethereum address (42 characters, starting with 0x)",
      "examples": ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
    },
    "paymentCurrencyAddress": {
      "type": "string",
      "minLength": 42,
      "maxLength": 42,
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "A valid Ethereum address (42 characters, starting with 0x)",
      "examples": ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
    },
    "paymentAmount": {
      "type": "string",
      "pattern": "^(?:0|[1-9]\\d*)$",
      "maxLength": 78
    },
    "tokenAmount": {
      "type": "string",
      "pattern": "^(?:0|[1-9]\\d*)$",
      "maxLength": 78
    }
  },
  "required": [
    "chainId",
    "saleAddress",
    "tokenAddress",
    "occurredAt",
    "transactionHash",
    "blockNumber",
    "logIndex",
    "investorAddress",
    "paymentCurrencyAddress",
    "paymentAmount",
    "tokenAmount"
  ],
  "additionalProperties": true
}

TypeScript SDK example

Use the request's raw body and headers with your endpoint's webhook secret. This handler illustrates verification and event selection. Before writing downstream state, deduplicate deliveries by evt_id and recognize replayed outcomes by their domain identifiers.

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 === "primary-market.subscription.final") {
  const event: Webhook.Event<"primary-market.subscription.final"> = result.event;
  console.log(event.payload);
}

HTTP delivery example

This illustrative request shows the delivery shape. Its timestamp and signature are placeholders; a verifier rejects them. Use a signed platform delivery to verify your endpoint.

curl -X POST https://consumer.example.com/dalp/webhooks \
  -H "content-type: application/json" \
  -H "webhook-id: evt_555aaebea0e2f89cf748547ae780ce4a" \
  -H "webhook-timestamp: 1778112000" \
  -H "webhook-signature: v1,docs-example-signature" \
  --data '{"evt_id":"evt_555aaebea0e2f89cf748547ae780ce4a","source_id":"example:primary-market.subscription.final@1:0","lifecycle_state":"final","payload":{"chainId":537001,"saleAddress":"0x1212121212121212121212121212121212121212","tokenAddress":"0x5555555555555555555555555555555555555555","occurredAt":"2026-09-28T09:15:00.000Z","transactionHash":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","blockNumber":18445260,"logIndex":4,"investorAddress":"0x6666666666666666666666666666666666666666","paymentCurrencyAddress":"0x8888888888888888888888888888888888888888","paymentAmount":"1000000000","tokenAmount":"250000000"},"related":{"idxr_token_sale":"idxr_token_sale_example"},"type":"primary-market.subscription.final","version":1,"request":{"idempotency_key":"idem_01JZP7R5W8M9N0P1Q2R3S4T5"}}'

Version and manifest

This page documents version 1 of primary-market.subscription.final. This event type is not deprecated. The DALP events manifest contains the machine-readable AsyncAPI entry.

On this page