protocol

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 CosmosProtocol

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

CosmosProtocol represents the Cosmos protocol

func NewCosmosProtocol

func NewCosmosProtocol(nodeURL string, privateKeyHex string) (*CosmosProtocol, error)

NewCosmosProtocol creates a new Cosmos protocol

func (*CosmosProtocol) GetBalance

func (p *CosmosProtocol) GetBalance(address common.Address) (*big.Int, error)

GetBalance gets the balance of an account on the Cosmos protocol

func (*CosmosProtocol) GetBlockByHash

func (p *CosmosProtocol) GetBlockByHash(hash common.Hash) (*types.Block, error)

GetBlockByHash gets a block by hash on the Cosmos protocol

func (*CosmosProtocol) GetBlockByNumber

func (p *CosmosProtocol) GetBlockByNumber(number uint64) (*types.Block, error)

GetBlockByNumber gets a block by number on the Cosmos protocol

func (*CosmosProtocol) GetTransactionByHash

func (p *CosmosProtocol) GetTransactionByHash(hash common.Hash) (*types.Transaction, bool, error)

GetTransactionByHash gets a transaction by hash on the Cosmos protocol

func (*CosmosProtocol) GetTransactionCount

func (p *CosmosProtocol) GetTransactionCount(address common.Address) (uint64, error)

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

func (*CosmosProtocol) GetTransactionReceipt

func (p *CosmosProtocol) GetTransactionReceipt(hash common.Hash) (*types.Receipt, error)

GetTransactionReceipt gets a transaction receipt on the Cosmos protocol

func (*CosmosProtocol) SendTransaction

func (p *CosmosProtocol) SendTransaction(tx *types.Transaction) error

SendTransaction sends a transaction on the Cosmos protocol

func (*CosmosProtocol) Start

func (p *CosmosProtocol) Start(ctx context.Context) error

Start starts the Cosmos protocol

Jump to

Keyboard shortcuts

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