Skip to main content
POST
/
lending-stocks
/
api
/
positions
/
{marketId}
/
add-liquidity
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/add-liquidity" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"amount": "10000", "useRelayer": true}'
{
  "success": true,
  "data": {
    "txHash": "0xabc...def",
    "amount": "10000"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trusset.org/llms.txt

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

Deposits USDC into the market’s liquidity pool. The depositor receives proportional LP shares that accrue interest as borrowers repay. Requires the depositor to be KYC-verified in the IdentityRegistry.

Path Parameters

marketId
string
required
Market ID.

Body Parameters

amount
string
required
USDC amount to deposit (e.g. "10000").
useRelayer
boolean
default:"false"
Execute via relayer or return calldata.
The first deposit into a new pool requires a minimum of 1,000 USDC.
curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/add-liquidity" \
  -H "X-API-Key: trusset_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"amount": "10000", "useRelayer": true}'
{
  "success": true,
  "data": {
    "txHash": "0xabc...def",
    "amount": "10000"
  }
}