txhelper

package
v0.0.0-...-91837a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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.

func CreateSingleUTXOTx

func CreateSingleUTXOTx(utxo *avax.UTXO, inputAmount, outputAmount uint64, address ids.ShortID, privateKey *crypto.PrivateKeySECP256K1R, codec codec.Manager) (*avm.Tx, error)

CreateSingleUTXOTx returns a transaction spending an individual utxo owned by [privateKey]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL