Positions

POST/solend/positions

Parameters (Kit SDK)

When using @sonabuild/kit, you only provide these parameters. The SDK automatically handles context (wallet, origin) and encryption.

Full Request Schema (Direct API)

If calling the API directly (without Kit), send this complete structure. The Kit SDK constructs this automatically from your params.

contextobjectrequired
walletstringrequired

User wallet public key

originstringrequired

Request origin URL

paramsobjectrequired

Response Schema

All responses follow this structure. The data field contains operation-specific results (see example response →).

successbooleanrequired
metadataobject
protocolstringrequired
querystringrequired
timestampnumberrequired
dataobject
obligationstringrequired

User obligation account address

existsbooleanrequired

Whether obligation account exists

depositedUSDCstringrequired

Total USDC deposited in UI units

depositedRawnumberrequired

Total USDC deposited in lamports

depositsarray

Individual deposit entries

Array items:
depositedAmountstringrequired

Amount deposited in lamports

errorstring | null
curl -X POST https://api.sona.build/solend/positions \
  -H "Content-Type: application/json" \
  -d '{
  "context": {
    "wallet": "YourWalletPublicKey",
    "origin": "https://your-app.com"
  },
  "params": {}
}'

Example Response

{
  "transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQACC...",
  "metadata": {
    "protocol": "solend",
    "operation": "operation",
    "timestamp": 1766817668005
  },
  "data": {
    "pool": {
      "name": "Main Pool",
      "address": "example_pool_address"
    },
    "amount": "100000000"
  }
}