Documentation ¶
Index ¶
- type CosmosProtocol
- func (p *CosmosProtocol) GetBalance(address common.Address) (*big.Int, error)
- func (p *CosmosProtocol) GetBlockByHash(hash common.Hash) (*types.Block, error)
- func (p *CosmosProtocol) GetBlockByNumber(number uint64) (*types.Block, error)
- func (p *CosmosProtocol) GetTransactionByHash(hash common.Hash) (*types.Transaction, bool, error)
- func (p *CosmosProtocol) GetTransactionCount(address common.Address) (uint64, error)
- func (p *CosmosProtocol) GetTransactionReceipt(hash common.Hash) (*types.Receipt, error)
- func (p *CosmosProtocol) SendTransaction(tx *types.Transaction) error
- func (p *CosmosProtocol) Start(ctx context.Context) error
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 ¶
GetBalance gets the balance of an account on the Cosmos protocol
func (*CosmosProtocol) GetBlockByHash ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.