Versions in this module Expand all Collapse all v2 v2.0.3 Dec 26, 2022 Changes in this version + var NotFound = errors.New("not found") + type Client interface + AddNode func(ctx context.Context, peerId, address string) error + BatchLiveCells func(ctx context.Context, batch []types.BatchLiveCellItem) error + BatchTransactions func(ctx context.Context, batch []types.BatchTransactionItem) error + CalculateDaoMaximumWithdraw func(ctx context.Context, point *types.OutPoint, hash types.Hash) (uint64, error) + CallContext func(ctx context.Context, result interface{}, method string, args ...interface{}) error + ClearBannedAddresses func(ctx context.Context) error + ClearTxPool func(ctx context.Context) error + Close func() + DryRunTransaction func(ctx context.Context, transaction *types.Transaction) (*types.DryRunTransactionResult, error) + EstimateCycles func(ctx context.Context, transaction *types.Transaction) (*types.EstimateCycles, error) + GetBannedAddresses func(ctx context.Context) ([]*types.BannedAddress, error) + GetBlock func(ctx context.Context, hash types.Hash) (*types.Block, error) + GetBlockByNumber func(ctx context.Context, number uint64) (*types.Block, error) + GetBlockEconomicState func(ctx context.Context, hash types.Hash) (*types.BlockEconomicState, error) + GetBlockHash func(ctx context.Context, number uint64) (*types.Hash, error) + GetBlockMedianTime func(ctx context.Context, blockHash types.Hash) (uint64, error) + GetBlockchainInfo func(ctx context.Context) (*types.BlockchainInfo, error) + GetCells func(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.LiveCells, error) + GetCellsCapacity func(ctx context.Context, searchKey *indexer.SearchKey) (*indexer.Capacity, error) + GetConsensus func(ctx context.Context) (*types.Consensus, error) + GetCurrentEpoch func(ctx context.Context) (*types.Epoch, error) + GetEpochByNumber func(ctx context.Context, number uint64) (*types.Epoch, error) + GetFeeRateStatics func(ctx context.Context, target uint64) (*types.FeeRateStatics, error) + GetForkBlock func(ctx context.Context, blockHash types.Hash) (*types.Block, error) + GetHeader func(ctx context.Context, hash types.Hash) (*types.Header, error) + GetHeaderByNumber func(ctx context.Context, number uint64) (*types.Header, error) + GetIndexerTip func(ctx context.Context) (*indexer.TipHeader, error) + GetLiveCell func(ctx context.Context, outPoint *types.OutPoint, withData bool) (*types.CellWithStatus, error) + GetPeers func(ctx context.Context) ([]*types.RemoteNode, error) + GetRawTxPool func(ctx context.Context) (*types.RawTxPool, error) + GetTipBlockNumber func(ctx context.Context) (uint64, error) + GetTipHeader func(ctx context.Context) (*types.Header, error) + GetTransaction func(ctx context.Context, hash types.Hash) (*types.TransactionWithStatus, error) + GetTransactionProof func(ctx context.Context, txHashes []string, blockHash *types.Hash) (*types.TransactionProof, error) + GetTransactions func(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.TxsWithCell, error) + GetTransactionsGrouped func(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.TxsWithCells, error) + LocalNodeInfo func(ctx context.Context) (*types.LocalNode, error) + PingPeers func(ctx context.Context) error + RemoveNode func(ctx context.Context, peerId string) error + SendTransaction func(ctx context.Context, tx *types.Transaction) (*types.Hash, error) + SetBan func(ctx context.Context, address string, command string, banTime uint64, ...) error + SetNetworkActive func(ctx context.Context, state bool) error + SyncState func(ctx context.Context) (*types.SyncState, error) + TxPoolInfo func(ctx context.Context) (*types.TxPoolInfo, error) + VerifyTransactionProof func(ctx context.Context, proof *types.TransactionProof) ([]*types.Hash, error) + func Dial(url string) (Client, error) + func DialContext(ctx context.Context, url string) (Client, error) + func NewClient(c *rpc.Client) Client