package
Version:
v0.0.0-...-3f76438
Opens a new window with list of versions in this module.
Published: Jan 19, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package tx provides functions handling transactions
- Generate generates a new signed transaction from an input
Generate generates a transaction with signatures from given input.
type In struct {
TxID string `json:"txid"`
Vout uint32 `json:"vout"`
ScriptPubKey string `json:"scriptpubkey"`
}
In contains necessary info to establish transaction message's TxIn items.
type Input struct {
Ins []In `json:"ins"`
Outs []Out `json:"outs"`
WIFs []string `json:"wifs"`
}
Input expresses an input to generate command that build transaction message with signatures.
type Out struct {
Addr string `json:"addr"`
Value int64 `json:"value"`
}
Out contains necessary info to establish transaction message's TxOut items.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.