All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
OffLedger | Post /v1/requests/offledger | Post an off-ledger request |
OffLedger(ctx).OffLedgerRequest(offLedgerRequest).Execute()
Post an off-ledger request
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
offLedgerRequest := *openapiclient.NewOffLedgerRequest("ChainId_example", "Hex string") // OffLedgerRequest | Offledger request as JSON. Request encoded in Hex
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RequestsApi.OffLedger(context.Background()).OffLedgerRequest(offLedgerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RequestsApi.OffLedger``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiOffLedgerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
offLedgerRequest | OffLedgerRequest | Offledger request as JSON. Request encoded in Hex |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]