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 pending inbound transfers for a Spark address.

Method Signature

async getPendingTransfers(sparkAddress: string): Promise<Transfer[]>

Parameters

sparkAddress
string
required
The Spark address to query pending transfers for.

Returns

transfers
Transfer[]
required
Array of pending inbound transfer objects.

Example

const pending = await client.getPendingTransfers("sp1...");
console.log(`${pending.length} pending transfers`);

for (const transfer of pending) {
  console.log(transfer.id, transfer.totalValue);
}