# Guía para desarrolladores

Trustless Work es **Escrow-as-a-Service** en **Stellar (Soroban)**.

Úsalo para desplegar escrows, financiarlos, rastrear hitos y liberar fondos. Tu aplicación controla el flujo vía **REST API** o **SDKs**.

{% hint style="info" %}
La mayoría de los endpoints de escritura devuelven un **XDR sin firmar**.\
Debes firmarlo del lado del cliente con la **wallet de rol**.
{% endhint %}

### Elige tu camino de integración

#### REST API

Usa esto si quieres control total y ya estás firmando transacciones Stellar.

* [REST API: Introducción](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/api-rest/introduction)

#### React SDK (hooks)

Usa esto si quieres hooks tipados para cada acción de escrow.

* [React SDK: Primeros pasos](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/escrow-react-sdk/getting-started)

#### Escrow Blocks SDK (bloques de UI)

Usa esto si quieres bloques de UI listos y conectividad con wallets.

* [Escrow Blocks SDK: Primeros pasos](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/escrow-blocks-sdk/getting-started)

### Inicio rápido (orden recomendado)

{% stepper %}
{% step %}

### 1) Obtener acceso

Solicita una clave de API. La necesitarás para los flujos de desplegar/financiar/liberar/disputar.

* [Solicitar clave API](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/developer-resources/request-api-key)
  {% endstep %}

{% step %}

### 2) Configurar autenticación + firma

Configura el encabezado de auth. Luego prepara tu(s) wallet(s) para firmar XDR.

* [Autenticación](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/developer-resources/authentication)
  {% endstep %}

{% step %}

### 3) Aprender el modelo de datos

Usarás estos tipos en cada petición/respuesta.

* [Esquema](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/developer-resources/schema)
* [Tipos](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/developer-resources/types)
  {% endstep %}

{% step %}

### 4) Implementar el flujo principal

Secuencia típica:

1. Desplegar / inicializar escrow
2. Financiar escrow
3. Aprobar o actualizar hitos (si se usan)
4. Liberar fondos (o disputar + resolver)

Usa la lista de verificación para cubrir casos límite y permisos de roles.

* [Lista de verificación de integración](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/developer-resources/integration-checklist)
  {% endstep %}
  {% endstepper %}

### Requisitos previos (Stellar)

* [Wallets Stellar](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/stellar-and-soroban-the-backbone-of-trustless-work/stellar-wallets)
* [Trustlines](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/stellar-and-soroban-the-backbone-of-trustless-work/trustlines)
* [Tokens de Testnet](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/stellar-and-soroban-the-backbone-of-trustless-work/testnet-tokens)

### Conceptos y arquitectura

* [Diseño de escrow](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/technology-overview)
* [Arquitectura](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/developer-resources/architecture)
* [Guía Mix & Match de productos escrow](https://app.gitbook.com/s/Dg2e2YCRmNlhCnxxmEb6/introduction/technology-overview/smart-escrow-design)

### Prueba la dApp Backoffice

Úsala para solicitar claves API y probar flujos de extremo a extremo.

{% embed url="<https://dapp.trustlesswork.com>" %}
