eth_sendRawTransaction
Sends a transaction to beaver. The transaction will stay private.
Also supported under the name: eth_sendPrivateRawTransaction
(exact same RPC).
This RPC accepts a single argument: the hex-encoded, raw transaction.
eth_sendBundle
Sends a bundle to beaver. It will stay private.
This RPC accepts a dictionary of:
minTimestamp
.maxTimestamp
.uuid
and we already have a bundle with an identical one, we'll forget about the old bundle. So we can only have a single bundle with a certain uuid
at all time (and we keep the most recent).refundPercent
set to 50 will result in a transaction being appended after the bundle, paying 0.59 ETH back to the EOA. This is assuming the payout tx will cost beaver 0.01 ETH in fees, which are deduced from the 0.6 ETH payout.from
address of the first transaction.true
. If set to true, will augment your bundle to bump the transactions total priority fee to increase inclusion and block position.Bundle cancellation: Say that you sent a bundle with uuid
"10ba43b9c689ed0242b3". If you want to cancel it entirely, you can send a bundle with the same uuid
, and an empty list of transactions.
Example of sending a bundle:
curl -X POST -H 'Content-Type: application/json' --data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sendBundle",
"params": [
{
"txs" : [
"0x02f8b20181948449bdee618501dcd6500083016b93942dabcea55a12d73191aece59f508b191fb68adac80b844095ea7b300000000000000000000000054e44dbb92dba848ace27f44c0cb4268981ef1cc00000000000000000000000000000000000000000000000052616e065f6915ebc080a0c497b6e53d7cb78e68c37f6186c8bb9e1b8a55c3e22462163495979b25c2caafa052769811779f438b73159c4cc6a05a889da8c1a16e432c2e37e3415c9a0b9887"
],
"blockNumber" : "0x1361bd3"
}
]
}' https://rpc.beaverbuild.org/