> ## 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.

# checkTimelock

> Check remaining timelock blocks for a node.

Checks the remaining timelock on a given node.

## Method Signature

```typescript theme={null}
async checkTimelock(nodeId: string): Promise<{
  nodeTimelock: number;
  refundTimelock: number;
}>
```

## Parameters

<ResponseField name="nodeId" type="string" required>
  The ID of the node to check
</ResponseField>

## Returns

<ResponseField name="timelocks" type="object" required>
  Object containing:

  * `nodeTimelock`: Remaining blocks for the node transaction
  * `refundTimelock`: Remaining blocks for the refund transaction
</ResponseField>

## Example

```typescript theme={null}
const timelocks = await wallet.checkTimelock("node-id-here");
console.log("Node timelock:", timelocks.nodeTimelock, "blocks");
console.log("Refund timelock:", timelocks.refundTimelock, "blocks");
```
