Skip to main content

Escrow SDK

Cross-chain escrow lifecycle — create, release, dispute, and query

Operations

Generated Reference

Overview

Cross-chain escrow lifecycle — create, release, dispute, and query

Available Operations

lucidCreateEscrow

Create a new time-locked escrow for agent-to-agent transactions on a specific chain. Funds are held until released by receipt verification or timed out.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.SuccessResponse>

Errors

lucidReleaseEscrow

Release escrowed funds to the beneficiary after verifying the associated receipt. Requires a valid receipt hash proving service delivery.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.SuccessResponse>

Errors

lucidDisputeEscrow

Dispute an active escrow, freezing the funds and initiating the arbitration process. The escrow must be in ‘active’ status to be disputed.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.SuccessResponse>

Errors

lucidGetEscrow

Retrieve the full details of a specific escrow by chain and escrow ID, including status, parties, amounts, timeout, and associated receipt hashes.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.GetEscrowResponse>

Errors