Skip to content

πŸ“Š Go SDK for the Relay Data Transparency API on Ethereum πŸ“Š

License

Notifications You must be signed in to change notification settings

quartz-technology/redax-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

redax-go

Go SDK for the Relay Data Transparency API on Ethereum.

Getting Started

To install the SDK in your own go project, run the following command:

go get github.com/quartz-technology/redax-go

Examples

More examples will come soon !

package test

import (
	"context"
	"fmt"
	"testing"

	"github.com/quartz-technology/redax-go/relay"
	"github.com/quartz-technology/redax-go/sdk"
	"github.com/stretchr/testify/require"
)

func TestRedaxSDK(t *testing.T) {
	client, err := relay.NewClient(relay.WithAPIURL("https://boost-relay.flashbots.net"))
	require.NoError(t, err)

	relaySDK := sdk.NewRelaySDK(client)

	// Get the bids delivered.
	bidsDelivered, err := relaySDK.Data().V1().GetBidsDelivered(context.Background(), nil)
	require.NoError(t, err)

	// Print the first bid's value.
	fmt.Println(bidsDelivered[0].Value.String())
}

API

Below is a list of the supported API endpoints:

Name Status
/relay/v1/data/bidtraces/proposer_payload_delivered βœ…
/relay/v1/data/bidtraces/builder_blocks_received βœ…
/relay/v1/data/validator_registration βœ…

Issues

This SDK is still under active development, if you find any bug or have a feature request please submit an appropriate issue here.

Contributing

If you would like to contribute to this project, please refer to the instructions in the dedicated document here.

Authors

This project is a pure open-source contribution to the Ethereum ecosystem. It is currently maintained by the πŸ€– at Quartz Technology.

About

πŸ“Š Go SDK for the Relay Data Transparency API on Ethereum πŸ“Š

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages