Documentation ¶
Index ¶
- type CkbApi
- type DefaultCkbApi
- func (cli *DefaultCkbApi) AddNode(ctx context.Context, peerId, address string) error
- func (cli *DefaultCkbApi) BatchLiveCells(ctx context.Context, batch []types.BatchLiveCellItem) error
- func (cli *DefaultCkbApi) BatchTransactions(ctx context.Context, batch []types.BatchTransactionItem) error
- func (cli *DefaultCkbApi) BuildAdjustAccountTransaction(payload *model.BuildAdjustAccountPayload) (*resp.TransferCompletionResponse, error)
- func (cli *DefaultCkbApi) BuildDepositTransaction(payload *model.DepositPayload) (*resp.TransferCompletionResponse, error)
- func (cli *DefaultCkbApi) BuildSmartTransferTransaction(payload *model.SmartTransferPayload) (*resp.TransferCompletionResponse, error)
- func (cli *DefaultCkbApi) BuildTransferTransaction(payload *model.TransferPayload) (*resp.TransferCompletionResponse, error)
- func (cli *DefaultCkbApi) BuildWithdrawTransaction(payload *model.WithdrawPayload) (*resp.TransferCompletionResponse, error)
- func (cli *DefaultCkbApi) CalculateDaoMaximumWithdraw(ctx context.Context, point *types.OutPoint, hash types.Hash) (uint64, error)
- func (cli *DefaultCkbApi) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (cli *DefaultCkbApi) ClearBannedAddresses(ctx context.Context) error
- func (cli *DefaultCkbApi) ClearTxPool(ctx context.Context) error
- func (cli *DefaultCkbApi) Close()
- func (cli *DefaultCkbApi) DryRunTransaction(ctx context.Context, transaction *types.Transaction) (*types.DryRunTransactionResult, error)
- func (cli *DefaultCkbApi) EstimateFeeRate(ctx context.Context, blocks uint64) (*types.EstimateFeeRateResult, error)
- func (cli *DefaultCkbApi) GetBalance(payload *model.GetBalancePayload) (*resp.GetBalanceResponse, error)
- func (cli *DefaultCkbApi) GetBannedAddresses(ctx context.Context) ([]*types.BannedAddress, error)
- func (cli *DefaultCkbApi) GetBlock(ctx context.Context, hash types.Hash) (*types.Block, error)
- func (cli *DefaultCkbApi) GetBlockByNumber(ctx context.Context, number uint64) (*types.Block, error)
- func (cli *DefaultCkbApi) GetBlockEconomicState(ctx context.Context, hash types.Hash) (*types.BlockEconomicState, error)
- func (cli *DefaultCkbApi) GetBlockHash(ctx context.Context, number uint64) (*types.Hash, error)
- func (cli *DefaultCkbApi) GetBlockInfo(payload *model.GetBlockInfoPayload) (*resp.BlockInfo, error)
- func (cli *DefaultCkbApi) GetBlockMedianTime(ctx context.Context, blockHash types.Hash) (uint64, error)
- func (cli *DefaultCkbApi) GetBlockchainInfo(ctx context.Context) (*types.BlockchainInfo, error)
- func (cli *DefaultCkbApi) GetCells(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.LiveCells, error)
- func (cli *DefaultCkbApi) GetCellsCapacity(ctx context.Context, searchKey *indexer.SearchKey) (*indexer.Capacity, error)
- func (cli *DefaultCkbApi) GetConsensus(ctx context.Context) (*types.Consensus, error)
- func (cli *DefaultCkbApi) GetCurrentEpoch(ctx context.Context) (*types.Epoch, error)
- func (cli *DefaultCkbApi) GetDbInfo() (*resp.DBInfo, error)
- func (cli *DefaultCkbApi) GetEpochByNumber(ctx context.Context, number uint64) (*types.Epoch, error)
- func (cli *DefaultCkbApi) GetForkBlock(ctx context.Context, blockHash types.Hash) (*types.Block, error)
- func (cli *DefaultCkbApi) GetHeader(ctx context.Context, hash types.Hash) (*types.Header, error)
- func (cli *DefaultCkbApi) GetHeaderByNumber(ctx context.Context, number uint64) (*types.Header, error)
- func (cli *DefaultCkbApi) GetLiveCell(ctx context.Context, outPoint *types.OutPoint, withData bool) (*types.CellWithStatus, error)
- func (cli *DefaultCkbApi) GetMercuryInfo() (*resp.MercuryInfo, error)
- func (cli *DefaultCkbApi) GetPeers(ctx context.Context) ([]*types.Node, error)
- func (cli *DefaultCkbApi) GetRawTxPool(ctx context.Context) (*types.RawTxPool, error)
- func (cli *DefaultCkbApi) GetSpentTransactionWithTransactionInfo(payload *model.GetSpentTransactionPayload) (*resp.TransactionInfoWrapper, error)
- func (cli *DefaultCkbApi) GetSpentTransactionWithTransactionView(payload *model.GetSpentTransactionPayload) (*resp.TransactionViewWrapper, error)
- func (cli *DefaultCkbApi) GetTip(ctx context.Context) (*indexer.TipHeader, error)
- func (cli *DefaultCkbApi) GetTipBlockNumber(ctx context.Context) (uint64, error)
- func (cli *DefaultCkbApi) GetTipHeader(ctx context.Context) (*types.Header, error)
- func (cli *DefaultCkbApi) GetTransaction(ctx context.Context, hash types.Hash) (*types.TransactionWithStatus, error)
- func (cli *DefaultCkbApi) GetTransactionInfo(txHash string) (*resp.GetTransactionInfoResponse, error)
- func (cli *DefaultCkbApi) GetTransactionProof(ctx context.Context, txHashes []string, blockHash *types.Hash) (*types.TransactionProof, error)
- func (cli *DefaultCkbApi) GetTransactions(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, ...) (*indexer.Transactions, error)
- func (cli *DefaultCkbApi) LocalNodeInfo(ctx context.Context) (*types.Node, error)
- func (cli *DefaultCkbApi) PingPeers(ctx context.Context) error
- func (cli *DefaultCkbApi) QueryTransactionsWithTransactionInfo(payload *model.QueryTransactionsPayload) (*resp.PaginationResponseTransactionInfo, error)
- func (cli *DefaultCkbApi) QueryTransactionsWithTransactionView(payload *model.QueryTransactionsPayload) (*resp.PaginationResponseTransactionView, error)
- func (cli *DefaultCkbApi) RegisterAddresses(normalAddresses []string) ([]string, error)
- func (cli *DefaultCkbApi) RemoveNode(ctx context.Context, peerId string) error
- func (cli *DefaultCkbApi) SendTransaction(ctx context.Context, tx *types.Transaction) (*types.Hash, error)
- func (cli *DefaultCkbApi) SendTransactionNoneValidation(ctx context.Context, tx *types.Transaction) (*types.Hash, error)
- func (cli *DefaultCkbApi) SetBan(ctx context.Context, address string, command string, banTime uint64, ...) error
- func (cli *DefaultCkbApi) SetNetworkActive(ctx context.Context, state bool) error
- func (cli *DefaultCkbApi) SyncState(ctx context.Context) (*types.SyncState, error)
- func (cli *DefaultCkbApi) TxPoolInfo(ctx context.Context) (*types.TxPoolInfo, error)
- func (cli *DefaultCkbApi) VerifyTransactionProof(ctx context.Context, proof *types.TransactionProof) ([]*types.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultCkbApi ¶
type DefaultCkbApi struct {
// contains filtered or unexported fields
}
func (*DefaultCkbApi) AddNode ¶
func (cli *DefaultCkbApi) AddNode(ctx context.Context, peerId, address string) error
func (*DefaultCkbApi) BatchLiveCells ¶
func (cli *DefaultCkbApi) BatchLiveCells(ctx context.Context, batch []types.BatchLiveCellItem) error
func (*DefaultCkbApi) BatchTransactions ¶
func (cli *DefaultCkbApi) BatchTransactions(ctx context.Context, batch []types.BatchTransactionItem) error
func (*DefaultCkbApi) BuildAdjustAccountTransaction ¶ added in v0.43.2
func (cli *DefaultCkbApi) BuildAdjustAccountTransaction(payload *model.BuildAdjustAccountPayload) (*resp.TransferCompletionResponse, error)
func (*DefaultCkbApi) BuildDepositTransaction ¶
func (cli *DefaultCkbApi) BuildDepositTransaction(payload *model.DepositPayload) (*resp.TransferCompletionResponse, error)
func (*DefaultCkbApi) BuildSmartTransferTransaction ¶ added in v0.43.2
func (cli *DefaultCkbApi) BuildSmartTransferTransaction(payload *model.SmartTransferPayload) (*resp.TransferCompletionResponse, error)
func (*DefaultCkbApi) BuildTransferTransaction ¶
func (cli *DefaultCkbApi) BuildTransferTransaction(payload *model.TransferPayload) (*resp.TransferCompletionResponse, error)
func (*DefaultCkbApi) BuildWithdrawTransaction ¶
func (cli *DefaultCkbApi) BuildWithdrawTransaction(payload *model.WithdrawPayload) (*resp.TransferCompletionResponse, error)
func (*DefaultCkbApi) CalculateDaoMaximumWithdraw ¶
func (*DefaultCkbApi) CallContext ¶
func (cli *DefaultCkbApi) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
func (*DefaultCkbApi) ClearBannedAddresses ¶
func (cli *DefaultCkbApi) ClearBannedAddresses(ctx context.Context) error
func (*DefaultCkbApi) ClearTxPool ¶
func (cli *DefaultCkbApi) ClearTxPool(ctx context.Context) error
func (*DefaultCkbApi) Close ¶
func (cli *DefaultCkbApi) Close()
func (*DefaultCkbApi) DryRunTransaction ¶
func (cli *DefaultCkbApi) DryRunTransaction(ctx context.Context, transaction *types.Transaction) (*types.DryRunTransactionResult, error)
func (*DefaultCkbApi) EstimateFeeRate ¶
func (cli *DefaultCkbApi) EstimateFeeRate(ctx context.Context, blocks uint64) (*types.EstimateFeeRateResult, error)
func (*DefaultCkbApi) GetBalance ¶
func (cli *DefaultCkbApi) GetBalance(payload *model.GetBalancePayload) (*resp.GetBalanceResponse, error)
func (*DefaultCkbApi) GetBannedAddresses ¶
func (cli *DefaultCkbApi) GetBannedAddresses(ctx context.Context) ([]*types.BannedAddress, error)
func (*DefaultCkbApi) GetBlockByNumber ¶
func (*DefaultCkbApi) GetBlockEconomicState ¶
func (cli *DefaultCkbApi) GetBlockEconomicState(ctx context.Context, hash types.Hash) (*types.BlockEconomicState, error)
func (*DefaultCkbApi) GetBlockHash ¶
func (*DefaultCkbApi) GetBlockInfo ¶ added in v0.43.2
func (cli *DefaultCkbApi) GetBlockInfo(payload *model.GetBlockInfoPayload) (*resp.BlockInfo, error)
func (*DefaultCkbApi) GetBlockMedianTime ¶
func (*DefaultCkbApi) GetBlockchainInfo ¶
func (cli *DefaultCkbApi) GetBlockchainInfo(ctx context.Context) (*types.BlockchainInfo, error)
func (*DefaultCkbApi) GetCellsCapacity ¶
func (*DefaultCkbApi) GetConsensus ¶
func (*DefaultCkbApi) GetCurrentEpoch ¶
func (*DefaultCkbApi) GetDbInfo ¶ added in v0.101.1
func (cli *DefaultCkbApi) GetDbInfo() (*resp.DBInfo, error)
func (*DefaultCkbApi) GetEpochByNumber ¶
func (*DefaultCkbApi) GetForkBlock ¶
func (*DefaultCkbApi) GetHeaderByNumber ¶
func (*DefaultCkbApi) GetLiveCell ¶
func (cli *DefaultCkbApi) GetLiveCell(ctx context.Context, outPoint *types.OutPoint, withData bool) (*types.CellWithStatus, error)
func (*DefaultCkbApi) GetMercuryInfo ¶ added in v0.101.1
func (cli *DefaultCkbApi) GetMercuryInfo() (*resp.MercuryInfo, error)
func (*DefaultCkbApi) GetRawTxPool ¶
func (*DefaultCkbApi) GetSpentTransactionWithTransactionInfo ¶ added in v0.101.1
func (cli *DefaultCkbApi) GetSpentTransactionWithTransactionInfo(payload *model.GetSpentTransactionPayload) (*resp.TransactionInfoWrapper, error)
func (*DefaultCkbApi) GetSpentTransactionWithTransactionView ¶ added in v0.101.1
func (cli *DefaultCkbApi) GetSpentTransactionWithTransactionView(payload *model.GetSpentTransactionPayload) (*resp.TransactionViewWrapper, error)
func (*DefaultCkbApi) GetTipBlockNumber ¶
func (cli *DefaultCkbApi) GetTipBlockNumber(ctx context.Context) (uint64, error)
func (*DefaultCkbApi) GetTipHeader ¶
func (*DefaultCkbApi) GetTransaction ¶
func (cli *DefaultCkbApi) GetTransaction(ctx context.Context, hash types.Hash) (*types.TransactionWithStatus, error)
func (*DefaultCkbApi) GetTransactionInfo ¶ added in v0.43.2
func (cli *DefaultCkbApi) GetTransactionInfo(txHash string) (*resp.GetTransactionInfoResponse, error)
func (*DefaultCkbApi) GetTransactionProof ¶
func (cli *DefaultCkbApi) GetTransactionProof(ctx context.Context, txHashes []string, blockHash *types.Hash) (*types.TransactionProof, error)
func (*DefaultCkbApi) GetTransactions ¶
func (cli *DefaultCkbApi) GetTransactions(ctx context.Context, searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, afterCursor string) (*indexer.Transactions, error)
func (*DefaultCkbApi) LocalNodeInfo ¶
func (*DefaultCkbApi) QueryTransactionsWithTransactionInfo ¶ added in v0.101.1
func (cli *DefaultCkbApi) QueryTransactionsWithTransactionInfo(payload *model.QueryTransactionsPayload) (*resp.PaginationResponseTransactionInfo, error)
func (*DefaultCkbApi) QueryTransactionsWithTransactionView ¶ added in v0.101.1
func (cli *DefaultCkbApi) QueryTransactionsWithTransactionView(payload *model.QueryTransactionsPayload) (*resp.PaginationResponseTransactionView, error)
func (*DefaultCkbApi) RegisterAddresses ¶
func (cli *DefaultCkbApi) RegisterAddresses(normalAddresses []string) ([]string, error)
func (*DefaultCkbApi) RemoveNode ¶
func (cli *DefaultCkbApi) RemoveNode(ctx context.Context, peerId string) error
func (*DefaultCkbApi) SendTransaction ¶
func (cli *DefaultCkbApi) SendTransaction(ctx context.Context, tx *types.Transaction) (*types.Hash, error)
func (*DefaultCkbApi) SendTransactionNoneValidation ¶
func (cli *DefaultCkbApi) SendTransactionNoneValidation(ctx context.Context, tx *types.Transaction) (*types.Hash, error)
func (*DefaultCkbApi) SetNetworkActive ¶
func (cli *DefaultCkbApi) SetNetworkActive(ctx context.Context, state bool) error
func (*DefaultCkbApi) TxPoolInfo ¶
func (cli *DefaultCkbApi) TxPoolInfo(ctx context.Context) (*types.TxPoolInfo, error)
func (*DefaultCkbApi) VerifyTransactionProof ¶
func (cli *DefaultCkbApi) VerifyTransactionProof(ctx context.Context, proof *types.TransactionProof) ([]*types.Hash, error)
Click to show internal directories.
Click to hide internal directories.