Skip to main content

Change Trust Object

Creates, updates, or deletes a trust line from the source account to another account's issued asset.

See the Change Trust errors.

  • ATTRIBUTEDATA TYPE

    DESCRIPTION

  • asset_typestring

    The type of asset being trusted, one of native, credit_alphanum4, credit_alphanum12, or liquidity_pool_shares.

  • asset_codestring

    The Stellar address of the asset being trusted. (Only present for credit assets.)

  • asset_issuerstring

    The code for the asset being trusted. (Only present for credit assets.)

  • limitstring

    Limits the amount of an asset that the source account can hold.

  • trusteestring

    The issuing account. (Only present for credit assets.)

  • trustorstring

    The source account.

  • liquidity_pool_idstring

    The liquidity pool whose trustline is being modified. (Only present for asset_type == liquidity_pool_shares.)

  • Example
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/operations/120192477935251457"
    },
    "transaction": {
    "href": "https://horizon-testnet.stellar.org/transactions/ec4116595bdfa8c1039c40af425e497c91fcf387c2a2a0cfa1f3bf64733f1f23"
    },
    "effects": {
    "href": "https://horizon-testnet.stellar.org/operations/120192477935251457/effects"
    },
    "succeeds": {
    "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=120192477935251457"
    },
    "precedes": {
    "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=120192477935251457"
    }
    },
    "id": "120192477935251457",
    "paging_token": "120192477935251457",
    "transaction_successful": true,
    "source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
    "type": "change_trust",
    "type_i": 6,
    "created_at": "2020-01-29T19:46:55Z",
    "transaction_hash": "ec4116595bdfa8c1039c40af425e497c91fcf387c2a2a0cfa1f3bf64733f1f23",
    "asset_type": "credit_alphanum4",
    "asset_code": "NGNT",
    "asset_issuer": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
    "limit": "922337203685.4775807",
    "trustee": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
    "trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
    }