All URIs are relative to http://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
DealEstimatePost | Post /deal/estimate | Estimate the cost of a deal |
DealInfoDealidGet | Get /deal/info/{dealid} | Get Deal Info |
DealProposalPropcidGet | Get /deal/proposal/{propcid} | Get Proposal |
DealQueryMinerGet | Get /deal/query/{miner} | Query Ask |
DealStatusByProposalPropcidGet | Get /deal/status-by-proposal/{propcid} | Get Deal Status by PropCid |
DealStatusMinerPropcidGet | Get /deal/status/{miner}/{propcid} | Deal Status |
DealTransferInProgressGet | Get /deal/transfer/in-progress | Transfer In Progress |
DealTransferStatusPost | Post /deal/transfer/status | Transfer Status |
DealsFailuresGet | Get /deals/failures | Get storage failures for user |
DealsMakeMinerPost | Post /deals/make/{miner} | Make Deal |
DealsStatusDealGet | Get /deals/status/{deal} | Get Deal Status |
PublicDealsFailuresGet | Get /public/deals/failures | Get storage failures |
DealEstimatePost(ctx).Body(body).Execute()
Estimate the cost of a deal
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewMainEstimateDealBody() // MainEstimateDealBody | The size of the deal in bytes, the replication factor, and the duration of the deal in blocks
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealEstimatePost(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealEstimatePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiDealEstimatePostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | MainEstimateDealBody | The size of the deal in bytes, the replication factor, and the duration of the deal in blocks |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealInfoDealidGet(ctx, dealid).Execute()
Get Deal Info
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
dealid := int32(56) // int32 | Deal ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealInfoDealidGet(context.Background(), dealid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealInfoDealidGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
dealid | int32 | Deal ID |
Other parameters are passed through a pointer to a apiDealInfoDealidGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealProposalPropcidGet(ctx, propcid).Execute()
Get Proposal
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
propcid := "propcid_example" // string | Proposal CID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealProposalPropcidGet(context.Background(), propcid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealProposalPropcidGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
propcid | string | Proposal CID |
Other parameters are passed through a pointer to a apiDealProposalPropcidGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealQueryMinerGet(ctx, miner).Execute()
Query Ask
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
miner := "miner_example" // string | CID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealQueryMinerGet(context.Background(), miner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealQueryMinerGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
miner | string | CID |
Other parameters are passed through a pointer to a apiDealQueryMinerGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealStatusByProposalPropcidGet(ctx, propcid).Execute()
Get Deal Status by PropCid
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
propcid := "propcid_example" // string | PropCid
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealStatusByProposalPropcidGet(context.Background(), propcid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealStatusByProposalPropcidGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
propcid | string | PropCid |
Other parameters are passed through a pointer to a apiDealStatusByProposalPropcidGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealStatusMinerPropcidGet(ctx, miner, propcid).Execute()
Deal Status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
miner := "miner_example" // string | Miner
propcid := "propcid_example" // string | Proposal CID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealStatusMinerPropcidGet(context.Background(), miner, propcid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealStatusMinerPropcidGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
miner | string | Miner | |
propcid | string | Proposal CID |
Other parameters are passed through a pointer to a apiDealStatusMinerPropcidGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealTransferInProgressGet(ctx).Execute()
Transfer In Progress
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealTransferInProgressGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealTransferInProgressGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiDealTransferInProgressGetRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealTransferStatusPost(ctx).Execute()
Transfer Status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealTransferStatusPost(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealTransferStatusPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiDealTransferStatusPostRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealsFailuresGet(ctx).Execute()
Get storage failures for user
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealsFailuresGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealsFailuresGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiDealsFailuresGetRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealsMakeMinerPost(ctx, miner).DealRequest(dealRequest).Execute()
Make Deal
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
miner := "miner_example" // string | Miner
dealRequest := "dealRequest_example" // string | Deal Request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealsMakeMinerPost(context.Background(), miner).DealRequest(dealRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealsMakeMinerPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
miner | string | Miner |
Other parameters are passed through a pointer to a apiDealsMakeMinerPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
dealRequest | string | Deal Request |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealsStatusDealGet(ctx, deal).Execute()
Get Deal Status
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
deal := int32(56) // int32 | Deal ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.DealsStatusDealGet(context.Background(), deal).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.DealsStatusDealGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
deal | int32 | Deal ID |
Other parameters are passed through a pointer to a apiDealsStatusDealGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PublicDealsFailuresGet(ctx).Execute()
Get storage failures
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DealsApi.PublicDealsFailuresGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DealsApi.PublicDealsFailuresGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiPublicDealsFailuresGetRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]