rest

package
v12.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchedQuerierHandler

func BatchedQuerierHandler(clientCtx client.Context) http.HandlerFunc

BatchedQuerierHandler returns a handler that performs batch queries to smart contracts.

Types

type BatchQueryRequest

type BatchQueryRequest struct {
	QueryRequests []wasmtypes.QuerySmartContractStateRequest `json:"requests"`
}

type BatchQueryResponse

type BatchQueryResponse struct {
	Index int                          `json:"index"`
	Error string                       `json:"error"`
	Data  wasmtypes.RawContractMessage `json:"result"`
}

type QueryResponse

type QueryResponse struct {
	Error   string                `json:"error,omitempty"`
	Results []*BatchQueryResponse `json:"results,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL