---
title: "Set Trustline"
method: POST
path: "/defi/v1/rwa/settrustline"
tags: ["rwa"]
---

# Set Trustline

`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`

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)

## Request body

- RwaSettrustlineRequest: The request body for a /defi/v1/rwa/settrustline
  - `chainId` '1500' | '1501' | '1600' | '1601': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
  - `chainSymbol` string: The abbreviated chain name for queries or transactions.
  - `from` string, required: Public blockchain address of the sender initiating the transaction. Format depends on the chain (e.g., 0xABCDEF... for EVM, G... for Stellar).
  - `amount` string, 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".
  - `issuer` string, required: Public address of the issuer of the asset.
  - `assetCode` string, required: The unique alphanumeric code identifying the asset.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
