Skip to navigation
TRANSFERS AND STAKINGRequests: XLM

Create an XLM change trust request

This endpoint creates a change trust request for an XLM address. 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

This endpoint expects an object.
fromAddressIdstringRequiredformat: "uint64"
trustlineLimitstringRequiredformat: "uint64"
Limit for the trustline, in base units
feeLimitstringOptional
commentstringOptional
poolIDstringOptional

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

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
sponsoredByAddressIdstringOptionalformat: "uint64"
If set, is the ID of the address who will sponsor the cost of the operation on the minimum balance of the source address
feePayerIdstringOptionalformat: "uint64"
If set, the designated fee payer covers both the account reserve and the transaction fee for this operation. feeLimit must not be set.

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