Documentation ¶
Index ¶
- func EncodeTransaction(txn siatypes.Transaction, callback js.Value)
- func GenerateSeed(seedType string, callback js.Value)
- func GetAddresses(phrase string, i uint64, n uint64, callback js.Value)
- func GetTransactions(addresses []string, callback js.Value)
- func RecoverAddresses(seed string, i uint64, minRounds uint64, addressCount uint64, ...)
- func SignTransaction(txn siatypes.Transaction, phrase string, requiredSignatures []uint64, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeTransaction ¶
func EncodeTransaction(txn siatypes.Transaction, callback js.Value)
EncodeTransaction uses the MarshalSia function to encode the transaction to bytes
func GenerateSeed ¶
GenerateSeed generates a new 12 or 29 word seed phrase
func GetAddresses ¶
GetAddresses generates n addresses using the seed phrase starting at index i
func GetTransactions ¶
GetTransactions gets all transactions belonging to the addresses
func RecoverAddresses ¶
func RecoverAddresses(seed string, i uint64, minRounds uint64, addressCount uint64, callback js.Value)
RecoverAddresses scans for addresses on the blockchain addressCount at a time up to a maximum of 100,000,000 addresses. Considers all addresses found if the scan goes more than minRounds * addressCount addresses without seeing any used. It's possible the ranges will need to be tweaked for older or larger wallets
func SignTransaction ¶
func SignTransaction(txn siatypes.Transaction, phrase string, requiredSignatures []uint64, callback js.Value)
SignTransaction signs a transaction using the seed and required signatures
Types ¶
This section is empty.