filecoin

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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) Balance

func (e *FileCoin) Balance(chainCode int64, address string, tag string) (string, error)

func (*FileCoin) BalanceCluster

func (e *FileCoin) BalanceCluster(trace bool) *config.NodeCluster

func (*FileCoin) GetAddressType

func (e *FileCoin) GetAddressType(chainCode int64, address string) (string, error)

func (*FileCoin) GetBlockByHash

func (e *FileCoin) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)

func (*FileCoin) GetBlockByNumber

func (e *FileCoin) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)

func (*FileCoin) GetBlockReceiptByBlockHash

func (e *FileCoin) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)

func (*FileCoin) GetBlockReceiptByBlockNumber

func (e *FileCoin) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)

func (*FileCoin) GetCode

func (e *FileCoin) GetCode(chainCode int64, address string) (string, error)

func (*FileCoin) GetTransactionReceiptByHash

func (e *FileCoin) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)

func (*FileCoin) GetTxByHash

func (e *FileCoin) GetTxByHash(chainCode int64, hash string) (string, error)

func (*FileCoin) GetTxsByHash

func (e *FileCoin) GetTxsByHash(chainCode int64, hash string) (string, error)

func (*FileCoin) LatestBlock

func (e *FileCoin) LatestBlock(chainCode int64) (string, error)

func (*FileCoin) MonitorCluster

func (e *FileCoin) MonitorCluster() any

func (*FileCoin) Nonce

func (e *FileCoin) Nonce(chainCode int64, address string, tag string) (string, error)

func (*FileCoin) SendJsonRpc

func (e *FileCoin) SendJsonRpc(chainCode int64, req string) (string, error)

func (*FileCoin) SendRawTransaction

func (e *FileCoin) SendRawTransaction(chainCode int64, signedTx string) (string, error)

func (*FileCoin) SendReq

func (e *FileCoin) SendReq(blockChain int64, reqBody string, trace bool) (resp string, err error)

func (*FileCoin) SendReqByWs

func (e *FileCoin) SendReqByWs(blockChain int64, receiverCh chan string, sendCh chan string) (string, error)

func (*FileCoin) StartWDT

func (e *FileCoin) StartWDT()

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 (e *FileCoin) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)

func (*FileCoin) Token

func (e *FileCoin) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)

func (*FileCoin) TokenBalance

func (e *FileCoin) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)

func (*FileCoin) UnSubscribe

func (e *FileCoin) UnSubscribe(chainCode int64, subId string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL