You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/stellar.adoc
+53-2Lines changed: 53 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,9 +196,10 @@ The relayer supports three ways to submit transactions:
196
196
197
197
1. **Operations-based**: Build a transaction by specifying the `operations` array (recommended for most use cases)
198
198
2. **Transaction XDR (unsigned)**: Submit a pre-built unsigned transaction using `transaction_xdr` field (advanced use case)
199
-
3. **Transaction XDR (signed) with fee bump**: Submit a signed transaction using `transaction_xdr` with `fee_bump: true` to wrap it in a fee bump transaction
199
+
3. **Transaction XDR (signed)**: Submit a signed transaction using `transaction_xdr` with `fee_bump: true` (required for signed XDR) to wrap it in a fee bump transaction
200
+
201
+
==== Example 1: Operations-based Transaction
200
202
201
-
Example: Send Transaction
202
203
[source,bash]
203
204
----
204
205
curl --location --request POST 'http://localhost:8080/api/v1/relayers/<stellar_relayer_id>/transactions' \
@@ -218,6 +219,56 @@ curl --location --request POST 'http://localhost:8080/api/v1/relayers/<stellar_r
218
219
}'
219
220
----
220
221
222
+
==== Example 2: Unsigned Transaction XDR
223
+
224
+
Submit a pre-built unsigned transaction. The relayer will sign it with its configured signer:
225
+
226
+
[source,bash]
227
+
----
228
+
curl --location --request POST 'http://localhost:8080/api/v1/relayers/<stellar_relayer_id>/transactions' \
0 commit comments