package
Version:
v0.0.0-...-9098a98
Opens a new window with list of versions in this module.
Published: Dec 7, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package build defines various convient methods to construct a transaction.
type AccountID struct {
AccountID string
}
AccountID sets the AccountID field in the Tx.
Mutate changes the corresponding AccountID field of the Tx.
Asset contains the required information of working with an asset.
type CreateAccount struct {
AccountID string
Balance int64
}
CreateAccount adds a CreateAccount op to the OpList field of tx.
Mutate appends a CreateAccount op to the OpList.
type Fee struct {
BaseFee int64
}
Fee computes the total fees for the Tx.
Mutate changes the corresponding Fee field of the Tx.
type Note struct {
Note string
}
Note sets the Note field in the tx.
Mutate changes the corresponding Note field of the Tx.
Payment adds a Payment operation to the OpList field of Tx.
Mutates appends a Payment operation to the OpList of the Tx.
type SeqNum struct {
SeqNum uint64
}
SeqNum sets the SeqNum field in the tx.
Mutate changes the corresponding SeqNum field of the Tx.
Trust adds a Trust operation to the OpList field of the Tx.
Mutate appends a Trust operation to the OpList of the Tx.
Tx serves as the main object for building an transaction.
Add adds one or more mutators to the underlying transaction
builder and if any of the mutation fails the method fails.
Sign the transaction data with supplied secret seed.
TxMutator defines the method which all the transaction
mutators should implement.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.