wallet

package
v0.2.18-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// TotalGasSpawn is a fixed amount of gas for spawn.
	TotalGasSpawn = wallet.TotalGasSpawn
	// TotalGasSpend is a fixed amount of gas for spend.
	TotalGasSpend = wallet.TotalGasSpend
)

Variables

This section is empty.

Functions

func Address

func Address(pub []byte) types.Address

Address computes wallet address from the public key.

func SelfSpawn

func SelfSpawn(pk signing.PrivateKey, nonce core.Nonce, opts ...sdk.Opt) []byte

SelfSpawn creates a self-spawn transaction.

func Spawn

func Spawn(pk signing.PrivateKey, template core.Address, args scale.Encodable, nonce core.Nonce, opts ...sdk.Opt) []byte

Spawn creates a spawn transaction.

func Spend

func Spend(pk signing.PrivateKey, to types.Address, amount uint64, nonce types.Nonce, opts ...sdk.Opt) []byte

Spend creates spend transaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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