Documentation ¶
Index ¶
- func CreateConsecutiveTransactions(utxo *avax.UTXO, numTxs, amount, txFee uint64, ...) ([][]byte, []ids.ID, error)
- func CreateIndependentBurnTxs(utxos []*avax.UTXO, utxoAmount, txFee uint64, ...) ([][]byte, []ids.ID, error)
- func CreateSingleUTXOTx(utxo *avax.UTXO, inputAmount, outputAmount uint64, address ids.ShortID, ...) (*avm.Tx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConsecutiveTransactions ¶
func CreateConsecutiveTransactions(utxo *avax.UTXO, numTxs, amount, txFee uint64, privateKey *crypto.PrivateKeySECP256K1R, codec codec.Manager) ([][]byte, []ids.ID, error)
CreateConsecutiveTransactions returns a string of [numTxs] sending [utxo] back and forth assumes that [privateKey] is the sole owner of [utxo]
func CreateIndependentBurnTxs ¶
func CreateIndependentBurnTxs(utxos []*avax.UTXO, utxoAmount, txFee uint64, privateKey *crypto.PrivateKeySECP256K1R, codec codec.Manager) ([][]byte, []ids.ID, error)
CreateIndependentBurnTxs creates a list of transactions spending each utxo in [utxos] and sending [utxoAmount] - [txFee] back to [privateKey] Assumes that each utxo has a sufficient amount to pay the transaction fee.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.