From 433596327b8a951fcf612faeb883562402e39d7b Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Mon, 28 Oct 2024 20:27:23 -0400 Subject: [PATCH] fix lint --- api/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/client.go b/api/client.go index 7cf69a26..6a5984a5 100644 --- a/api/client.go +++ b/api/client.go @@ -210,6 +210,12 @@ func (c *Client) ContractRevisions(id types.FileContractID) (resp []explorer.Fil return } +// V2Contract returns the v2 file contract with the specified ID. +func (c *Client) V2Contract(id types.FileContractID) (resp explorer.V2FileContract, err error) { + err = c.c.GET(fmt.Sprintf("/v2/contracts/%s", id), &resp) + return +} + // V2Contracts returns the v2 contracts with the specified IDs. func (c *Client) V2Contracts(ids []types.FileContractID) (resp []explorer.V2FileContract, err error) { err = c.c.POST("/v2/contracts", ids, &resp)