Documentation ¶
Index ¶
- func NewXRP(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
- type XRP
- func (e *XRP) Balance(chainCode int64, address string, tag string) (string, error)
- func (e *XRP) BalanceCluster(trace bool) *config.NodeCluster
- func (e *XRP) GetAddressType(chainCode int64, address string) (string, error)
- func (e *XRP) GetBlockByHash(chainCode int64, hash string, flag bool) (string, error)
- func (e *XRP) GetBlockByNumber(chainCode int64, number string, flag bool) (string, error)
- func (e *XRP) GetBlockReceiptByBlockHash(chainCode int64, hash string) (string, error)
- func (e *XRP) GetBlockReceiptByBlockNumber(chainCode int64, number string) (string, error)
- func (e *XRP) GetCode(chainCode int64, address string) (string, error)
- func (e *XRP) GetTransactionReceiptByHash(chainCode int64, hash string) (string, error)
- func (e *XRP) GetTxByHash(chainCode int64, hash string) (string, error)
- func (e *XRP) LatestBlock(chainCode int64) (string, error)
- func (e *XRP) MonitorCluster() any
- func (e *XRP) Nonce(chainCode int64, address string, tag string) (string, error)
- func (e *XRP) SendJsonRpc(chainCode int64, req string) (string, error)
- func (e *XRP) SendRawTransaction(chainCode int64, signedTx string) (string, error)
- func (e *XRP) SendReq(blockChain int64, reqBody string, trace bool) (resp string, err error)
- func (e *XRP) SendReqByWs(blockChain int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *XRP) StartWDT()
- func (e *XRP) SubscribeLogs(chainCode int64, address string, topics []string, receiverCh chan string, ...) (string, error)
- func (e *XRP) SubscribePendingTx(chainCode int64, receiverCh chan string, sendCh chan string) (string, error)
- func (e *XRP) Token(chainCode int64, contractAddr string, abi string, eip string) (string, error)
- func (e *XRP) TokenBalance(chainCode int64, address string, contractAddr string, abi string) (string, error)
- func (e *XRP) UnSubscribe(chainCode int64, subId string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewXRP ¶
func NewXRP(cluster []*config.NodeCluster, blockchain int64, xlog *xlog.XLog) blockchain.API
Types ¶
type XRP ¶
type XRP struct {
// contains filtered or unexported fields
}
func (*XRP) BalanceCluster ¶
func (e *XRP) BalanceCluster(trace bool) *config.NodeCluster
func (*XRP) GetAddressType ¶
func (*XRP) GetBlockByHash ¶
func (*XRP) GetBlockByNumber ¶
GetBlockByNumber number: ledger version or shortcut string
func (*XRP) GetBlockReceiptByBlockHash ¶
func (*XRP) GetBlockReceiptByBlockNumber ¶
func (*XRP) GetTransactionReceiptByHash ¶
func (*XRP) MonitorCluster ¶
func (*XRP) SendRawTransaction ¶
func (*XRP) SendReqByWs ¶
func (*XRP) SubscribeLogs ¶
func (e *XRP) 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 (*XRP) SubscribePendingTx ¶
func (*XRP) TokenBalance ¶
Click to show internal directories.
Click to hide internal directories.