Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.75 KB

RequestsApi.md

File metadata and controls

71 lines (44 loc) · 1.75 KB

\RequestsApi

All URIs are relative to http://localhost

Method HTTP request Description
OffLedger Post /v1/requests/offledger Post an off-ledger request

OffLedger

OffLedger(ctx).OffLedgerRequest(offLedgerRequest).Execute()

Post an off-ledger request

Example

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)
    }
}

Path Parameters

Other Parameters

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

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]