useSendTransaction
Most Trustless Work endpoints return an unsigned transaction in XDR format. This endpoint is used to sign such unsigned transactions and send them to the Stellar network.
Usage
import { useSendTransaction} from "@trustless-work/escrow/hooks";
/*
* useSendTransaction
*/
const { sendTransaction } = useSendTransaction();
/*
* It returns a SendTransactionResponse
* payload should be of type string
*/
const data = await sendTransaction(signedXdr);
Function
Usage Example
Last updated
Was this helpful?