swagger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 21 Imported by: 0

README

Go API client for swagger

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: version not set
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./swagger"

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
TxServiceApi TxServiceBroadcast Post /api/v1/broadcast
TxServiceApi TxServiceCall Post /api/v1/call
TxServiceApi TxServiceChainInfo Get /api/v1/chain_info
TxServiceApi TxServiceEstimatePrice Post /api/v1/estimate_price
TxServiceApi TxServiceGetAccount Get /api/v1/accounts/{identifier}
TxServiceApi TxServiceGetConfig Get /api/v1/config
TxServiceApi TxServiceGetSchema Get /api/v1/databases/{dbid}/schema
TxServiceApi TxServiceListDatabases Get /api/v1/{owner}/databases
TxServiceApi TxServicePing Get /api/v1/ping
TxServiceApi TxServiceQuery Post /api/v1/query
TxServiceApi TxServiceTxQuery Post /api/v1/tx_query

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Documentation

Overview

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* kwil/tx/v1/account.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	TxServiceApi *TxServiceApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the kwil/tx/v1/account.proto API vversion not set In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type ExtensionsExtensionConfig

type ExtensionsExtensionConfig struct {
	Argument string `json:"argument,omitempty"`
	Value    string `json:"value,omitempty"`
}

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type RpcStatus

type RpcStatus struct {
	Code    int32                    `json:"code,omitempty"`
	Message string                   `json:"message,omitempty"`
	Details []map[string]interface{} `json:"details,omitempty"`
}

type TxAccount

type TxAccount struct {
	Identifier string `json:"identifier,omitempty"`
	Balance    string `json:"balance,omitempty"`
	Nonce      string `json:"nonce,omitempty"`
}

type TxAccountStatus

type TxAccountStatus string
const (
	LATEST_TxAccountStatus  TxAccountStatus = "latest"
	PENDING_TxAccountStatus TxAccountStatus = "pending"
)

List of txAccountStatus

type TxAction

type TxAction struct {
	Name        string   `json:"name,omitempty"`
	Public      bool     `json:"public,omitempty"`
	Inputs      []string `json:"inputs,omitempty"`
	Statements  []string `json:"statements,omitempty"`
	Mutability  string   `json:"mutability,omitempty"`
	Auxiliaries []string `json:"auxiliaries,omitempty"`
	Annotations []string `json:"annotations,omitempty"`
}

type TxAttribute

type TxAttribute struct {
	Type_ string `json:"type,omitempty"`
	Value string `json:"value,omitempty"`
}

type TxBroadcastRequest

type TxBroadcastRequest struct {
	Tx   *TxTransaction   `json:"tx,omitempty"`
	Sync *TxBroadcastSync `json:"sync,omitempty"`
}

type TxBroadcastResponse

type TxBroadcastResponse struct {
	TxHash string `json:"tx_hash,omitempty"`
}

type TxBroadcastSync

type TxBroadcastSync string
const (
	ASYNC_TxBroadcastSync  TxBroadcastSync = "async"
	SYNC_TxBroadcastSync   TxBroadcastSync = "sync"
	COMMIT_TxBroadcastSync TxBroadcastSync = "commit"
)

List of txBroadcastSync

type TxCallRequest

type TxCallRequest struct {
	Body *TxCallRequestBody `json:"body,omitempty"`
	// auth_type is the type of authenticator that will be used to derive identifier from the sender.
	AuthType string `json:"auth_type,omitempty"`
	Sender   string `json:"sender,omitempty"`
}

type TxCallRequestBody

type TxCallRequestBody struct {
	Payload string `json:"payload,omitempty"`
}

type TxCallResponse

type TxCallResponse struct {
	Result string `json:"result,omitempty"`
}

type TxChainInfoResponse

type TxChainInfoResponse struct {
	ChainId string `json:"chain_id,omitempty"`
	Height  string `json:"height,omitempty"`
	Hash    string `json:"hash,omitempty"`
}

type TxColumn

type TxColumn struct {
	Name       string        `json:"name,omitempty"`
	Type_      string        `json:"type,omitempty"`
	Attributes []TxAttribute `json:"attributes,omitempty"`
}

type TxDatasetInfo

type TxDatasetInfo struct {
	Name  string `json:"name,omitempty"`
	Owner string `json:"owner,omitempty"`
	Dbid  string `json:"dbid,omitempty"`
}

type TxEstimatePriceRequest

type TxEstimatePriceRequest struct {
	Tx *TxTransaction `json:"tx,omitempty"`
}

type TxEstimatePriceResponse

type TxEstimatePriceResponse struct {
	Price string `json:"price,omitempty"`
}

type TxExtensions

type TxExtensions struct {
	Name           string                      `json:"name,omitempty"`
	Initialization []ExtensionsExtensionConfig `json:"initialization,omitempty"`
	Alias          string                      `json:"alias,omitempty"`
}

type TxForeignKey

type TxForeignKey struct {
	ChildKeys   []string             `json:"child_keys,omitempty"`
	ParentKeys  []string             `json:"parent_keys,omitempty"`
	ParentTable string               `json:"parent_table,omitempty"`
	Actions     []TxForeignKeyAction `json:"actions,omitempty"`
}

type TxForeignKeyAction

type TxForeignKeyAction struct {
	On string `json:"on,omitempty"`
	Do string `json:"do,omitempty"`
}

type TxGetAccountResponse

type TxGetAccountResponse struct {
	Account *TxAccount `json:"account,omitempty"`
}

type TxGetConfigResponse

type TxGetConfigResponse struct {
	ChainCode       string `json:"chain_code,omitempty"`
	ProviderAddress string `json:"provider_address,omitempty"`
	PoolAddress     string `json:"pool_address,omitempty"`
}

type TxGetSchemaResponse

type TxGetSchemaResponse struct {
	Schema *TxSchema `json:"schema,omitempty"`
}

type TxIndex

type TxIndex struct {
	Name    string   `json:"name,omitempty"`
	Columns []string `json:"columns,omitempty"`
	Type_   string   `json:"type,omitempty"`
}

type TxListDatabasesResponse

type TxListDatabasesResponse struct {
	Databases []TxDatasetInfo `json:"databases,omitempty"`
}

type TxNodeInfoResponse

type TxNodeInfoResponse struct {
	NodeId     string `json:"node_id,omitempty"`
	PublicKey  string `json:"public_key,omitempty"`
	P2pAddress string `json:"p2p_address,omitempty"`
}

NodeInfoResponse is a node's information.

type TxPingResponse

type TxPingResponse struct {
	Message string `json:"message,omitempty"`
}

type TxQueryRequest

type TxQueryRequest struct {
	Dbid  string `json:"dbid,omitempty"`
	Query string `json:"query,omitempty"`
}

type TxQueryResponse

type TxQueryResponse struct {
	Result string `json:"result,omitempty"`
}

type TxSchema

type TxSchema struct {
	Owner      string         `json:"owner,omitempty"`
	Name       string         `json:"name,omitempty"`
	Tables     []TxTable      `json:"tables,omitempty"`
	Actions    []TxAction     `json:"actions,omitempty"`
	Extensions []TxExtensions `json:"extensions,omitempty"`
}

type TxServiceApiService

type TxServiceApiService service

func (*TxServiceApiService) TxServiceBroadcast

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return TxBroadcastResponse

func (*TxServiceApiService) TxServiceCall

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return TxCallResponse

func (*TxServiceApiService) TxServiceChainInfo

func (a *TxServiceApiService) TxServiceChainInfo(ctx context.Context) (TxChainInfoResponse, *http.Response, error)

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return TxChainInfoResponse

func (*TxServiceApiService) TxServiceEstimatePrice

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return TxEstimatePriceResponse

func (*TxServiceApiService) TxServiceGetAccount

func (a *TxServiceApiService) TxServiceGetAccount(ctx context.Context, identifier string, localVarOptionals *TxServiceApiTxServiceGetAccountOpts) (TxGetAccountResponse, *http.Response, error)

func (*TxServiceApiService) TxServiceGetConfig

func (a *TxServiceApiService) TxServiceGetConfig(ctx context.Context) (TxGetConfigResponse, *http.Response, error)

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return TxGetConfigResponse

func (*TxServiceApiService) TxServiceGetSchema

func (a *TxServiceApiService) TxServiceGetSchema(ctx context.Context, dbid string) (TxGetSchemaResponse, *http.Response, error)

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param dbid

@return TxGetSchemaResponse

func (*TxServiceApiService) TxServiceListDatabases

func (a *TxServiceApiService) TxServiceListDatabases(ctx context.Context, owner string) (TxListDatabasesResponse, *http.Response, error)

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param owner

@return TxListDatabasesResponse

func (*TxServiceApiService) TxServicePing

func (a *TxServiceApiService) TxServicePing(ctx context.Context, localVarOptionals *TxServiceApiTxServicePingOpts) (TxPingResponse, *http.Response, error)

func (*TxServiceApiService) TxServiceQuery

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return TxQueryResponse

func (*TxServiceApiService) TxServiceTxQuery

TxServiceApiService

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return TxTxQueryResponse

type TxServiceApiTxServiceGetAccountOpts

type TxServiceApiTxServiceGetAccountOpts struct {
	Status optional.String
}

type TxServiceApiTxServicePingOpts

type TxServiceApiTxServicePingOpts struct {
	Message optional.String
}

type TxSignature

type TxSignature struct {
	SignatureBytes string `json:"signature_bytes,omitempty"`
	SignatureType  string `json:"signature_type,omitempty"`
}

type TxTable

type TxTable struct {
	Name        string         `json:"name,omitempty"`
	Columns     []TxColumn     `json:"columns,omitempty"`
	Indexes     []TxIndex      `json:"indexes,omitempty"`
	ForeignKeys []TxForeignKey `json:"foreign_keys,omitempty"`
}

type TxTransaction

type TxTransaction struct {
	Body          *TxTransactionBody `json:"body,omitempty"`
	Signature     *TxSignature       `json:"signature,omitempty"`
	Sender        string             `json:"sender,omitempty"`
	Serialization string             `json:"serialization,omitempty"`
}

type TxTransactionBody

type TxTransactionBody struct {
	Payload     string `json:"payload,omitempty"`
	PayloadType string `json:"payload_type,omitempty"`
	Fee         string `json:"fee,omitempty"`
	Nonce       string `json:"nonce,omitempty"`
	ChainId     string `json:"chain_id,omitempty"`
	Description string `json:"description,omitempty"`
}

type TxTransactionResult

type TxTransactionResult struct {
	Code      int64  `json:"code,omitempty"`
	Log       string `json:"log,omitempty"`
	GasUsed   string `json:"gas_used,omitempty"`
	GasWanted string `json:"gas_wanted,omitempty"`
	// Data contains the output of the transaction.
	Data   string   `json:"data,omitempty"`
	Events []string `json:"events,omitempty"`
}

type TxTxQueryRequest

type TxTxQueryRequest struct {
	TxHash string `json:"tx_hash,omitempty"`
}

type TxTxQueryResponse

type TxTxQueryResponse struct {
	Hash     string               `json:"hash,omitempty"`
	Height   string               `json:"height,omitempty"`
	Tx       *TxTransaction       `json:"tx,omitempty"`
	TxResult *TxTransactionResult `json:"tx_result,omitempty"`
}

Jump to

Keyboard shortcuts

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