Creates a trustline so a wallet can hold an asset, or updates the limit on an existing one. Networks that use trustlines, such as Stellar and XRPL, require one before AUDD can be sent to the wallet.
The wallet must be ACTIVE and on the same network as the asset. Posting a limit identical to the current one returns the existing trustline unchanged.
How quickly the trustline becomes usable depends on the network. Some return status ACTIVE straight away with a null transactionId; others return PENDING or UPDATING together with a transactionId you can follow using GET /transactions/{id}. Poll GET /assets/{id}/trustlines until status is ACTIVE.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
200Success
400Invalid request. Returned when the body fails validation, when assetId or sourceId does not exist, when the wallet is not active or sits on a different network from the asset, or when the limit is outside the permitted range.
401Unauthorized
403Forbidden. The wallet or the asset does not belong to your company.
500Internal server error
