Do not export when not required
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2024-03-23 14:06:38 -06:00
parent 7d52632af6
commit 92a6246052
3 changed files with 9 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import (
"net/url"
)
type Address struct {
type addressData struct {
Address string `json:"address"`
ChainStats struct {
FundedTxoCount int `json:"funded_txo_count"`
@@ -25,8 +25,8 @@ type Address struct {
// GetAddress returns an Address struct populated with data from blockstream.info
// for a given BTC address
func (c *client) getAddress(address string) (*Address, error) {
addressResponse := &Address{}
func (c *client) getAddress(address string) (*addressData, error) {
addressResponse := &addressData{}
err := c.get(fmt.Sprintf("address/%s", address), addressResponse, url.Values{})
if err != nil {