Documentation ¶
Index ¶
- Constants
- func AddressFromPubKey(key ed25519.PublicKey, ver Version, subwallet uint32) (*address.Address, error)
- func GetStateInit(pubKey ed25519.PublicKey, ver Version, subWallet uint32) (*tlb.StateInit, error)
- func NewSeed() []string
- func NewSeedWithPassword(password string) []string
- type Message
- type RegularBuilder
- type SpecRegular
- type SpecV3
- type SpecV4R2
- type TonAPI
- type Version
- type Wallet
- func (w *Wallet) Address() *address.Address
- func (w *Wallet) DeployContract(ctx context.Context, amount tlb.Coins, ...) (*address.Address, error)
- func (w *Wallet) GetBalance(ctx context.Context, block *tlb.BlockInfo) (tlb.Coins, error)
- func (w *Wallet) GetSpec() any
- func (w *Wallet) GetSubwallet(subwallet uint32) (*Wallet, error)
- func (w *Wallet) Send(ctx context.Context, message *Message) error
- func (w *Wallet) SendMany(ctx context.Context, messages []*Message) error
- func (w *Wallet) Transfer(ctx context.Context, to *address.Address, amount tlb.Coins, comment string) error
- func (w *Wallet) TransferNoBounce(ctx context.Context, to *address.Address, amount tlb.Coins, comment string) error
Constants ¶
View Source
const DefaultSubwallet = 698983191
Variables ¶
This section is empty.
Functions ¶
func AddressFromPubKey ¶
func GetStateInit ¶
func NewSeedWithPassword ¶
Types ¶
type Message ¶ added in v1.0.0
type Message struct { Mode uint8 InternalMessage *tlb.InternalMessage }
type RegularBuilder ¶ added in v1.0.0
type SpecRegular ¶ added in v1.0.0
type SpecRegular struct {
// contains filtered or unexported fields
}
func (*SpecRegular) SetMessagesTTL ¶ added in v1.0.0
func (s *SpecRegular) SetMessagesTTL(ttl uint32)
type SpecV3 ¶ added in v1.0.0
type SpecV3 struct {
SpecRegular
}
type SpecV4R2 ¶ added in v1.0.0
type SpecV4R2 struct {
SpecRegular
}
type TonAPI ¶
type TonAPI interface { GetMasterchainInfo(ctx context.Context) (*tlb.BlockInfo, error) GetAccount(ctx context.Context, block *tlb.BlockInfo, addr *address.Address) (*tlb.Account, error) SendExternalMessage(ctx context.Context, msg *tlb.ExternalMessage) error RunGetMethod(ctx context.Context, blockInfo *tlb.BlockInfo, addr *address.Address, method string, params ...interface{}) ([]interface{}, error) }
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func FromPrivateKey ¶
func FromSeedWithPassword ¶
func (*Wallet) DeployContract ¶ added in v0.7.0
func (*Wallet) GetBalance ¶
func (*Wallet) GetSubwallet ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.