This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Fork of [ethrpc](https://github.com/onrik/ethrpc) with additional [Flashbots RPC
10
10
## Usage
11
11
12
12
``` go
13
- rpc := flashbotsrpc.NewFlashbotsRPC (" https://relay.flashbots.net" )
13
+ rpc := flashbotsrpc.New (" https://relay.flashbots.net" )
14
14
15
15
// Creating a new private key here for testing; you probably would want to use an existing one
16
16
privateKey , _ := crypto.GenerateKey ()
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ func main() {
60
60
return
61
61
}
62
62
63
- rpc := flashbotsrpc .NewFlashbotsRPC (* mevGethUriPtr )
63
+ rpc := flashbotsrpc .New (* mevGethUriPtr )
64
64
rpc .Debug = * debugPtr
65
65
66
66
privateKey , _ := crypto .GenerateKey ()
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
var privateKey , _ = crypto .GenerateKey () // creating a new private key for testing. you probably want to use an existing key.
11
11
12
12
func main () {
13
- rpc := flashbotsrpc .NewFlashbotsRPC ("https://relay.flashbots.net" )
13
+ rpc := flashbotsrpc .New ("https://relay.flashbots.net" )
14
14
15
15
// Query relay for user stats
16
16
result , err := rpc .FlashbotsGetUserStats (privateKey , 13281018 )
You can’t perform that action at this time.
0 commit comments