Documentation
¶
Index ¶
- func NewBnb(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
- func NewBnb2(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.ExApi
- func NewNftBnb(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.NftApi
- type Bnb
- func (e *Bnb) Balance(chainCode int64, address string, tag string) (string, error)
- func (e *Bnb) BalanceCluster(trace bool) *config.NodeCluster
- func (e *Bnb) BalanceOf(chainCode int64, contractAddress string, address string, tokenId string, ...) (string, error)
- func (e *Bnb) EstimateGas(chainCode int64, from, to, data string) (string, error)
- func (e *Bnb) EstimateGasForTron(chainCode int64, from, to, functionSelector, parameter string) (string, error)
- func (e *Bnb) GasPrice(chainCode int64) (string, error)
- func (e *Bnb) GetAccountResourceForTron(chainCode int64, address string) (string, error)
- func (e *Bnb) GetAddressType(chainCode int64, address string) (string, error)
- func (e *Bnb) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)
- func (e *Bnb) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)
- func (e *Bnb) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)
- func (e *Bnb) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)
- func (e *Bnb) GetCode(chainCode int64, address string) (string, error)
- func (e *Bnb) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)
- func (e *Bnb) GetTxByHash(chainCode int64, hash string) (string, error)
- func (e *Bnb) LatestBlock(chainCode int64) (string, error)
- func (e *Bnb) MonitorCluster() any
- func (e *Bnb) Nonce(chainCode int64, address string, tag string) (string, error)
- func (e *Bnb) OwnerOf(chainCode int64, contractAddress string, tokenId string, eip int64) (string, error)
- func (e *Bnb) SendJsonRpc(chainCode int64, req string) (string, error)
- func (e *Bnb) SendRawTransaction(chainCode int64, signedTx string) (string, error)
- func (e *Bnb) SendReq(blockChain int64, reqBody string, trace bool) (resp string, err error)
- func (e *Bnb) SendReqByWs(blockChain int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *Bnb) StartWDT()
- func (e *Bnb) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, ...) (string, error)
- func (e *Bnb) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *Bnb) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)
- func (e *Bnb) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)
- func (e *Bnb) TokenURI(chainCode int64, contractAddress string, tokenId string, eip int64) (string, error)
- func (e *Bnb) TotalSupply(chainCode int64, contractAddress string, eip int64) (string, error)
- func (e *Bnb) TraceTransaction(chainCode int64, address string) (string, error)
- func (e *Bnb) UnSubscribe(chainCode int64, subId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBnb ¶
func NewBnb(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
func NewBnb2 ¶ added in v0.5.3
func NewBnb2(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.ExApi
func NewNftBnb ¶
func NewNftBnb(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.NftApi
Types ¶
type Bnb ¶
type Bnb struct {
// contains filtered or unexported fields
}
func (*Bnb) BalanceCluster ¶
func (e *Bnb) BalanceCluster(trace bool) *config.NodeCluster
func (*Bnb) EstimateGas ¶ added in v0.5.3
func (*Bnb) EstimateGasForTron ¶ added in v0.5.3
func (*Bnb) GetAccountResourceForTron ¶ added in v0.5.3
func (*Bnb) GetAddressType ¶
func (*Bnb) GetBlockByHash ¶
func (*Bnb) GetBlockByNumber ¶
func (*Bnb) GetBlockReceiptByBlockHash ¶
func (*Bnb) GetBlockReceiptByBlockNumber ¶
func (*Bnb) GetTransactionReceiptByHash ¶
func (*Bnb) MonitorCluster ¶
func (*Bnb) SendRawTransaction ¶
func (*Bnb) SendReqByWs ¶
func (*Bnb) SubscribeLogs ¶
func (e *Bnb) 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 (*Bnb) SubscribePendingTx ¶
func (*Bnb) TokenBalance ¶
func (*Bnb) TotalSupply ¶
func (*Bnb) TraceTransaction ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.