diff --git a/README.md b/README.md index 8329aa3..feb307b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # dapi-go -A client library that talks to the [Dapi](https://dapi.co) [API](https://api.dapi.co). +A client library that talks to the [Dapi](https://dapi.com) [API](https://api.dapi.com). ## Quickstart diff --git a/constants/url.go b/constants/url.go index c1a8762..4e6c305 100644 --- a/constants/url.go +++ b/constants/url.go @@ -36,11 +36,11 @@ type dapiEndpoints struct { OPERATION_URLS operationEndpoints } -const DD_URL = "https://dd.dapi.co" +const DD_URL = "https://dd.dapi.com" // DAPI_URL is the base var that holds all supported API endpoints var DAPI_URL = &dapiEndpoints{ - BASE_URL: "https://api.dapi.co/v2", + BASE_URL: "https://api.dapi.com/v2", DATA_URLS: dataEndpoints{ GET_IDENTITY: "/data/identity/get", GET_ACCOUNTS: "/data/accounts/get", diff --git a/request/request.go b/request/request.go index 733af7f..adb5ed3 100644 --- a/request/request.go +++ b/request/request.go @@ -129,7 +129,7 @@ func DapiSDKRequest(body []byte, header http.Header) ([]byte, error) { } request.Header.Set("Content-Type", "application/json") - request.Header.Set("Host", "dd.dapi.co") + request.Header.Set("Host", "dd.dapi.com") resp, err := client.Do(request) if err != nil {