node

package
v0.0.0-...-cf96749 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosmosNode

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

CosmosNode represents a Cosmos node

func NewCosmosNode

func NewCosmosNode(nodeURL string, privateKeyHex string) (*CosmosNode, error)

NewCosmosNode creates a new Cosmos node

func (*CosmosNode) GetBalance

func (n *CosmosNode) GetBalance(address common.Address) (*big.Int, error)

GetBalance gets the balance of an account on the Cosmos node

func (*CosmosNode) GetTransactionCount

func (n *CosmosNode) GetTransactionCount(address common.Address) (uint64, error)

GetTransactionCount gets the transaction count of an account on the Cosmos node

func (*CosmosNode) SendTransaction

func (n *CosmosNode) SendTransaction(tx *types.Transaction) error

SendTransaction sends a transaction on the Cosmos node

func (*CosmosNode) Start

func (n *CosmosNode) Start(ctx context.Context) error

Start starts the Cosmos node

Jump to

Keyboard shortcuts

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