web3

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package web3 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfg *Configuration) (*Client, error)

func (*Client) PerformRpcCall

func (api *Client) PerformRpcCall(ctx context.Context, params PerformRpcCallParams) (map[string]interface{}, error)

func (*Client) PerformRpcCallAgainstFullNode

func (api *Client) PerformRpcCallAgainstFullNode(ctx context.Context, params PerformRpcCallAgainstFullNodeParams) (map[string]interface{}, error)

type Configuration

type Configuration struct {
	ApiKey string
	ApiURL string
	API    api
}

func NewConfiguration

func NewConfiguration(params ConfigurationParams) (*Configuration, error)

type ConfigurationParams

type ConfigurationParams struct {
	ChainId uint64
	ApiUrl  string
	ApiKey  string
}

type PerformRpcCallAgainstFullNodeParams

type PerformRpcCallAgainstFullNodeParams struct {
	PostChainIdJSONBody
}

func (*PerformRpcCallAgainstFullNodeParams) Validate

func (params *PerformRpcCallAgainstFullNodeParams) Validate() error

type PerformRpcCallParams

type PerformRpcCallParams struct {
	PostChainIdNodeTypeParamsNodeType
	PostChainIdJSONBody
}

func (*PerformRpcCallParams) Validate

func (params *PerformRpcCallParams) Validate() error

type PostChainIdJSONBody

type PostChainIdJSONBody struct {
	// Id An identifier established by the client
	Id string `json:"id,omitempty"`

	// Jsonrpc JSON-RPC version, typically "2.0"
	Jsonrpc string `json:"jsonrpc"`

	// Method The name of the RPC method to be invoked
	Method string `json:"method"`

	// Params Parameters for the RPC method
	Params []string `json:"params,omitempty"`
}

PostChainIdJSONBody defines parameters for PostChainId.

type PostChainIdJSONRequestBody

type PostChainIdJSONRequestBody PostChainIdJSONBody

PostChainIdJSONRequestBody defines body for PostChainId for application/json ContentType.

type PostChainIdNodeTypeJSONBody

type PostChainIdNodeTypeJSONBody struct {
	// Id An identifier established by the client
	Id int `json:"id,omitempty"`

	// Jsonrpc JSON-RPC version, typically "2.0"
	Jsonrpc string `json:"jsonrpc,omitempty"`

	// Method The name of the RPC method to be invoked
	Method string `json:"method,omitempty"`

	// Params Parameters for the RPC method
	Params []string `json:"params,omitempty"`
}

PostChainIdNodeTypeJSONBody defines parameters for PostChainIdNodeType.

type PostChainIdNodeTypeJSONRequestBody

type PostChainIdNodeTypeJSONRequestBody PostChainIdNodeTypeJSONBody

PostChainIdNodeTypeJSONRequestBody defines body for PostChainIdNodeType for application/json ContentType.

type PostChainIdNodeTypeParamsNodeType

type PostChainIdNodeTypeParamsNodeType string

PostChainIdNodeTypeParamsNodeType defines parameters for PostChainIdNodeType.

const (
	Archive PostChainIdNodeTypeParamsNodeType = "archive"
	Full    PostChainIdNodeTypeParamsNodeType = "full"
)

Defines values for PostChainIdNodeTypeParamsNodeType.

Jump to

Keyboard shortcuts

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