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