Skip to content

Commit

Permalink
feat: add const MainnetHostEU eu-api.koios.rest
Browse files Browse the repository at this point in the history
fix: remove surrounding quotes from tx hash closes #28
  • Loading branch information
mkungla committed Oct 3, 2022
1 parent 61a00a0 commit e9d7655
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion koios.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"net/url"
"runtime"
"strconv"
"strings"
"time"

"github.com/shopspring/decimal"
Expand All @@ -35,6 +36,7 @@ import (
// DefaultOrigin : is default origin header used by api client.
const (
MainnetHost = "api.koios.rest"
MainnetHostEU = "eu-api.koios.rest"
GuildHost = "guild.koios.rest"
TestnetHost = "testnet.koios.rest"
DefaultAPIVersion = "v0"
Expand Down Expand Up @@ -316,7 +318,7 @@ func (v BlockHash) String() string {

// String returns TxHash as string.
func (v TxHash) String() string {
return string(v)
return strings.Trim(string(v), "\"")
}

// String returns EpochNo as string.
Expand Down

0 comments on commit e9d7655

Please sign in to comment.