Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAddress(as string) *types.Error
- type Client
- func (ic *Client) EstimateStep(tx client_v1.Transaction) (*client_v1.Response, error)
- func (ic *Client) GetBalance(params *RosettaTypes.AccountIdentifier) (*RosettaTypes.AccountBalanceResponse, error)
- func (ic *Client) GetBlock(params *RosettaTypes.PartialBlockIdentifier) (*RosettaTypes.Block, error)
- func (ic *Client) GetPeer() ([]*RosettaTypes.Peer, error)
- func (ic *Client) GetTransaction(params *RosettaTypes.TransactionIdentifier) (*RosettaTypes.Transaction, error)
- func (ic *Client) SendTransaction(tx client_v1.Transaction) error
Constants ¶
View Source
const AddressStringLength = 42
Variables ¶
View Source
var ( // ErrInvalidAddress is returned when an address // is not valid. ErrInvalidAddress = &types.Error{ Code: 12, Message: "Invalid address", } )
Functions ¶
func CheckAddress ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) EstimateStep ¶
func (*Client) GetBalance ¶
func (ic *Client) GetBalance(params *RosettaTypes.AccountIdentifier) (*RosettaTypes.AccountBalanceResponse, error)
func (*Client) GetBlock ¶
func (ic *Client) GetBlock(params *RosettaTypes.PartialBlockIdentifier) (*RosettaTypes.Block, error)
func (*Client) GetTransaction ¶
func (ic *Client) GetTransaction(params *RosettaTypes.TransactionIdentifier) (*RosettaTypes.Transaction, error)
func (*Client) SendTransaction ¶
func (ic *Client) SendTransaction(tx client_v1.Transaction) error
Click to show internal directories.
Click to hide internal directories.