solana

package
v0.0.0-...-e9f69b8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func CreateWallet

func CreateWallet() (*Wallet, error)

func LoadWallet

func LoadWallet(url string, privateKey string) (*Wallet, error)

func (Wallet) Address

func (w Wallet) Address() string

put the public key here

func (Wallet) Balance

func (w Wallet) Balance(ctx context.Context) (balance uint64, err error)

func (Wallet) Key

func (w Wallet) Key() sgo.PrivateKey

func (Wallet) PrintKey

func (w Wallet) PrintKey() string

func (Wallet) PublicKey

func (w Wallet) PublicKey() sgo.PublicKey

func (Wallet) Transfer

func (w Wallet) Transfer(ctx context.Context, lamportsBeingTransfered uint64, recipientPublicKey sgo.PublicKey) (err error)

Jump to

Keyboard shortcuts

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