rosetta

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// GetAccountBalance returns the balance of the given account.
	GetAccountBalance(accountID string) (uint64, error)

	// GetAccountTransactions returns the transactions of the given account.
	GetAccountTransactions(accountID string) ([]string, error)

	// GetTransaction returns the transaction with the given hash.
	GetTransaction(txHash string) (string, error)

	// GetBlock returns the block with the given hash.
	GetBlock(blockHash string) (string, error)

	// GetBlockTransactions returns the transactions of the given block.
	GetBlockTransactions(blockHash string) ([]string, error)

	// GetBlockTransaction returns the transaction with the given hash in the given block.
	GetBlockTransaction(blockHash, txHash string) (string, error)

	// GetNetworkStatus returns the network status.
	GetNetworkStatus() (string, error)

	// SendTransaction sends the given transaction.
	SendTransaction(tx string) (string, error)
}

Client is the interface that wraps the basic methods of a Rosetta client.

Jump to

Keyboard shortcuts

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