Initiate a trustline transaction
Initiate an unsigned trustline transaction to create a pending approval. Trustline transactions manage trusted tokens on the account. Available for Stellar. Use only with custodial wallets.
{ pendingApproval, error?, triggeredPolicy? }, not a bare PendingApproval — consequence: unsigned send throws that envelope; a bare PendingApproval codec would fail shadow validation and OpenAPI clients against the real body — consequence: omitting it from the codec drops a field the controller reads via validateSequenceId(req.body.sequenceId) trustline build: trustlines, memo, comment, sequenceId, fee, timebounds — consequence: omitting a consumed field 400s a previously accepted request — consequence: a raw number | string union accepts limit: "abc", which becomes BigNumber NaN; range checks never fire and formatBaseUnits throws an untyped 500 the XLM builder's isNaN(fee/timebounds) checks do not reject Infinity — consequence: documenting type on the body would let callers think they can override the transaction type
Path parameters
A cryptocurrency symbol or token ticker symbol
A cryptocurrency or token ticker symbol
The wallet ID
Request body
Example request
{
"trustlines": [
{
"token": "txlm:BST-GBQTIOS3XGHB7LVYGBKQVJGCZ3R4JL5E4CBSWJ5ALIJUHBKS6263644L"
}
]
}Response
Accepted