xrp

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: 11 Imported by: 0

Documentation

Index

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

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

Balance ,tag:validated or closed or current or ledger version

func (*XRP) BalanceCluster

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

func (*XRP) GetAddressType

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

func (*XRP) GetBlockByHash

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

func (*XRP) GetBlockByNumber

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

GetBlockByNumber number: ledger version or shortcut string

func (*XRP) GetBlockReceiptByBlockHash

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

func (*XRP) GetBlockReceiptByBlockNumber

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

func (*XRP) GetCode

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

func (*XRP) GetTransactionReceiptByHash

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

func (*XRP) GetTxByHash

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

func (*XRP) LatestBlock

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

func (*XRP) MonitorCluster

func (e *XRP) MonitorCluster() any

func (*XRP) Nonce

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

func (*XRP) SendJsonRpc

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

func (*XRP) SendRawTransaction

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

func (*XRP) SendReq

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

func (*XRP) SendReqByWs

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

func (*XRP) StartWDT

func (e *XRP) StartWDT()

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

func (*XRP) Token

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

func (*XRP) TokenBalance

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

func (*XRP) UnSubscribe

func (e *XRP) 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