walletToWallet

package
v0.0.0-...-b4e1fbf Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WalletToWalletCmd = &cobra.Command{
	Use:   "wallet-to-wallet",
	Short: "Wallet to wallet tx building command",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		txHash, err := WalletToWalletTxBuilder(originAddress, destinationAddress, amount, submitOpt)
		if err != nil {
			panic(err)
		}

		if txHash != "" {
			fmt.Println("TxHash:", txHash)
		}

	},
}

Functions

func SetUserWallet

func SetUserWallet(mnemonic string) error

func WalletSetup

func WalletSetup() error

func WalletToWalletTxBuilder

func WalletToWalletTxBuilder(originAddress string, destinationAddress string, amount float64, submitOpt int64) (string, error)

Types

type TxFile

type TxFile struct {
	Type        string `json:"type"`
	Description string `json:"description"`
	CborHex     string `json:"cborHex"`
}

type UserWallet

type UserWallet struct {
	UserPKH  serialization.PubKeyHash
	UserVkey Key.VerificationKey
	UserSkey Key.SigningKey
}

func GetUserWallet

func GetUserWallet() *UserWallet

Jump to

Keyboard shortcuts

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