Skip to navigation

Create an XLM set trustline flags request

This endpoint creates a set trustline flags request for an XLM trustline. 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"

(Optional) ID of the address representing the issuer of the asset of the trustline. Should match an existing WhitelistedContractAddress

trustorInternalAddressIdstringOptionalformat: "uint64"

address id of the account which established the trustline. Either trustorInternalAddressId or trustorWhitelistedAddressId shall be specified

trustorWhitelistedAddressIdstringOptionalformat: "uint64"

id of the account which established the trustline. Either trustorInternalAddressId or trustorWhitelistedAddressId shall be specified

setFlagslist of stringsOptional

flags to set for the Trustline created by trustor, as list of XLM SetTrustlineFlagsOp Flags: ['AuthorizedFlag', 'AuthorizedToMaintainLiabilitiesFlag']

clearFlagslist of stringsOptional

flags to clear for the Trustline created by trustor, as list of XLM SetTrustlineFlagsOp Flags: ['AuthorizedFlag', 'AuthorizedToMaintainLiabilitiesFlag', 'TrustlineClawbackEnabledFlag']

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