SolanaScanParams
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / SolanaScanParams
Interface: SolanaScanParams
Section titled “Interface: SolanaScanParams”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15474
Parameters for scanning for incoming stealth payments
Security
Section titled “Security”This interface requires sensitive cryptographic keys. Never log, store in plain text, or transmit these keys insecurely.
Properties
Section titled “Properties”connection
Section titled “connection”connection:
Connection
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15476
Solana RPC connection
viewingPrivateKey
Section titled “viewingPrivateKey”viewingPrivateKey:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15483
Recipient’s viewing private key (hex)
Security
Section titled “Security”SENSITIVE - This key enables scanning for incoming payments. Store securely (encrypted). Never log or expose in error messages.
spendingPublicKey
Section titled “spendingPublicKey”spendingPublicKey:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15485
Recipient’s spending public key (hex)
fromSlot?
Section titled “fromSlot?”
optionalfromSlot:number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15487
Optional: Start scanning from this slot
toSlot?
Section titled “toSlot?”
optionaltoSlot:number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15489
Optional: Stop scanning at this slot
limit?
Section titled “limit?”
optionallimit:number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15491
Optional: Limit number of results
provider?
Section titled “provider?”
optionalprovider:SolanaRPCProvider
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15509
Optional: RPC provider for efficient asset queries
When provided, uses provider.getAssetsByOwner() for token detection instead of parsing transaction logs. Recommended for production.
Example
Section titled “Example”const helius = createProvider('helius', { apiKey: '...' })const payments = await scanForPayments({ connection, provider: helius, viewingPrivateKey, spendingPublicKey,})