diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb6692..8d50a3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## [0.0.7] - 2024-09-12 + +- Adds headers to requests with SDK version & language + ## [0.0.6] - 2024-09-12 ### Added @@ -39,9 +43,9 @@ Initial release of the Coinbase Go SDK -- Support for Staking on External Wallets +- Support for Staking on External Wallets - Full support for Shared ETH Staking - - Partial support for Dedicated ETH Staking + - Partial support for Dedicated ETH Staking - Only stake is supported, unstake will be coming soon - On networks `holesky` and `mainnet` - Support for getting stakeable balances on External Wallets diff --git a/pkg/auth/transport.go b/pkg/auth/transport.go index 4af2f04..8dced5b 100644 --- a/pkg/auth/transport.go +++ b/pkg/auth/transport.go @@ -32,5 +32,14 @@ func (t *transport) RoundTrip(req *http.Request) (*http.Response, error) { req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", jwt)) + req.Header.Set( + "Correlation-Context", + fmt.Sprintf( + "%s,%s", + fmt.Sprintf("%s=%s", "sdk_version", "0.0.7"), + fmt.Sprintf("%s=%s", "sdk_language", "go"), + ), + ) + return t.transport.RoundTrip(req) }