Skip to navigation
TRANSFERS AND STAKINGRequests: XLM

Create an XLM liquidity pool deposit request

This endpoint creates an XLM liquidity pool deposit request. Required role: RequestCreator. This API can be made idempotent by generating an ID for the Request beforehand and passing it as the externalRequestId attribute

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Creates an XLM Liquidity Pool Deposit Request to deposit up to 'maxAmount' of asset A and B in the liquidity pool.
fromAddressIdstringRequiredformat: "uint64"
poolIDstringRequired

Hex String representing the Liquidity Pool ID on ledger. Example: 076bbb9f17f8d47209515a345420d40ea1ebcd3cb6a370ea0d56fc12dbf084cb

maxAmountAssetAstringRequired
maxAmountAssetBstringRequired
priceVariationlongOptional

% of allowed price variation for liquidity pool spot price. Example: 2 corresponds to 2% price variation

feeLimitstringOptional
commentstringOptional
externalRequestIdstringOptional
Identifier for the request in the user's system. This must be unique. Attempting to create a request with an existing externalRequestId will do nothing and return the originally created request
feePayerIdstringOptionalformat: "uint64"

If set, the id of an XLM fee payer that will wrap this operation in a CAP-15 fee-bump. Inner tx fee is set to 0.

Response

A successful response.
resultobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error