Versions in this module Expand all Collapse all v1 v1.2.0 Jun 21, 2024 v1.0.0 Mar 29, 2024 Changes in this version + var ErrRPC = errors.New("rpc error") + type RPCClient struct + func NewRPCClient(rpcAddress string) (*RPCClient, error) + func (c *RPCClient) AddPeer(address string, isPermanent bool) error + func (c *RPCClient) Address() string + func (c *RPCClient) Ban(ip string) (*appmessage.BanResponseMessage, error) + func (c *RPCClient) Close() error + func (c *RPCClient) EstimateNetworkHashesPerSecond(startHash string, windowSize uint32) (*appmessage.EstimateNetworkHashesPerSecondResponseMessage, error) + func (c *RPCClient) GetBalanceByAddress(address string) (*appmessage.GetBalanceByAddressResponseMessage, error) + func (c *RPCClient) GetBalancesByAddresses(addresses []string) (*appmessage.GetBalancesByAddressesResponseMessage, error) + func (c *RPCClient) GetBlock(hash string, includeTransactions bool) (*appmessage.GetBlockResponseMessage, error) + func (c *RPCClient) GetBlockCount() (*appmessage.GetBlockCountResponseMessage, error) + func (c *RPCClient) GetBlockDAGInfo() (*appmessage.GetBlockDAGInfoResponseMessage, error) + func (c *RPCClient) GetBlockTemplate(miningAddress, extraData string) (*appmessage.GetBlockTemplateResponseMessage, error) + func (c *RPCClient) GetBlocks(lowHash string, includeBlocks bool, includeTransactions bool) (*appmessage.GetBlocksResponseMessage, error) + func (c *RPCClient) GetCoinSupply() (*appmessage.GetCoinSupplyResponseMessage, error) + func (c *RPCClient) GetConnectedPeerInfo() (*appmessage.GetConnectedPeerInfoResponseMessage, error) + func (c *RPCClient) GetHeaders(startHash string, limit uint64, isAscending bool) (*appmessage.GetHeadersResponseMessage, error) + func (c *RPCClient) GetInfo() (*appmessage.GetInfoResponseMessage, error) + func (c *RPCClient) GetMempoolEntries(includeOrphanPool bool, filterTransactionPool bool) (*appmessage.GetMempoolEntriesResponseMessage, error) + func (c *RPCClient) GetMempoolEntriesByAddresses(addresses []string, includeOrphanPool bool, filterTransactionPool bool) (*appmessage.GetMempoolEntriesByAddressesResponseMessage, error) + func (c *RPCClient) GetMempoolEntry(txID string, includeOrphanPool bool, filterTransactionPool bool) (*appmessage.GetMempoolEntryResponseMessage, error) + func (c *RPCClient) GetPeerAddresses() (*appmessage.GetPeerAddressesResponseMessage, error) + func (c *RPCClient) GetSelectedTipHash() (*appmessage.GetSelectedTipHashResponseMessage, error) + func (c *RPCClient) GetSubnetwork(subnetworkID string) (*appmessage.GetSubnetworkResponseMessage, error) + func (c *RPCClient) GetUTXOsByAddresses(addresses []string) (*appmessage.GetUTXOsByAddressesResponseMessage, error) + func (c *RPCClient) GetVirtualSelectedParentBlueScore() (*appmessage.GetVirtualSelectedParentBlueScoreResponseMessage, error) + func (c *RPCClient) GetVirtualSelectedParentChainFromBlock(startHash string, includeAcceptedTransactionIDs bool) (*appmessage.GetVirtualSelectedParentChainFromBlockResponseMessage, error) + func (c *RPCClient) Reconnect() error + func (c *RPCClient) RegisterForBlockAddedNotifications(onBlockAdded func(notification *appmessage.BlockAddedNotificationMessage)) error + func (c *RPCClient) RegisterForFinalityConflictsNotifications(...) error + func (c *RPCClient) RegisterForNewBlockTemplateNotifications(...) error + func (c *RPCClient) RegisterForUTXOsChangedNotifications(addresses []string, ...) error + func (c *RPCClient) RegisterForVirtualDaaScoreChangedNotifications(...) error + func (c *RPCClient) RegisterForVirtualSelectedParentBlueScoreChangedNotifications(onVirtualSelectedParentBlueScoreChanged func(...)) error + func (c *RPCClient) RegisterForVirtualSelectedParentChainChangedNotifications(includeAcceptedTransactionIDs bool, ...) error + func (c *RPCClient) RegisterPruningPointUTXOSetNotifications(onPruningPointUTXOSetNotifications func()) error + func (c *RPCClient) ResolveFinalityConflict(finalityBlockHash string) (*appmessage.ResolveFinalityConflictResponseMessage, error) + func (c *RPCClient) SetLogger(backend *logger.Backend, level logger.Level) + func (c *RPCClient) SetTimeout(timeout time.Duration) + func (c *RPCClient) SubmitBlock(block *externalapi.DomainBlock) (appmessage.RejectReason, error) + func (c *RPCClient) SubmitBlockAlsoIfNonDAA(block *externalapi.DomainBlock) (appmessage.RejectReason, error) + func (c *RPCClient) SubmitTransaction(transaction *appmessage.RPCTransaction, allowOrphan bool) (*appmessage.SubmitTransactionResponseMessage, error) + func (c *RPCClient) Unban(ip string) (*appmessage.UnbanResponseMessage, error) + func (c *RPCClient) UnregisterPruningPointUTXOSetNotifications() error