Aller au contenu

SendInteractionParamsType

Ce contenu n’est pas encore disponible dans votre langue.

SendInteractionParamsType = { referralTimestamp?: number; referrerClientId?: string; referrerMerchantId?: string; referrerWallet?: Address; type: "arrival"; } | { purchaseId?: string; sharingTimestamp?: number; type: "sharing"; } | { customType: string; data?: Record<string, unknown>; idempotencyKey?: string; type: "custom"; }

Defined in: types/rpc/interaction.ts:11

Parameters for sending interactions via RPC

Note: merchantId and clientId come from WalletRpcContext and are NOT included in the params - they are resolved by the listener

{ referralTimestamp?: number; referrerClientId?: string; referrerMerchantId?: string; referrerWallet?: Address; type: "arrival"; }

optional referralTimestamp?: number

Epoch seconds timestamp from the referral link creation

optional referrerClientId?: string

optional referrerMerchantId?: string

optional referrerWallet?: Address

Sharer wallet address. Accepted in both wallet-only legacy contexts and merchant-context (V2) contexts.

type: "arrival"


{ purchaseId?: string; sharingTimestamp?: number; type: "sharing"; }

optional purchaseId?: string

Merchant order ID linking this sharing event to a purchase (stays server-side, never in URL)

optional sharingTimestamp?: number

Epoch seconds timestamp matching the V2 context t field embedded in the referral link URL, used for backend correlation

type: "sharing"


{ customType: string; data?: Record<string, unknown>; idempotencyKey?: string; type: "custom"; }