Documentation
¶
Index ¶
- func NewFileCoin(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
- type FileCoin
- func (e *FileCoin) Balance(chainCode int64, address string, tag string) (string, error)
- func (e *FileCoin) BalanceCluster(trace bool) *config.NodeCluster
- func (e *FileCoin) GetAddressType(chainCode int64, address string) (string, error)
- func (e *FileCoin) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)
- func (e *FileCoin) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)
- func (e *FileCoin) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)
- func (e *FileCoin) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)
- func (e *FileCoin) GetCode(chainCode int64, address string) (string, error)
- func (e *FileCoin) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)
- func (e *FileCoin) GetTxByHash(chainCode int64, hash string) (string, error)
- func (e *FileCoin) GetTxsByHash(chainCode int64, hash string) (string, error)
- func (e *FileCoin) LatestBlock(chainCode int64) (string, error)
- func (e *FileCoin) MonitorCluster() any
- func (e *FileCoin) Nonce(chainCode int64, address string, tag string) (string, error)
- func (e *FileCoin) SendJsonRpc(chainCode int64, req string) (string, error)
- func (e *FileCoin) SendRawTransaction(chainCode int64, signedTx string) (string, error)
- func (e *FileCoin) SendReq(blockChain int64, reqBody string, trace bool) (resp string, err error)
- func (e *FileCoin) SendReqByWs(blockChain int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *FileCoin) StartWDT()
- func (e *FileCoin) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, ...) (string, error)
- func (e *FileCoin) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *FileCoin) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)
- func (e *FileCoin) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)
- func (e *FileCoin) UnSubscribe(chainCode int64, subId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileCoin ¶
func NewFileCoin(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
Types ¶
type FileCoin ¶
type FileCoin struct {
// contains filtered or unexported fields
}
func (*FileCoin) BalanceCluster ¶
func (e *FileCoin) BalanceCluster(trace bool) *config.NodeCluster
func (*FileCoin) GetAddressType ¶
func (*FileCoin) GetBlockByHash ¶
func (*FileCoin) GetBlockByNumber ¶
func (*FileCoin) GetBlockReceiptByBlockHash ¶
func (*FileCoin) GetBlockReceiptByBlockNumber ¶
func (*FileCoin) GetTransactionReceiptByHash ¶
func (*FileCoin) GetTxByHash ¶
func (*FileCoin) GetTxsByHash ¶
func (*FileCoin) MonitorCluster ¶
func (*FileCoin) SendJsonRpc ¶
func (*FileCoin) SendRawTransaction ¶
func (*FileCoin) SendReqByWs ¶
func (*FileCoin) SubscribeLogs ¶
func (e *FileCoin) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, sendCh chan string) (string, error)
SubscribeLogs {"jsonrpc":"2.0","id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}]}
func (*FileCoin) SubscribePendingTx ¶
func (*FileCoin) TokenBalance ¶
Click to show internal directories.
Click to hide internal directories.