Documentation
¶
Index ¶
- type BaseClient
- type BaseDataClient
- func (bdc *BaseDataClient) GetAccountBalance(address string) (*account.AccountBalanceResponse, error)
- func (bdc *BaseDataClient) GetAccountUtxoList(address string) ([]account.AccountUtxoResponse, error)
- func (bdc *BaseDataClient) GetFee() (*gas_fee.GasEstimateFeeResponse, error)
- func (bdc *BaseDataClient) GetTxByHash(txId string) (*transaction.TxResponse, error)
- func (bdc *BaseDataClient) GetTxListByAddress(address string, page, pageSize uint64) (*account.TransactionResponse[account.AccountTxResponse], error)
- type ResultRawData
- type ScriptPubKey
- type ScriptSig
- type Vin
- type Vout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
func NewBaseClient ¶
func NewBaseClient(RpcUrl, RpcUser, RpcPass string) (*BaseClient, error)
type BaseDataClient ¶
type BaseDataClient struct {
ChainShortName string
ExplorerName string
BaseDataCli *oklink.ChainExplorerAdaptor
}
func NewBaseDataClient ¶
func NewBaseDataClient(baseUrl, apiKey, chainShortName, explorerName string) (*BaseDataClient, error)
func (*BaseDataClient) GetAccountBalance ¶
func (bdc *BaseDataClient) GetAccountBalance(address string) (*account.AccountBalanceResponse, error)
func (*BaseDataClient) GetAccountUtxoList ¶
func (bdc *BaseDataClient) GetAccountUtxoList(address string) ([]account.AccountUtxoResponse, error)
func (*BaseDataClient) GetFee ¶
func (bdc *BaseDataClient) GetFee() (*gas_fee.GasEstimateFeeResponse, error)
func (*BaseDataClient) GetTxByHash ¶
func (bdc *BaseDataClient) GetTxByHash(txId string) (*transaction.TxResponse, error)
func (*BaseDataClient) GetTxListByAddress ¶
func (bdc *BaseDataClient) GetTxListByAddress(address string, page, pageSize uint64) (*account.TransactionResponse[account.AccountTxResponse], error)
type ResultRawData ¶
type ResultRawData struct {
TxId string `json:"txid"`
Hash string `json:"hash"`
Version uint64 `json:"version"`
Size uint64 `json:"size"`
VSize uint64 `json:"vsize"`
Weight uint64 `json:"weight"`
LockTime uint64 `json:"locktime"`
Vin []Vin `json:"vin"`
Vout []Vout `json:"vout"`
Hex string `json:"hex"`
Blockhash string `json:"blockhash"`
Confirmations uint64 `json:"confirmations"`
BlockTime uint64 `json:"blocktime"`
Time uint64 `json:"time"`
}
type ScriptPubKey ¶
type Vout ¶
type Vout struct {
Value interface{} `json:"value"`
N uint64 `json:"n"`
ScriptPubKey ScriptPubKey `json:"scriptpubkey"`
}
Click to show internal directories.
Click to hide internal directories.