Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendOperation ¶
func SendOperation(wlt *wallet.Wallet, massaClient NodeFetcherInterface, operation sendOperation.Operation, fee uint64) (*sendOperation.OperationResponse, error)
Types ¶
type AccountInfos ¶
type NetworkInfo ¶
type NetworkInfo struct { Network string `json:"network"` URL string `json:"url"` DNS string `json:"dns"` }
func GetNetworkInfo ¶
func GetNetworkInfo() (*NetworkInfo, error)
retrieve network info from endpoint
type NodeFetcher ¶
type NodeFetcher struct{}
func NewNodeFetcher ¶
func NewNodeFetcher() *NodeFetcher
func (*NodeFetcher) GetAccountsInfos ¶
func (n *NodeFetcher) GetAccountsInfos(wlt []wallet.Wallet) ([]AccountInfos, error)
func (*NodeFetcher) MakeOperation ¶
func (n *NodeFetcher) MakeOperation(fee uint64, operation sendOperation.Operation) ([]byte, error)
MakeOperation makes a new operation by calling Thyra source code sendOperation.MakeOperation function.
func (*NodeFetcher) MakeRPCCall ¶
MakeRPCCall makes a new RPC call by calling Thyra source code sendOperation.MakeRPCCall function.
Click to show internal directories.
Click to hide internal directories.