Versions in this module Expand all Collapse all v1 v1.10.2 Nov 27, 2024 Changes in this version + var ErrInvalidTransfer = errors.New("transfer is not verified") + type BurnPayload struct + Amount tlb.Coins + CustomPayload *cell.Cell + QueryID uint64 + ResponseDestination *address.Address + type Client struct + func NewJettonMasterClient(api TonApi, masterContractAddr *address.Address) *Client + func (c *Client) GetJettonData(ctx context.Context) (*Data, error) + func (c *Client) GetJettonDataAtBlock(ctx context.Context, b *ton.BlockIDExt) (*Data, error) + func (c *Client) GetJettonWallet(ctx context.Context, ownerAddr *address.Address) (*WalletClient, error) + func (c *Client) GetJettonWalletAtBlock(ctx context.Context, ownerAddr *address.Address, b *ton.BlockIDExt) (*WalletClient, error) + type Data struct + AdminAddr *address.Address + Content nft.ContentAny + Mintable bool + TotalSupply *big.Int + WalletCode *cell.Cell + type MintPayload struct + Amount tlb.Coins + MasterMsg MintPayloadMasterMsg + QueryID uint64 + ToAddress *address.Address + type MintPayloadMasterMsg struct + JettonAmount tlb.Coins + Opcode uint32 + QueryID uint64 + RestData *cell.Cell + type TonApi interface + CurrentMasterchainInfo func(ctx context.Context) (_ *ton.BlockIDExt, err error) + RunGetMethod func(ctx context.Context, blockInfo *ton.BlockIDExt, addr *address.Address, ...) (*ton.ExecutionResult, error) + SubscribeOnTransactions func(workerCtx context.Context, addr *address.Address, lastProcessedLT uint64, ...) + WaitForBlock func(seqno uint32) ton.APIClientWrapped + type TransferNotification struct + Amount tlb.Coins + ForwardPayload *cell.Cell + QueryID uint64 + Sender *address.Address + type TransferPayload struct + Amount tlb.Coins + CustomPayload *cell.Cell + Destination *address.Address + ForwardPayload *cell.Cell + ForwardTONAmount tlb.Coins + QueryID uint64 + ResponseDestination *address.Address + type WalletClient struct + func (c *WalletClient) Address() *address.Address + func (c *WalletClient) BuildBurnPayload(amountCoins tlb.Coins, notifyAddr *address.Address) (*cell.Cell, error) + func (c *WalletClient) BuildTransferPayload(to *address.Address, amountCoins, amountForwardTON tlb.Coins, ...) (*cell.Cell, error) + func (c *WalletClient) BuildTransferPayloadV2(to, responseTo *address.Address, amountCoins, amountForwardTON tlb.Coins, ...) (*cell.Cell, error) + func (c *WalletClient) GetBalance(ctx context.Context) (*big.Int, error) + func (c *WalletClient) GetBalanceAtBlock(ctx context.Context, b *ton.BlockIDExt) (*big.Int, error)