rwa

Set Trustline

Establishes a secure trustline relationship between an issuer and distributor with specified asset limits and authorization parameters on the Stellar network.

💡 Compute Unit Value: 30 (Fixed)

post/defi/v1/rwa/settrustline

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/rwa/settrustline
  • Auth
    API key in header X-API-Key

Request body

chainId'1500' | '1501' | '1600' | '1601'

The unique ID to direct queries or transactions to the correct blockchain. Find more here.

chainSymbolstring

The abbreviated chain name for queries or transactions.

fromstring required

Public blockchain address of the sender initiating the transaction. Format depends on the chain (e.g., 0xABCDEF... for EVM, G... for Stellar).

amountstring required

Amount of the asset involved in the transaction, in the asset's smallest denomination (base units). Do not send human-readable decimal values. Examples: EVM tokens (18 decimals) = "1000000000000000000"; Stellar (7 decimals) = "10000000".

issuerstring required

Public address of the issuer of the asset.

assetCodestring required

The unique alphanumeric code identifying the asset.

Example request

{
  "chainId": "1500",
  "chainSymbol": "ETH",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "amount": "1000000000000000000",
  "issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
  "assetCode": "VELO"
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1500",
    "from": "GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P",
    "gas": "100",
    "data": "AAAAAgAAAAATwMjJJ6kD5BntOoo4AXjFh6ny3EstNq0xTFuasBrDBAAAAGQB5rJlAAH24AAAAAEAAAAAAAAAAAAAAABmD8FoAAAAAAAAAAEAAAAAAAAABgAAAAFWRUxPAAAAANnIwpCFKyVAH5eIz9w5fsojH5D4l+mAMPh0EiekiCLNAAAAADuaygAAAAAAAAAAAA=="
  }
}

Changes

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