Stellar - Tatum API

Create / Update / Delete XLM trust line

/v3/xlm/trust

10 credits per API call.

Create / Update / Delete XLM trust line between accounts to transfer private assets. By creating trustline for the first time, the asset is created automatically and can be used in the transactions.

This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key. No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and loss of funds. In this method, it is possible to enter privateKey or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, Tatum KMS should be used for the highest security standards, and signatureId should be present in the request. Alternatively, using the Tatum client library for supported languages.

post/v3/xlm/trust

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v3/xlm/trust
  • Auth
    API key in header x-api-key

Request body

OR

Example request

{
  "fromAccount": "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H",
  "issuerAccount": "GC5LAVZ5UPLIFDH6SI33PNVL5TKWA4ODXTI3WEF5JM6LRM5MNGVJ56TT",
  "token": "TOKEN123",
  "fromSecret": "SCVVKNLBHOWBNJYHD3CNROOA2P3K35I5GNTYUHLLMUHMHWQYNEI7LVED",
  "limit": "10000"
}

Response

OK

OR

Example response

{
  "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"
}

Changes

No recorded changes to this operation across all 1 revision of this API.