ton

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BOC

type BOC = []byte

type Balance

type Balance struct {
	Balance *big.Int // Balance in NanoTONs
}

type Block

type Block struct {
	GlobalID int32 // Represents EVM-equivalent ChainID for TVM
}

type BlockIDExt

type BlockIDExt struct {
	Workchain int32
	Shard     int64
	SeqNo     uint32
}

type ExitCode

type ExitCode = int32

type LPFilterQuery

type LPFilterQuery struct {
	ID          int64
	Name        string
	Address     string
	EventName   string
	EventTopic  uint64
	StartingSeq uint32
	Retention   time.Duration
}

type LiteClient

type LiteClient interface {
	GetMasterchainInfo(ctx context.Context) (*BlockIDExt, error)
	GetBlockData(ctx context.Context, block *BlockIDExt) (*Block, error)
	GetAccountBalance(ctx context.Context, address string, block *BlockIDExt) (*Balance, error)
}

type Log

type Log struct {
	ID         int64
	FilterID   int64
	SeqNo      uint32
	Address    string
	EventTopic uint64
	Data       []byte // raw BOC of the body cell
	ReceivedAt time.Time
	ExpiresAt  *time.Time
	Error      *string
}

type Message

type Message struct {
	Mode      uint8  // TON send mode
	ToAddress string // TON address (raw or user-friendly)
	Amount    string // Amount in tons
	Bounce    bool   // Bounce flag
	Body      BOC    // BOC-encoded message body cell
	StateInit BOC    // BOC-encoded state init cell
}

type TransactionFee

type TransactionFee struct {
	TransactionFee *big.Int // Cost of transaction in NanoTONs
}

Jump to

Keyboard shortcuts

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