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