Skip to main content
POST
/
v2
/
escrow
/
create
Typescript (SDK)
import { RaijinLabsLucidAi } from "raijin-labs-lucid-ai";

const raijinLabsLucidAi = new RaijinLabsLucidAi();

async function run() {
  const result = await raijinLabsLucidAi.escrow.lucidCreateEscrow({
    chainId: "<id>",
    beneficiary: "<value>",
    token: "<value>",
    amount: "398.30",
    duration: 430908,
  });

  console.log(result);
}

run();
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt

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

Authorizations

Authorization
string
header
required

Lucid API key (lk_live_... or lk_test_...)

Body

application/json
chainId
string
required

Chain identifier (e.g. 'base', 'ethereum-sepolia')

beneficiary
string
required

Beneficiary address

token
string
required

ERC-20 token address

amount
string
required

Amount in token base units

duration
integer
required

Escrow duration in seconds

expectedReceiptHash
string

Optional expected receipt hash for auto-release

Response

Escrow created

success
boolean
required