Olympus
Admin

Credit an account

Credit an account with a specified amount of an asset. Requires admin authentication.

POST
/api/v1/admin/accounts/{address}/credit

Credit an account with a specified amount of an asset. Requires admin authentication.

Path Parameters

address*string

The account address to credit (hex-encoded)

Header Parameters

X-Admin-Key*string

Admin API key

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "http://localhost:3000/api/v1/admin/accounts/0x1234567890abcdef1234567890abcdef12345678/credit" \  -H "X-Admin-Key: string" \  -H "Content-Type: application/json" \  -d '{    "asset": "USD",    "amount": "10000.00"  }'
{
  "status": "credit_submitted"
}
{
  "error": "Invalid request: missing required field"
}