package
0.0.0-20241221082906-6e7ba64175b5
Repository: https://github.com/goatnetwork/goat-relayer.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ConsolidateSmallUTXOs consolidate small utxos Parameters: utxos - all unspent utxos networkFee - network fee threshold - threshold for small utxos maxVin - maximum vin count trigerNum - minimum small utxo Returns: selectedUtxos - selected utxos for consolidation totalAmount - total amount of selected utxos finalAmount - final amount after consolidation, after deducting the network fee error - error if any.
ConsolidateUTXOsByCount consolidate utxos by count.
CreateRawTransaction create raw transaction Parameters: utxos - all unspent utxos withdrawals - all withdrawals changeAddress - change address changeAmount - change amount net - bitcoin network Returns: tx - raw transaction dustWithdraw - value lower than dust limit withdraw id error - error if any.
GenerateRawMeessageToFireblocks generate the raw message to fireblocks.
No description provided by the author
No description provided by the author
No description provided by the author
SelectOptimalUTXOs select optimal utxos for withdrawal Parameters: utxos - all unspent utxos withdrawAmount - total amount to withdraw networkFee - network fee withdrawTotal - total number of withdrawals Returns: selectedUtxos - selected utxos for withdrawal totalSelectedAmount - total amount of selected utxos withdrawAmount - total amount to withdraw (not minus tx fee yet) changeAmount - change amount after withdrawal estimatedFee - estimate fee error - error if any.
SelectWithdrawals select optimal withdrawals for withdrawal Parameters: withdrawals - all withdrawals can start networkFee - network fee maxVout - maximum vout count immediateCount - immediate count to start withdrawals net - bitcoin network Returns: selectedWithdrawals - selected withdrawals minTxPrice - minimum transaction price error - error if any.
SignTransactionByPrivKey, use PrivKey to sign the transaction, and select the corresponding signature method according to the UTXO type Parameters: privKey - private key tx - transaction utxos - all unspent utxos net - bitcoin network Returns: error - error if any.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author