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/solana.adoc
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,12 +125,17 @@ For more configuration examples, visit the link:https://github.com/OpenZeppelin/
125
125
126
126
In addition to standard relayer configuration and policies, Solana relayers support additional options:
127
127
128
-
- `fee_payment_strategy`: `"user"` or `"relayer"` (who pays transaction fees)
129
-
- `allowed_tokens`: List of SPL tokens supported for swaps and fee payments
128
+
- `fee_payment_strategy`: `"user"` or `"relayer"` (who pays transaction fees). "user" is default value.
129
+
* `"user"`: Users pay transaction fees in tokens (relayer receives fee payment from user)
130
+
* `"relayer"`: **Relayer pays for all transaction fees** using SOL from the relayer's account
131
+
- `allowed_tokens`: List of SPL tokens supported for swaps and fee payments. Restrict relayer operations to specific tokens. Optional.
132
+
* **When not set or empty, all tokens are allowed** for transactions and fee payments
133
+
* When configured, only tokens in this list can be used for transfers and fee payments
130
134
- `allowed_programs`, `allowed_accounts`, `disallowed_accounts`: Restrict relayer operations to specific programs/accounts
131
135
- `swap_config`: Automated token swap settings (see below)
132
136
133
137
138
+
134
139
You can check all options in xref:index.adoc#3_relayers[User Documentation - Relayers].
135
140
136
141
=== Automated token swap configuration options:
@@ -176,6 +181,15 @@ Common endpoints:
176
181
- `getSupportedTokens`
177
182
- `getSupportedFeatures`
178
183
184
+
[NOTE]
185
+
====
186
+
**Fee Token Parameter Behavior:**
187
+
188
+
When using `fee_payment_strategy: "relayer"`, the `fee_token` parameter in RPC methods becomes **informational only**. The relayer pays all transaction fees in SOL regardless of the specified fee token. In this mode, you can use either `"So11111111111111111111111111111112"` (WSOL) or `"11111111111111111111111111111111"` (native SOL) as the fee_token value.
189
+
190
+
When using `fee_payment_strategy: "user"`, the `fee_token` parameter determines which token the user will pay fees in, and must be a supported token from the `allowed_tokens` list (if configured).
0 commit comments