Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.spark.money/llms.txt

Use this file to discover all available pages before exploring further.

Gets a transfer from the SSP (Spark Service Provider), including Lightning-related transfer information.

Method Signature

async getTransferFromSsp(id: string): Promise<TransferWithUserRequest | undefined>

Parameters

id
string
required
The transfer ID to query

Returns

transfer
TransferWithUserRequest | undefined
required
The transfer with user request details, or undefined if not found

Example

const transfer = await wallet.getTransferFromSsp("transfer-id");
if (transfer) {
  console.log("Transfer:", transfer);
  console.log("User request:", transfer.userRequest);
}