Documentation ¶
Index ¶
- func AddressFromPubKey(key ed25519.PublicKey, ver Version) (*address.Address, error)
- func GetStateInit(pubKey ed25519.PublicKey, ver Version) (*tlb.StateInit, error)
- func NewSeed() []string
- func NewSeedWithPassword(password string) []string
- type TonAPI
- type Version
- type Wallet
- func (w *Wallet) Address() *address.Address
- func (w *Wallet) DeployContract(ctx context.Context, amount *tlb.Grams, body, code, data *cell.Cell) (*address.Address, error)
- func (w *Wallet) GetBalance(ctx context.Context, block *tlb.BlockInfo) (*tlb.Grams, error)
- func (w *Wallet) Send(ctx context.Context, mode byte, message *tlb.InternalMessage) error
- func (w *Wallet) Transfer(ctx context.Context, to *address.Address, amount *tlb.Grams, comment string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressFromPubKey ¶
func GetStateInit ¶
func NewSeedWithPassword ¶
Types ¶
type TonAPI ¶
type TonAPI interface { GetMasterchainInfo(ctx context.Context) (*tlb.BlockInfo, error) GetAccount(ctx context.Context, block *tlb.BlockInfo, addr *address.Address) (*ton.Account, error) SendExternalMessage(ctx context.Context, addr *address.Address, msg *cell.Cell) error SendExternalInitMessage(ctx context.Context, addr *address.Address, msg *cell.Cell, state *tlb.StateInit) 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 ¶
Click to show internal directories.
Click to hide internal directories.