addr

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(x, y *Address) bool

Types

type Address

type Address [33]byte

Address consists of flags (1 byte), workchain_id (1 byte) and account_id (32 byte). https://docs.ton.org/learn/overviews/addresses#user-friendly-address-structure

func MustFromBase64

func MustFromBase64(b64 string) *Address

func MustFromString

func MustFromString(str string) *Address

func MustFromTonutils

func MustFromTonutils(a *address.Address) *Address

func (*Address) Base64

func (x *Address) Base64() string

func (*Address) Checksum

func (x *Address) Checksum() uint16

func (*Address) FromBase64

func (x *Address) FromBase64(b64 string) (*Address, error)

func (*Address) FromString

func (x *Address) FromString(str string) (*Address, error)

func (*Address) FromTonutils

func (x *Address) FromTonutils(addr *address.Address) (*Address, error)

func (*Address) MarshalJSON

func (x *Address) MarshalJSON() ([]byte, error)

func (*Address) MustToTonutils

func (x *Address) MustToTonutils() *address.Address

func (*Address) Scan

func (x *Address) Scan(value interface{}) error

func (*Address) String

func (x *Address) String() string

func (*Address) ToTonutils

func (x *Address) ToTonutils() (*address.Address, error)

func (*Address) UnmarshalJSON

func (x *Address) UnmarshalJSON(raw []byte) error

func (*Address) UnmarshalText

func (x *Address) UnmarshalText(data []byte) error

func (*Address) Value

func (x *Address) Value() (driver.Value, error)

func (*Address) Workchain added in v0.3.1

func (x *Address) Workchain() int8

Jump to

Keyboard shortcuts

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