Documentation
¶
Index ¶
- func UseLogger(logger l.Logger)
- type PrivateTxAPI
- type PublicTxAPI
- func (api *PublicTxAPI) CreateExportRawTransaction(txid string, vout uint32, pkAddress string, amount int64) (interface{}, error)
- func (api *PublicTxAPI) CreateExportRawTransactionV2(inputs []json.TransactionInput, outputs []json.TransactionOutput, ...) (interface{}, error)
- func (api *PublicTxAPI) CreateImportRawTransaction(pkAddress string, amount int64) (interface{}, error)
- func (api *PublicTxAPI) CreateRawTransaction(inputs []json.TransactionInput, amounts json.Amounts, lockTime *int64) (interface{}, error)
- func (api *PublicTxAPI) CreateRawTransactionV2(inputs []json.TransactionInput, amounts json.AdreesAmount, lockTime *int64) (interface{}, error)
- func (api *PublicTxAPI) CreateTokenRawTransaction(txtype string, coinId uint16, coinName *string, owners *string, ...) (interface{}, error)
- func (api *PublicTxAPI) DecodeRawTransaction(hexTx string) (interface{}, error)
- func (api *PublicTxAPI) GetMeerEVMTxHashByID(txid hash.Hash) (interface{}, error)
- func (api *PublicTxAPI) GetRawTransaction(txHash hash.Hash, verbose bool) (interface{}, error)
- func (api *PublicTxAPI) GetRawTransactionByHash(txHash hash.Hash, verbose bool) (interface{}, error)
- func (api *PublicTxAPI) GetRawTransactions(addre string, vinext *bool, count *uint, skip *uint, revers *bool, ...) (interface{}, error)
- func (api *PublicTxAPI) GetUtxo(txHash hash.Hash, vout uint32, includeMempool *bool) (interface{}, error)
- func (api *PublicTxAPI) SendRawTransaction(hexTx string, allowHighFees *bool) (interface{}, error)
- type TxManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateTxAPI ¶
type PrivateTxAPI struct {
// contains filtered or unexported fields
}
func NewPrivateTxAPI ¶
func NewPrivateTxAPI(tm *TxManager) *PrivateTxAPI
type PublicTxAPI ¶
type PublicTxAPI struct {
// contains filtered or unexported fields
}
func NewPublicTxAPI ¶
func NewPublicTxAPI(tm *TxManager) *PublicTxAPI
func (*PublicTxAPI) CreateExportRawTransaction ¶
func (api *PublicTxAPI) CreateExportRawTransaction(txid string, vout uint32, pkAddress string, amount int64) (interface{}, error)
cross chain export tx
func (*PublicTxAPI) CreateExportRawTransactionV2 ¶
func (api *PublicTxAPI) CreateExportRawTransactionV2(inputs []json.TransactionInput, outputs []json.TransactionOutput, lockTime *int64) (interface{}, error)
func (*PublicTxAPI) CreateImportRawTransaction ¶
func (api *PublicTxAPI) CreateImportRawTransaction(pkAddress string, amount int64) (interface{}, error)
cross chain import tx
func (*PublicTxAPI) CreateRawTransaction ¶
func (api *PublicTxAPI) CreateRawTransaction(inputs []json.TransactionInput, amounts json.Amounts, lockTime *int64) (interface{}, error)
func (*PublicTxAPI) CreateRawTransactionV2 ¶
func (api *PublicTxAPI) CreateRawTransactionV2(inputs []json.TransactionInput, amounts json.AdreesAmount, lockTime *int64) (interface{}, error)
func (*PublicTxAPI) CreateTokenRawTransaction ¶
func (api *PublicTxAPI) CreateTokenRawTransaction(txtype string, coinId uint16, coinName *string, owners *string, uplimit *uint64, inputs []json.TransactionInput, amounts json.Amounts, feeType uint16, feeValue int64) (interface{}, error)
token
func (*PublicTxAPI) DecodeRawTransaction ¶
func (api *PublicTxAPI) DecodeRawTransaction(hexTx string) (interface{}, error)
func (*PublicTxAPI) GetMeerEVMTxHashByID ¶
func (api *PublicTxAPI) GetMeerEVMTxHashByID(txid hash.Hash) (interface{}, error)
func (*PublicTxAPI) GetRawTransaction ¶
func (api *PublicTxAPI) GetRawTransaction(txHash hash.Hash, verbose bool) (interface{}, error)
func (*PublicTxAPI) GetRawTransactionByHash ¶
func (api *PublicTxAPI) GetRawTransactionByHash(txHash hash.Hash, verbose bool) (interface{}, error)
func (*PublicTxAPI) GetRawTransactions ¶
func (api *PublicTxAPI) GetRawTransactions(addre string, vinext *bool, count *uint, skip *uint, revers *bool, verbose *bool, filterAddrs *[]string) (interface{}, error)
handleSearchRawTransactions implements the searchrawtransactions command.
func (*PublicTxAPI) GetUtxo ¶
func (api *PublicTxAPI) GetUtxo(txHash hash.Hash, vout uint32, includeMempool *bool) (interface{}, error)
Returns information about an unspent transaction output 1. txid (string, required) The hash of the transaction 2. vout (numeric, required) The index of the output 3. includemempool (boolean, optional, default=true) Include the mempool when true
Result: { "bestblock": "value", (string) The block hash that contains the transaction output "confirmations": n, (numeric) The number of confirmations "amount": n.nnn, (numeric) The transaction amount "scriptPubKey": { (object) The public key script used to pay coins as a JSON object
"asm": "value", (string) Disassembly of the script "hex": "value", (string) Hex-encoded bytes of the script "reqSigs": n, (numeric) The number of required signatures "type": "value", (string) The type of the script (e.g. 'pubkeyhash') "addresses": ["value",...], (array of string) The qitmeer addresses associated with this script },
"coinbase": true|false, (boolean) Whether or not the transaction is a coinbase }
func (*PublicTxAPI) SendRawTransaction ¶
func (api *PublicTxAPI) SendRawTransaction(hexTx string, allowHighFees *bool) (interface{}, error)
type TxManager ¶
func NewTxManager ¶
func (*TxManager) FeeEstimator ¶
func (tm *TxManager) FeeEstimator() consensus.FeeEstimator
func (*TxManager) InitDefaultFeeEstimator ¶
func (tm *TxManager) InitDefaultFeeEstimator()
func (*TxManager) LoadMempool ¶
func (tm *TxManager) LoadMempool()