Skip to content

Commit 4326f6d

Browse files
feat(refunds): Add flashbots_setFeeRefundRecipient documentation. (#567)
1 parent ba98fd9 commit 4326f6d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/flashbots-auction/advanced/rpc-endpoint.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,37 @@ where
838838
- `consideredByBuildersAt`: indicates time at which each builder selected the bundle to be included in the target block
839839
- `sealedByBuildersAt`: indicates time at which each builder sealed a block containing the bundle
840840

841+
### flashbots_setFeeRefundRecipient
842+
843+
The `flashbots_setFeeRefundRecipient` JSON-RPC method allows a user to "delegate" their [fee refunds](/flashbots-auction/advanced/gas-fee-refunds) to a specific wallet address. Two addresses must be provided, the first is the address associated with the signing key used to authenticate your request, while the second is the address to send refunds to.
844+
845+
```json
846+
{
847+
"jsonrpc": "2.0",
848+
"id": 1,
849+
"method": "flashbots_setFeeRefundRecipient",
850+
"params": [
851+
"0xD2824D2D7D6399a4b9A47F258B870D2AFb213948",
852+
"0xa273A268CE96E54cF6a7D879B7d016F57E396F48"
853+
]
854+
}
855+
```
856+
857+
If the first address matches the authentication signature, then a response with `from` and `to` fields in the result will be returned:
858+
859+
```json
860+
{
861+
"jsonrpc": "2.0",
862+
"id": 1,
863+
"result": {
864+
"from":"0xd2824d2d7d6399a4b9a47f258b870d2afb213948",
865+
"to":"0xa273a268ce96e54cf6a7d879b7d016f57e396f48"
866+
}
867+
}
868+
```
869+
870+
If the signature is invalid or does not match the first address, an appropriate error will be returned instead.
871+
841872
### API Response
842873

843874
- All method supports JSON-RPC standards for success response and not supported for error response(V2 methods are exceptions).

0 commit comments

Comments
 (0)