Documentation ¶
Index ¶
- Constants
- Variables
- func CreateExternalMessage(address AccountID, body *boc.Cell, init *tlb.StateInit, importFee tlb.Grams) (tlb.Message, error)
- func DefaultAddressParser() *addressParser
- func NewAccountAddressParser(resolver dnsResolver) *addressParser
- func ParseAddress(a string) (ton.Address, error)
- type AccountID
- func AccountIDFromBase64Url(s string) (AccountID, error)
- func AccountIDFromRaw(s string) (AccountID, error)
- func AccountIDFromTlb(a tlb.MsgAddress) (*AccountID, error)
- func MustParseAccountID(s string) AccountID
- func NewAccountId(id int32, addr [32]byte) *AccountID
- func ParseAccountID(s string) (AccountID, error)
- type Bits256
- type BlockID
- type BlockIDExt
- type JettonMetadata
- type ShardID
- type Transaction
Constants ¶
View Source
const (
// DefaultRoot is the default root address used by the addressParser.
DefaultRoot = "-1:e56754f83426f69b09267bd876ac97c44821345b7e266bd956a7bfbfb98df35c"
)
Variables ¶
View Source
var BlockchainInterfaceIsNil = errors.New("blockchain interface is nil")
Functions ¶
func CreateExternalMessage ¶
func DefaultAddressParser ¶ added in v1.2.1
func DefaultAddressParser() *addressParser
DefaultAddressParser returns a default address parser that works in the mainnet. Currently, there is no way to change the network. Take a look at NewAccountAddressParser to create a parser for a different network or with a different root address.
func NewAccountAddressParser ¶ added in v1.2.1
func NewAccountAddressParser(resolver dnsResolver) *addressParser
Types ¶
type AccountID ¶
func AccountIDFromBase64Url ¶
func AccountIDFromRaw ¶
func AccountIDFromTlb ¶ added in v1.0.1
func AccountIDFromTlb(a tlb.MsgAddress) (*AccountID, error)
func MustParseAccountID ¶
func NewAccountId ¶
func ParseAccountID ¶
type Bits256 ¶ added in v1.0.1
func MustParseHash ¶
type BlockID ¶ added in v1.0.1
func MustParseBlockID ¶ added in v1.1.2
func ParseBlockID ¶ added in v1.1.2
ParseBlockID tries to construct BlockID from the given string.
type BlockIDExt ¶ added in v1.0.1
type BlockIDExt = ton.BlockIDExt
func GetParents ¶ added in v1.0.1
func GetParents(i tlb.BlockInfo) ([]BlockIDExt, error)
func NewTonBlockId ¶
func NewTonBlockId(fileHash, rootHash Bits256, seqno uint32, shard uint64, workchain int32) *BlockIDExt
func ShardIDs ¶ added in v1.0.1
func ShardIDs(blk *tlb.Block) []BlockIDExt
ShardIDs returns a list of IDs of shard blocks this block refers to.
type JettonMetadata ¶
type Transaction ¶
type Transaction = ton.Transaction
Source Files ¶
Click to show internal directories.
Click to hide internal directories.