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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ referralTimestamp?: number; referrerClientId?: string; referrerMerchantId?: string; referrerWallet?: Address; type: "arrival"; }
referralTimestamp?
Section titled “referralTimestamp?”
optionalreferralTimestamp?:number
Epoch seconds timestamp from the referral link creation
referrerClientId?
Section titled “referrerClientId?”
optionalreferrerClientId?:string
referrerMerchantId?
Section titled “referrerMerchantId?”
optionalreferrerMerchantId?:string
referrerWallet?
Section titled “referrerWallet?”
optionalreferrerWallet?:Address
Sharer wallet address. Accepted in both wallet-only legacy contexts and merchant-context (V2) contexts.
type:
"arrival"
Type Literal
Section titled “Type Literal”{ purchaseId?: string; sharingTimestamp?: number; type: "sharing"; }
purchaseId?
Section titled “purchaseId?”
optionalpurchaseId?:string
Merchant order ID linking this sharing event to a purchase (stays server-side, never in URL)
sharingTimestamp?
Section titled “sharingTimestamp?”
optionalsharingTimestamp?:number
Epoch seconds timestamp matching the V2 context t field embedded in the referral link URL, used for backend correlation
type:
"sharing"
Type Literal
Section titled “Type Literal”{ customType: string; data?: Record<string, unknown>; idempotencyKey?: string; type: "custom"; }