API Fundamental Code
It is important to clarify that the technologies being used are only examples, as provided in our dApp. You can use any other technology you need.
Last updated
Was this helpful?
It is important to clarify that the technologies being used are only examples, as provided in our dApp. You can use any other technology you need.
Last updated
Was this helpful?
In this part, you can use the library of your choice. In TW case, we're using , but you can use whatever you want.
In order to set the .env, please go to:
npm install axios
src\lib\axios.ts
npm install "@creit.tech/stellar-wallets-kit"
src\lib\stellar-wallet-kit.ts
npm install zustand
src\components\modules\auth\wallet\hooks\wallet.hook.ts
Flow that must always be executed at each Endpoint except Get Balances
Initialize Escrow
Fund Escrow
Get Multiple Escrow Balance
Edit Milestones
! AÑADIR CUANDO YA ESTE
Change Milestone Status
Change Milestone Flag
Distribute Escrow Earnings
Change Dispute Flag
Resolve Dispute
Trustless Work provides a flexible Escrow-as-a-Service platform that can be applied across many different use cases.
In our case, we're using , a library that simplifies connecting to Stellar-compatible wallets like Freighter. A wallet is necessary because all escrow actions—such as creating, funding, or releasing—require users to sign blockchain transactions (XDR format) with their private keys. Stellar Wallet Kit handles the interaction and signing process securely from the frontend. That said, you’re free to use any wallet that supports XDR signing, as long as it integrates smoothly with your app.
In our case, as we're using library, but you can use whatever you want.