Skip to main content
POST
Refund a deposit

Headers

x-api-key
string
required

API key for authentication

Example:

"your-api-key"

Path Parameters

id
string
required

Deposit id. Returned by GET /deposits.

Pattern: ^\d+$
Example:

"12345"

Body

application/json
recipient
string
required

Address to receive the refunded tokens (EVM address or Solana public key). Must not be the address the deposit is already held at.

Minimum string length: 1
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"

Response

Deposit refunded successfully

message
string
required
transactionHash
string
required
amount
string
required