Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EncodingConfig params.EncodingConfig Cdc codec.Codec )
Functions ¶
func UnmarshalResponse ¶ added in v3.6.0
func UnmarshalResponse(resp *APIResponse, v interface{}) error
UnmarshalResponse unmarshals the response body into the given interface
func WritePublicFile ¶
Types ¶
type APIClient ¶ added in v3.6.0
APIClient provides methods for making API requests
func NewAPIClient ¶ added in v3.6.0
NewAPIClient creates a new API client with the given base URL
func (*APIClient) GetWithHeaders ¶ added in v3.6.0
func (c *APIClient) GetWithHeaders(endpoint string, headers map[string]string) (*APIResponse, error)
GetWithHeaders sends a GET request and returns the response, allowing custom headers
type APIResponse ¶ added in v3.6.0
APIResponse wraps the standard HTTP response for API calls
Click to show internal directories.
Click to hide internal directories.