Skip to content

Commit 6aca9c6

Browse files
authored
Update consume-bids-mev-commit.mdx
1 parent dc14328 commit 6aca9c6

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

get-started/providers/consume-bids-mev-commit.mdx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,22 @@ There are 4 options to communicate with the API
1313

1414
* We recommend using the official go RPC client to communicate with the mev-commit API. In order to use this in go code, you can go get the mev-commit package and then import the generated client.
1515

16+
- For Go developers, leveraging the official Go RPC client is the recommended approach. Start by installing the mev-commit package:
17+
18+
```bash ❯_ terminal
19+
go get github.com/primevprotocol/mev-commit
20+
```
21+
22+
- Then, incorporate the generated client into your Go application as follows:
23+
1624
```go
17-
import providerapiv1 "[github.com/primevprotocol/mev-commit/gen/go/rpc/providerapi/v1](<http://github.com/primevprotocol/mev-commit/gen/go/rpc/providerapi/v1>)"
25+
import providerapiv1 "github.com/primevprotocol/mev-commit/gen/go/rpc/providerapi/v1"
1826

1927
conn, err = grpc.DialContext(
20-
context.Background(),
21-
"localhost:13524",
22-
grpc.WithBlock(),
23-
grpc.WithTransportCredentials(insecure.NewCredentials()),
28+
context.Background(),
29+
"localhost:13524",
30+
grpc.WithBlock(),
31+
grpc.WithTransportCredentials(insecure.NewCredentials()),
2432
)
2533

2634
if err != nil {

0 commit comments

Comments
 (0)