ton_dart
library
Classes
AccountAddressResponse
AccountEventResponse
An event is built on top of a trace which is a series of transactions caused by one inbound
message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where
a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT
Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top
of actions because actions can be changed at any time.
AccountEventsResponse
AccountInfoByStateInitResponse
AccountResponse
AccountsResponse
AccountStakingInfoResponse
AccountStakingResponse
AccountState
AccountStateActive
AccountStateFrozen
AccountStateResponse
AccountStateType
AccountStateUninit
AccountStatus
AccountStatusResponse
AccountStorage
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L235
account_storage$_ last_trans_lt:uint64 balance:CurrencyCollection state:AccountState
= AccountStorage;
AccountStorageInfoResponse
AccStatusChangeResponse
ActionPhaseResponse
ActionResponse
ActionSimplePreviewResponse
ActionStatusResponse
ActionTypeResponse
AddressParseBounceableResponse
AddressParseResponse
ApiProviderConst
ApyHistoryResponse
AuctionBidActionAuctionTypeResponse
AuctionBidActionResponse
AuctionResponse
AuctionsResponse
BitBuilder
A class for building and manipulating bits in a buffer.
BitReader
A reader for handling bit-level operations on a BitString
.
It allows loading, preloading, and skipping of bits or byte-level data.
BitString
A utility class to handle sequences of bits.
Provides methods to manipulate, retrieve, and clone bit-level data.
BlockchainAccountInspectMethodsItemResponse
BlockchainAccountInspectResponse
BlockchainBlockResponse
BlockchainBlockShardsResponse
BlockchainBlockShardsShardsItemResponse
BlockchainBlocksResponse
BlockchainConfig10
BlockchainConfig11
BlockchainConfig12
BlockchainConfig13
BlockchainConfig14
BlockchainConfig15
BlockchainConfig16
BlockchainConfig17
BlockchainConfig18
BlockchainConfig18StoragePricesItem
BlockchainConfig20
BlockchainConfig21
BlockchainConfig22
BlockchainConfig23
BlockchainConfig24
BlockchainConfig25
BlockchainConfig28
BlockchainConfig29
BlockchainConfig31
BlockchainConfig40
BlockchainConfig43
BlockchainConfig44
BlockchainConfig5
BlockchainConfig6
BlockchainConfig7
BlockchainConfig71
BlockchainConfig72
BlockchainConfig73
BlockchainConfig79
BlockchainConfig7CurrenciesItem
BlockchainConfig8
BlockchainConfig81
BlockchainConfig82
BlockchainConfig9
BlockchainConfigResponse
BlockchainRawAccountLibrariesItemResponse
BlockchainRawAccountResponse
BlockCurrencyCollectionOtherItemResponse
BlockCurrencyCollectionResponse
BlockLimitsResponse
BlockParamLimitsResponse
BlockRawResponse
BlockValueFlowResponse
BocSerializableObject
BocSerialization
BocUtils
BouncePhaseTypeResponse
Builder
A Builder
class that facilitates storing bits, integers, addresses, coins,
and other complex data structures into a cell structure for serialization.
Cell
The Cell
class represents a cell in the data structure, including its type, bit data,
references to other cells, and various metadata such as hashes and depths.
CellType
The CellType
class represents different types of cells with a unique tag and name.
This is used to define the types of cells in a system such as Merkle proofs, pruned branches, etc.
CommonMessageInfo
CommonMessageInfoExternalIn
CommonMessageInfoExternalOut
CommonMessageInfoInternal
CommonMessageInfoRelaxed
CommonMessageInfoRelaxedExternalOut
CommonMessageInfoRelaxedInternal
CommonMessageInfoRelaxedType
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L132
int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool
src:MsgAddress dest:MsgAddressInt
value:CurrencyCollection ihr_fee:Grams fwd_fee:Grams
created_lt:uint64 created_at:uint32 = CommonMsgInfoRelaxed;
ext_out_msg_info$11 src:MsgAddress dest:MsgAddressExt
created_lt:uint64 created_at:uint32 = CommonMsgInfoRelaxed;
CommonMessageInfoType
ComputePhaseResponse
ComputeSkipReason
ComputeSkipReasonResponse
ConfigProposalSetupResponse
ContractDeployActionResponse
ContractOperation
ContractOperationType
ContractState
An abstract base class representing the state of a contract.
CreditPhaseResponse
CurrencyCollection
DecodedMessageExtInMsgDecodedResponse
DecodedMessageExtInMsgDecodedWalletHighloadV2Response
DecodedMessageExtInMsgDecodedWalletV3Response
DecodedMessageExtInMsgDecodedWalletV4Response
DecodedMessageResponse
DecodedRawMessageMessageResponse
DecodedRawMessageResponse
DepositStakeActionResponse
DepthBalanceInfo
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L259
depth_balance$_ split_depth:(#<= 30) balance:CurrencyCollection = DepthBalanceInfo;
Dictionary <K extends Object , V >
Represents a dictionary where keys and values can be serialized and deserialized
using the provided key and value codecs.
DictionaryCodecs
Provides factory methods for creating DictionaryKey
and DictionaryValue
instances for various data types, used in serialization and deserialization
within dictionaries.
DictionaryKey <K extends Object >
Represents a key used in a dictionary, defining how to serialize and parse
the key value, as well as the bit length used for encoding.
DictionaryValue <V >
Represents a value in a dictionary, defining how to serialize and parse
the value.
DictSerialization
DnsExpiringItemsItemResponse
DnsExpiringResponse
DnsRecordResponse
DomainBidResponse
DomainBidsResponse
DomainInfoResponse
DomainNamesResponse
DomainRenewActionResponse
ElectionsDepositStakeActionResponse
ElectionsRecoverStakeActionResponse
EmulateMessageToWalletReqParamsItemResponse
EmulateMessageToWalletReqResponse
EstimateFeeResponse
EstimateFeeSourceFeesResponse
EventResponse
ExternalAddress
Represents an external address with a value and bit length.
FoundAccountsAddressesItemResponse
FoundAccountsResponse
GasLimitPricesResponse
GetAllRawShardsInfoResponse
GetBlockchainAccountTransactionsSortOrder
GetInscriptionOpTemplateResponse
HashUpdate
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L273/
update_hashes#72 {X:Type} old_hash:bits256 new_hash:bits256
= HASH_UPDATE X;
HighloadQueryId
HighloadTransferParams
HighloadWalletConst
HighloadWallets <T extends ContractState >
HighloadWalletV3
HighloadWalletV3State
ImagePreviewResponse
InitStateRawResponse
InscriptionBalanceResponse
InscriptionBalancesResponse
InscriptionMintActionResponse
InscriptionTransferActionResponse
InscriptionTypeResponse
JettonBalanceLockResponse
JettonBalanceResponse
JettonBridgeParamsResponse
JettonBridgePricesResponse
JettonBurnActionResponse
JettonHoldersAddressesItemResponse
JettonHoldersResponse
JettonInfoResponse
JettonMetadataResponse
JettonMintActionResponse
JettonMinter <E extends WalletContractTransferParams <OutAction > >
JettonMinterChangeAdmin
jetton change admin params
JettonMinterChangeContent
jetton change content params
JettonMinterConst
JettonMinterDiscovery
jetton discovery params
JettonMinterInternalTransfer
jetton internal transfer params
JettonMinterMint
jetton mint params
JettonMinterOperation
JettonMinterOperationType
jetton minter operations
JettonOffChainMetadata
JettonOnChainMetadata
JettonPreviewResponse
JettonQuantityResponse
JettonRawMetadata
JettonsBalancesResponse
JettonsResponse
JettonSwapActionDexResponse
JettonSwapActionResponse
JettonTransferActionResponse
JettonVerificationTypeResponse
JettonWallet <E extends WalletContractTransferParams <OutAction > >
JettonWalletBurn
jetton burn params
JettonWalletConst
JettonWalletOperation
JettonWalletOperationType
jetton wallet operations
JettonWalletState
JettonWalletTransfer
jetton wallet transfer params
JettonWalletWithdrawJetton
withdraw jetton params
JettonWalletWithdrawTon
widthraw ton params
MarketsRatesResponse
MarketsResponse
MarketTonRatesResponse
Source: https://github.com/ton-foundation/ton/blob/ae5c0720143e231c32c3d2034cfe4e533a16d969/crypto/block/block.tlb#L509
_ config_addr:bits256 config:^(Hashmap 32 ^Cell)
= ConfigParams;
Source: https://github.com/ton-foundation/ton/blob/ae5c0720143e231c32c3d2034cfe4e533a16d969/crypto/block/block.tlb#L534
masterchain_state_extra#cc26
shard_hashes:ShardHashes
config:ConfigParams
^ flags:(## 16) { flags <= 1 }
validator_info:ValidatorInfo
prev_blocks:OldMcBlocksInfo
after_key_block:Bool
last_key_block:(Maybe ExtBlkRef)
block_create_stats:(flags . 0)?BlockCreateStats
global_balance:CurrencyCollection
= McStateExtra;
Message
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L147
message$_ {X:Type} info:CommonMsgInfo
init:(Maybe (Either StateInit ^StateInit))
body:(Either X ^X) = Message X;
MessageCodec
MessageConsequencesResponse
MessageMsgTypeResponse
MessageRelaxed
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L151
message$_ {X:Type} info:CommonMsgInfoRelaxed
init:(Maybe (Either StateInit ^StateInit))
body:(Either X ^X) = MessageRelaxed X;
MessageResponse
MethodExecutionResultResponse
MinterWalletState
MisbehaviourPunishmentConfigResponse
MsgForwardPricesResponse
MultiOwnerContract <E extends WalletContractTransferParams <OutAction > >
MultiOwnerContractConst
MultiOwnerContractUtils
MultiOwnerTransferParams <E extends WalletContractTransferParams <OutAction > >
MultiOwnerWalletState
NftApprovedByItemResponse
NFTCollectionBatchMint
NFTCollectionChangeOwner
NFTCollectionContract <E extends WalletContractTransferParams <OutAction > >
NFTCollectionData
NFTCollectionEditableContract <E extends WalletContractTransferParams <OutAction > >
NFTCollectionMetadata
NFTCollectionMint
NFTCollectionOperation
NFTCollectionOperationType
NftCollectionResponse
NftCollectionsResponse
NftCollectionState
NFTEditableCollectionChangeContent
NftEditableCollectionState
NftItemCollectionResponse
NFTItemContract <E extends WalletContractTransferParams <OutAction > >
https://github.com/ton-blockchain/TEPs/blob/master/text/0062-nft-standard.md
NFTItemData
NFTItemGetStaticData
NFTItemMetadata
NFTItemOperation
NFTItemOperationType
NftItemResponse
NftItemsResponse
NFTItemState
NFTItemTransfer
NftItemTransferActionResponse
NFTMetadata
NFTMintParams
NftPurchaseActionAuctionTypeResponse
NftPurchaseActionResponse
NFTRawMetadata
NoneSubWalletVersionedWalletState
OracleBridgeParamsResponse
OracleResponse
OrderContract <E extends WalletContractTransferParams <OutAction > >
OrderContractState
OutAction
OutActionAddExtension
OutActionExtended
OutActionMultiSig
OutActionMultiSigSendMsg
OutActionRemoveExtension
OutActionSendMsg
OutActionSetCode
OutActionSetIsPublicKeyEnabled
OutActionsV5
OutActionType
OutActionUpdateMultiSig
OutActionUtils
OutActionWalletV5
OutMsgQueueSizesResponse
OutMsgQueueSizesShardsItemResponse
PoolImplementationResponse
PoolImplementationTypeResponse
PoolInfoResponse
PriceResponse
RawAccountStateResponse
RawBlockchainBlockStateResponse
RawBlockchainConfigResponse
RawBlockProofResponse
RawBlockProofStepsItemLiteServerBlockLinkBackResponse
RawBlockProofStepsItemLiteServerBlockLinkForwardResponse
RawBlockProofStepsItemLiteServerBlockLinkForwardSignaturesResponse
RawBlockProofStepsItemLiteServerBlockLinkForwardSignaturesSignaturesItemResponse
RawBlockProofStepsItemResponse
RawConfigResponse
RawhardBlockProofLinksItemResponse
RawListBlockTransactionsIdsItemResponse
RawListBlockTransactionsResponse
RawMasterchainInfoExtResponse
RawMasterchainInfoResponse
RawShardBlockProofResponse
RawShardInfoResponse
RawTransactionResponse
RefundResponse
RefundTypeResponse
RiskResponse
RoyaltyParams
RunMethodResponse
SaleResponse
SendMode
SendModeConst
SeqnoResponse
ServiceStatusResponse
ShardAccount
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L256
account_descr$_ account:^Account last_trans_hash:bits256
last_trans_lt:uint64 = ShardAccount;
ShardAccountRef
ShardAccounts
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L261
_ (HashmapAugE 256 ShardAccount DepthBalanceInfo) = ShardAccounts;
ShardAccountsCodec
ShardIdent
ShardStateUnsplit
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L396
shard_state#9023afe2 global_id:int32
shard_id:ShardIdent
seq_no:uint32 vert_seq_no:#
gen_utime:uint32 gen_lt:uint64
min_ref_mc_seqno:uint32
out_msg_queue_info:^OutMsgQueueInfo
before_split:(## 1)
accounts:^ShardAccounts
^ overload_history:uint64 underload_history:uint64
total_balance:CurrencyCollection
total_validator_fees:CurrencyCollection
libraries:(HashmapE 256 LibDescr)
master_ref:(Maybe BlkMasterInfo)
custom:(Maybe ^McStateExtra)
= ShardStateUnsplit;
SimpleLibrary
SimpleLibraryCodecs
SizeLimitsConfigResponse
Slice
The Slice
class provides methods to read and manipulate a portion of data from a bit stream.
It handles the extraction of various data types and references from a binary object code (BOC) slice.
SmartContractActionResponse
SplitMergeInfo
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L339
split_merge_info$_ cur_shard_pfx_len:(## 6)
acc_split_depth:(## 6) this_addr:bits256 sibling_addr:bits256
= SplitMergeInfo;
StableJettonMinter <E extends WalletContractTransferParams <OutAction > >
StableJettonMinterCallTo
call to params
StableJettonMinterCallToOperations
StableJettonMinterChangeAdmin
change admin params
StableJettonMinterChangeContent
change content params
StableJettonMinterClaimAdmin
clain admin params
StableJettonMinterDiscovery
discovery params
StableJettonMinterInternalTransfer
internal transfer params
StableJettonMinterMint
mint params
StableJettonMinterOperation
StableJettonMinterOperationType
stable jetton minter operations
StableJettonMinterTopUp
top up params
StableJettonOffChainMetadata
StableJettonWallet <E extends WalletContractTransferParams <OutAction > >
StableJettonWalletBurn
burn params
StableJettonWalletOperation
StableJettonWalletOperationType
stasble jetton wallet operations
StableJettonWalletSetStatus
set status parasm
StableJettonWalletState
StableJettonWalletTransfer
transfer params
StableTokenMinterData
data related to stable token minter
StableTokenMinterState
StableTokenWalletStatus
StakingPoolResponse
StakingPoolsResponse
StateInit
StateInitResponse
StorageInfo
StoragePhaseResponse
StorageProvider
StorageProviderResponse
StorageStat
StorageUsed
StorageUsedShort
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L225
storage_used_short$_ cells:(VarUInteger 7)
bits:(VarUInteger 7) = StorageUsedShort;
SubscriptionActionResponse
SubscriptionResponse
SubscriptionsResponse
SubWalletVersionedWalletState
TickTock
TokenMetadata
TokenRatesResponse
TokneMetadataUtils
TonAccount
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L231
account_none$0 = Account;
account$1 addr:MsgAddressInt storage_stat:StorageInfo storage:AccountStorage = Account;
TonAddress
Represents a TON address and provides methods for handling its type.
TonAddressType
A class representing the different types of TON (The Open Network) addresses.
TonApiAccountDnsBackResolve
AccountDnsBackResolve invokes accountDnsBackResolve operation.
TonApiAddressParse
AddressParse invokes addressParse operation.
TonApiBlockchainAccountInspect
BlockchainAccountInspectResponse invokes blockchainAccountInspect operation.
TonApiDecodeMessage
DecodeMessage invokes decodeMessage operation.
TonApiDnsResolve
DnsResolve invokes dnsResolve operation.
TonApiEmulateMessageToAccountEvent
EmulateMessageToAccountEvent invokes emulateMessageToAccountEvent operation.
TonApiEmulateMessageToEvent
EmulateMessageToEvent invokes emulateMessageToEvent operation.
TonApiEmulateMessageToTrace
EmulateMessageToTrace invokes emulateMessageToTrace operation.
TonApiEmulateMessageToWallet
EmulateMessageToWallet invokes emulateMessageToWallet operation.
TonApiExecGetMethodForBlockchainAccount
ExecGetMethodForBlockchainAccount invokes execGetMethodForBlockchainAccount operation.
TonApiGetAccount
GetAccount invokes getAccount operation.
TonApiGetAccountDiff
GetAccountDiff invokes getAccountDiff operation.
TonApiGetAccountDnsExpiring
GetAccountDnsExpiring invokes getAccountDnsExpiring operation.
TonApiGetAccountEvent
GetAccountEvent invokes getAccountEvent operation.
TonApiGetAccountEvents
GetAccountEvents invokes getAccountEvents operation.
TonApiGetAccountInfoByStateInit
GetAccountInfoByStateInit invokes getAccountInfoByStateInit operation.
TonApiGetAccountInscriptions
GetAccountInscriptions invokes getAccountInscriptions operation.
TonApiGetAccountInscriptionsHistory
GetAccountInscriptionsHistory invokes getAccountInscriptionsHistory operation.
TonApiGetAccountInscriptionsHistoryByTicker
GetAccountInscriptionsHistoryByTicker invokes getAccountInscriptionsHistoryByTicker operation.
TonApiGetAccountJettonHistoryByID
GetAccountJettonHistoryByID invokes getAccountJettonHistoryByID operation.
TonApiGetAccountJettonsBalances
GetAccountJettonsBalances invokes getAccountJettonsBalances operation.
TonApiGetAccountJettonsHistory
GetAccountJettonsHistory invokes getAccountJettonsHistory operation.
TonApiGetAccountNftHistory
GetAccountNftHistory invokes getAccountNftHistory operation.
TonApiGetAccountNftItems
GetAccountNftItems invokes getAccountNftItems operation.
TonApiGetAccountNominatorsPools
GetAccountNominatorsPools invokes getAccountNominatorsPools operation.
TonApiGetAccountPublicKey
GetAccountPublicKey invokes getAccountPublicKey operation.
TonApiGetAccounts
GetAccounts invokes getAccounts operation.
TonApiGetAccountSeqno
GetAccountSeqno invokes getAccountSeqno operation.
TonApiGetAccountSubscriptions
GetAccountSubscriptions invokes getAccountSubscriptions operation.
TonApiGetAccountTraces
GetAccountTraces invokes getAccountTraces operation.
TonApiGetAllAuctions
GetAllAuctions invokes getAllAuctions operation.
TonApiGetAllRawShardsInfo
GetAllRawShardsInfo invokes getAllRawShardsInfo operation.
TonApiGetBlockchainAccountTransactions
GetBlockchainAccountTransactions invokes getBlockchainAccountTransactions operation.
TonApiGetBlockchainBlock
GetBlockchainBlock invokes getBlockchainBlock operation.
TonApiGetBlockchainBlockTransactions
GetBlockchainBlockTransactions invokes getBlockchainBlockTransactions operation.
TonApiGetBlockchainConfig
GetBlockchainConfig invokes getBlockchainConfig operation.
TonApiGetBlockchainConfigFromBlock
GetBlockchainConfigFromBlock invokes getBlockchainConfigFromBlock operation.
TonApiGetBlockchainMasterchainBlocks
GetBlockchainMasterchainBlocks invokes getBlockchainMasterchainBlocks operation.
TonApiGetBlockchainMasterchainHead
GetBlockchainMasterchainHead invokes getBlockchainMasterchainHead operation.
TonApiGetBlockchainMasterchainShards
GetBlockchainMasterchainShards invokes getBlockchainMasterchainShards operation.
TonApiGetBlockchainMasterchainTransactions
GetBlockchainMasterchainTransactions invokes getBlockchainMasterchainTransactions operation.
TonApiGetBlockchainRawAccount
GetBlockchainRawAccount invokes getBlockchainRawAccount operation.
TonApiGetBlockchainTransaction
GetBlockchainTransaction invokes getBlockchainTransaction operation.
TonApiGetBlockchainTransactionByMessageHash
GetBlockchainTransactionByMessageHash invokes getBlockchainTransactionByMessageHash operation.
TonApiGetBlockchainValidators
GetBlockchainValidators invokes getBlockchainValidators operation.
TonApiGetChartRates
GetChartRates invokes getChartRates operation.
TonApiGetDnsInfo
GetDnsInfo invokes getDnsInfo operation.
TonApiGetDomainBids
GetDomainBids invokes getDomainBids operation.
TonApiGetEvent
GetEvent invokes getEvent operation.
TonApiGetInscriptionOpTemplate
GetInscriptionOpTemplate invokes getInscriptionOpTemplate operation.
TonApiGetItemsFromCollection
GetItemsFromCollection invokes getItemsFromCollection operation.
TonApiGetJettonHolders
GetJettonHolders invokes getJettonHolders operation.
TonApiGetJettonInfo
GetJettonInfo invokes getJettonInfo operation.
TonApiGetJettons
GetJettons invokes getJettons operation.
TonApiGetJettonsEvents
GetJettonsEvents invokes getJettonsEvents operation.
TonApiGetMarketsRates
GetMarketsRates invokes getMarketsRates operation.
TonApiGetNftCollection
GetNftCollection invokes getNftCollection operation.
TonApiGetNftCollections
GetNftCollections invokes getNftCollections operation.
TonApiGetNftHistoryByID
GetNftHistoryByID invokes getNftHistoryByID operation.
TonApiGetNftItemByAddress
GetNftItemByAddress invokes getNftItemByAddress operation.
TonApiGetNftItemsByAddresses
GetNftItemsByAddresses invokes getNftItemsByAddresses operation.
TonApiGetOutMsgQueueSizes
GetOutMsgQueueSizes invokes getOutMsgQueueSizes operation.
TonApiGetRates
GetRates invokes getRates operation.
TonApiGetRawAccountState
GetRawAccountState invokes getRawAccountState operation.
TonApiGetRawBlockchainBlock
GetRawBlockchainBlock invokes getRawBlockchainBlock operation.
GetRawBlockchainBlockHeader invokes getRawBlockchainBlockHeader operation.
TonApiGetRawBlockchainBlockState
GetRawBlockchainBlockState invokes getRawBlockchainBlockState operation.
TonApiGetRawBlockchainConfig
GetRawBlockchainConfig invokes getRawBlockchainConfig operation.
TonApiGetRawBlockchainConfigFromBlock
GetRawBlockchainConfigFromBlock invokes getRawBlockchainConfigFromBlock operation.
TonApiGetRawBlockProof
GetRawBlockProof invokes getRawBlockProof operation.
TonApiGetRawConfig
GetRawConfig invokes getRawConfig operation.
TonApiGetRawListBlockTransactions
GetRawListBlockTransactions invokes getRawListBlockTransactions operation.
TonApiGetRawMasterchainInfo
GetRawMasterchainInfo invokes getRawMasterchainInfo operation.
TonApiGetRawMasterchainInfoExt
GetRawMasterchainInfoExt invokes getRawMasterchainInfoExt operation.
TonApiGetRawShardBlockProof
GetRawShardBlockProof invokes getRawShardBlockProof operation.
TonApiGetRawShardInfo
GetRawShardInfo invokes getRawShardInfo operation.
TonApiGetRawTime
GetRawTime invokes getRawTime operation.
TonApiGetRawTransactions
GetRawTransactions invokes getRawTransactions operation.
TonApiGetStakingPoolHistory
GetStakingPoolHistory invokes getStakingPoolHistory operation.
TonApiGetStakingPoolInfo
GetStakingPoolInfo invokes getStakingPoolInfo operation.
TonApiGetStakingPools
GetStakingPools invokes getStakingPools operation.
TonApiGetStorageProviders
GetStorageProviders invokes getStorageProviders operation.
TonApiGetTonConnectPayload
GetTonConnectPayload invokes getTonConnectPayload operation.
TonApiGetTrace
GetTrace invokes getTrace operation.
TonApiGetWalletBackup
GetWalletBackup invokes getWalletBackup operation.
TonApiGetWalletsByPublicKey
GetWalletsByPublicKey invokes getWalletsByPublicKey operation.
TonApiMethods
TonApiPostRequest <RESULT , RESPONSE >
An abstract class representing post request parameters for TonApi API calls.
TonApiReindexAccount
ReindexAccount invokes reindexAccount operation.
TonApiRequest <RESULT , RESPONSE >
An abstract class representing request parameters for TonApi API calls.
TonApiSearchAccounts
SearchAccounts invokes searchAccounts operation.
TonApiSendBlockchainMessage
SendBlockchainMessage invokes sendBlockchainMessage operation.
TonApiSendRawMessage
SendRawMessage invokes sendRawMessage operation.
TonApiStatus
Status invokes status operation.
TonApiTonConnectProof
TonConnectProof invokes tonConnectProof operation.
TonApiType
TonBaseAddress
TonCenterDetectAddress
Get all possible address forms
https://toncenter.com/api/v2/#/accounts/detect_address_detectAddress_get
TonCenterEstimateFee
Estimate fees required for query processing. body, init-code and init-data accepted in serialized format (b64-encoded).
https://toncenter.com/api/v2/#/send/estimate_fee_estimateFee_post
TonCenterGetAddressBalance
Get balance (in nanotons) of a given address.
https://toncenter.com/api/v2/#/accounts/get_address_balance_getAddressBalance_get
TonCenterGetAddressInformation
Get basic information about the address: balance, code, data, last_transaction_id.
https://toncenter.com/api/v2/#/accounts/get_address_information_getAddressInformation_get
TonCenterGetAddressState
Get state of a given address. State can be either unitialized, active or frozen.
https://toncenter.com/api/v2/#/accounts/get_address_getAddressState_get
Get metadata of a given block.
https://toncenter.com/api/v2/#/blocks/get_block_header_getBlockHeader_get
TonCenterGetBlockTransactions
Get transactions of the given block.
https://toncenter.com/api/v2/#/blocks/get_block_transactions_getBlockTransactions_get
TonCenterGetConfigParam
Get config by id.
https://toncenter.com/api/v2/#/get%20config/get_config_param_getConfigParam_get
TonCenterGetConsensusBlock
Get consensus block and its update timestamp.
https://toncenter.com/api/v2/#/blocks/get_consensus_block_getConsensusBlock_get
TonCenterGetExtendedAddressInformation
Similar to getAddressInformation but tries to parse additional information for known contract types.
This method is based on tonlib's function getAccountState. For detecting wallets we recommend to use getWalletInformation.
https://toncenter.com/api/v2/#/accounts/get_extended_address_information_getExtendedAddressInformation_get
TonCenterGetMasterchainBlockSignatures
Get up-to-date masterchain state.
https://toncenter.com/api/v2/#/blocks/get_masterchain_block_signatures_getMasterchainBlockSignatures_get
TonCenterGetMasterchainInfo
Get up-to-date masterchain state.
https://toncenter.com/api/v2/#/blocks/get_masterchain_info_getMasterchainInfo_get
TonCenterGetShardBlockProof
Get merkle proof of shardchain block.
https://toncenter.com/api/v2/#/blocks/get_shard_block_proof_getShardBlockProof_get
TonCenterGetTokenData
Get NFT or Jetton information.
https://toncenter.com/api/v2/#/accounts/get_token_data_getTokenData_get
TonCenterGetTransactions
Get transaction history of a given address.
https://toncenter.com/api/v2/#/accounts/get_transactions_getTransactions_get
TonCenterGetWalletInformation
Retrieve wallet information. This method parses contract state and currently supports more wallet types than
getExtendedAddressInformation: simple wallet, standart wallet, v3 wallet, v4 wallet.
https://toncenter.com/api/v2/#/accounts/get_wallet_information_getWalletInformation_get
TonCenterLookupBlock
Look up block by either seqno, lt or unixtime.
https://toncenter.com/api/v2/#/blocks/lookup_block_lookupBlock_get
TonCenterPackAddress
Convert an address from raw to human-readable format
https://toncenter.com/api/v2/#/accounts/pack_address_packAddress_get
TonCenterPostRequest <RESULT , RESPONSE >
An abstract class representing post request parameters for TonApi API calls.
TonCenterRunGetMethod
Run get method on smart contract.
https://toncenter.com/api/v2/#/run%20method/run_get_method_runGetMethod_post
TonCenterRunMethodResponse
TonCenterSendBoc
Send serialized boc file: fully packed and serialized external message to blockchain.
https://toncenter.com/api/v2/#/send/send_boc_sendBoc_post
TonCenterSendBocReturnHash
Send serialized boc file: fully packed and serialized external
message to blockchain. The method returns message hash
https://toncenter.com/api/v2/#/send/send_boc_return_hash_sendBocReturnHash_post
TonCenterSendQuery
Send query - unpacked external message. This method takes address, body and init-params (if any),
packs it to external message and sends to network. All params should be boc-serialized.
https://toncenter.com/api/v2/#/send/send_query_sendQuery_post
TonCenterShards
Get shards information.
https://toncenter.com/api/v2/#/blocks/get_shards_shards_get
TonCenterTracesResponse
TonCenterTryLocateResultTx
Same as tryLocateTx. Locate outcoming transaction of destination address by incoming message
https://toncenter.com/api/v2/#/transactions/get_try_locate_result_tx_tryLocateResultTx_get
TonCenterTryLocateSourceTx
Locate incoming transaction of source address by outcoming message.
https://toncenter.com/api/v2/#/transactions/get_try_locate_source_tx_tryLocateSourceTx_get
TonCenterTryLocateTx
Locate outcoming transaction of destination address by incoming message
https://toncenter.com/api/v2/#/transactions/get_try_locate_tx_tryLocateTx_get
TonCenterUnpackAddress
Convert an address from human-readable to raw format.
https://toncenter.com/api/v2/#/accounts/unpack_address_unpackAddress_get
TonCenterV3Account
TonCenterV3EstimateFee
Estimate fees required for query processing. body, init-code and init-data accepted in serialized format (b64-encoded).
https://toncenter.com/api/v2/#/send/estimate_fee_estimateFee_post
TonCenterV3GetJettonMasters
Get Jetton masters by specified filters.
https://toncenter.com/api/v3/#/default/get_jetton_masters_api_v3_jetton_masters_get
TonCenterV3GetJettonWallets
Get Jetton wallets by specified filters.
https://toncenter.com/api/v3/#/default/get_jetton_wallets_api_v3_jetton_wallets_get
TonCenterV3GetMasterChainInfo
TonCenterV3GetTransactions
Get transactions by specified filter.
https://toncenter.com/api/v3/index.html#/blockchain/api_v3_get_transactions
TonCenterV3GetTransactionsResponse
TonCenterV3PostRequestParam <RESULT , RESPONSE >
TonCenterV3RequestParam <RESULT , RESPONSE >
An abstract class representing request parameters for TonApi API calls.
TonCenterV3Traces
Get transactions by specified filter.
https://toncenter.com/api/v3/index.html#/blockchain/api_v3_get_transactions
TonChain
Represents a TON (The Open Network) blockchain network and its associated parameters.
TonContract <T >
An abstract base class representing a TON (The Open Network) contract.
TonContractExceptionConst
the repository of exceptions
TonFeeUtils
TonHelper
A utility class for handling TON (The Open Network) specific operations.
TonNftConst
TonPrivateKey
The TonPrivateKey class encapsulates the functionality for handling Ed25519 private keys
specific to TON (The Open Network). It provides methods to create, serialize, and sign data with the private key.
TonProvider
Facilitates communication with the tonApi by making requests using a provided TonProvider .
TonPublicKey
The TonPublicKey class encapsulates the functionality for handling Ed25519 public keys
specific to TON (The Open Network). It provides methods to create, serialize, and verify signatures with the public key.
TonRequestDetails
Represents the details of a TonApi request.
TonSerialization
Abstract class for TON serialization, extending JSON serialization
and implementing BOC serialization.
TonSerializationUtils
TonTransaction
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L263
transaction$0111 account_addr:bits256 lt:uint64
prev_trans_hash:bits256 prev_trans_lt:uint64 now:uint32
outmsg_cnt:uint15
orig_status:AccountStatus end_status:AccountStatus
^ in_msg:(Maybe ^(Message Any)) out_msgs:(HashmapE 15 ^(Message Any))
total_fees:CurrencyCollection state_update:^(HASH_UPDATE Account)
description:^TransactionDescr = Transaction;
TonTransferActionResponse
TraceIDResponse
TraceIDsResponse
TraceResponse
TransactionActionPhase
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L310
tr_phase_action$_ success:Bool valid:Bool no_funds:Bool
status_change:AccStatusChange
total_fwd_fees:(Maybe Grams) total_action_fees:(Maybe Grams)
result_code:int32 result_arg:(Maybe int32) tot_actions:uint16
spec_actions:uint16 skipped_actions:uint16 msgs_created:uint16
action_list_hash:bits256 tot_msg_size:StorageUsedShort
= TrActionPhase;
TransactionBounceNegativeFunds
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L318
tr_phase_bounce_negfunds$00 = TrBouncePhase;
tr_phase_bounce_nofunds$01 msg_size:StorageUsedShort req_fwd_fees:Grams = TrBouncePhase;
tr_phase_bounce_ok$1 msg_size:StorageUsedShort msg_fees:Grams fwd_fees:Grams = TrBouncePhase;
TransactionBounceNoFunds
TransactionBounceOk
TransactionBouncePhase
TransactionBouncePhaseType
TransactionComputePhase
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L296
tr_phase_compute_skipped$0 reason:ComputeSkipReason
= TrComputePhase;
tr_phase_compute_vm$1 success:Bool msg_state_used:Bool
account_activated:Bool gas_fees:Grams
^ gas_used:(VarUInteger 7)
gas_limit:(VarUInteger 7) gas_credit:(Maybe (VarUInteger 3))
mode:int8 exit_code:int32 exit_arg:(Maybe int32)
vm_steps:uint32
vm_init_state_hash:bits256 vm_final_state_hash:bits256
= TrComputePhase;
TransactionComputePhaseType
TransactionComputeSkipped
TransactionComputeVm
TransactionCreditPhase
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L293
tr_phase_credit$_ due_fees_collected:(Maybe Grams)
credit:CurrencyCollection = TrCreditPhase;
TransactionDescription
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L324
trans_ord$0000 credit_first:Bool
storage_ph:(Maybe TrStoragePhase)
credit_ph:(Maybe TrCreditPhase)
compute_ph:TrComputePhase action:(Maybe ^TrActionPhase)
aborted:Bool bounce:(Maybe TrBouncePhase)
destroyed:Bool
= TransactionDescr;
trans_storage$0001 storage_ph:TrStoragePhase
= TransactionDescr;
trans_tick_tock$001 is_tock:Bool storage_ph:TrStoragePhase
compute_ph:TrComputePhase action:(Maybe ^TrActionPhase)
aborted:Bool destroyed:Bool = TransactionDescr;
trans_split_prepare$0100 split_info:SplitMergeInfo
storage_ph:(Maybe TrStoragePhase)
compute_ph:TrComputePhase action:(Maybe ^TrActionPhase)
aborted:Bool destroyed:Bool
= TransactionDescr;
trans_split_install$0101 split_info:SplitMergeInfo
prepare_transaction:^Transaction
installed:Bool = TransactionDescr;
TransactionDescriptionGeneric
TransactionDescriptionSplitInstall
TransactionDescriptionSplitPrepare
TransactionDescriptionStorage
TransactionDescriptionTickTock
TransactionDescriptionType
TransactionResponse
TransactionsResponse
TransactionStoragePhase
Source: https://github.com/ton-blockchain/ton/blob/24dc184a2ea67f9c47042b4104bbb4d82289fac1/crypto/block/block.tlb#L284
tr_phase_storage$_ storage_fees_collected:Grams
storage_fees_due:(Maybe Grams)
status_change:AccStatusChange
= TrStoragePhase;
TransactionTypeResponse
TrustTypeResponse
TupleItem
Abstract base class for all tuple items.
TupleItemBuilder
Represents a tuple item containing a builder.
TupleItemCell
Represents a tuple item containing a cell.
TupleItemInt
Represents a tuple item containing an integer value.
TupleItemNaN
// Represents a tuple item with a NaN value.
TupleItemNull
Represents a tuple item with a null value.
TupleItemSlice
Represents a tuple item containing a slice.
TupleItemTuple
Represents a tuple item containing a list of other tuple items.
TupleItemTypes
Represents the types of tuple items with associated string names.
TupleReader
A class for reading and manipulating tuple items from a list.
TupleSerialization
TupleUtils
TvmStackRecordResponse
TvmStackRecordTypeResponse
UnSubscriptionActionResponse
V5R1ClientContext
V5R1Context
V5R1CustomContext
V5VersionedWalletState
ValidatorResponse
ValidatorsResponse
ValueFlowJettonsItemResponse
ValueFlowResponse
VersionedTransferParams
VersionedV5TransferParams
VersionedWalletConst
VersionedWalletContract <STATE extends VersionedWalletState , TRANSFERPARAMS extends WalletContractTransferParams <OutAction > >
VersionedWalletState
VersionedWalletTransaction
VersionedWalletTransactionV1
VersionedWalletTransactionV2
VersionedWalletTransactionV3
VersionedWalletTransactionV4
VersionedWalletTransactionV5
VersionedWalletTransactionV5Extension
VersionedWalletTransactionV5External
VersionedWalletTransactionV5Internal
VersionedWalletUtils
VersionedWalletV5Extension
VersionedWalletV5Internal
VersionedWalletV5InternalMessage
VersionedWalletV5Operaion
VersionedWalletV5OperaionType
WalletContract <C extends ContractState , T extends WalletContractTransferParams <OutAction > >
WalletContractTransferParams <T extends OutAction >
the interface for wallet contracts for called transfer method from another contract like jetton and nfts
messages the messages to be transfer from specify wallet
WalletDNSResponse
WalletV1R1
This is the simplest one. It only allows you to send one transaction at
the time and it doesn't check anything besides your signature and seqno.
This version isn't even used in regular apps because it has some major issues:
No easy way to retrieve the seqno and public key from the contract
No valid_until check, so you can't be sure that the transaction won't be confirmed too late.
The first issue is fixed in V1R2 and V1R3. That R letter means revision. Usually revisions are just small updates which only add get-methods which allows you to retrieve seqno and public key from the contract. But this version also has a second issue, which is fixed in the next version.
https://docs.ton.org/participate/wallets/contracts
WalletV1R2
This is the simplest one. It only allows you to send one transaction at
the time and it doesn't check anything besides your signature and seqno.
This version isn't even used in regular apps because it has some major issues:
No easy way to retrieve the seqno and public key from the contract
No valid_until check, so you can't be sure that the transaction won't be confirmed too late.
The first issue is fixed in V1R2 and V1R3. That R letter means revision. Usually revisions are just small updates which only add get-methods which allows you to retrieve seqno and public key from the contract. But this version also has a second issue, which is fixed in the next version.
https://docs.ton.org/participate/wallets/contracts
WalletV1R3
This is the simplest one. It only allows you to send one transaction at
the time and it doesn't check anything besides your signature and seqno.
This version isn't even used in regular apps because it has some major issues:
No easy way to retrieve the seqno and public key from the contract
No valid_until check, so you can't be sure that the transaction won't be confirmed too late.
The first issue is fixed in V1R2 and V1R3. That R letter means revision. Usually revisions are just small updates which only add get-methods which allows you to retrieve seqno and public key from the contract. But this version also has a second issue, which is fixed in the next version.
https://docs.ton.org/participate/wallets/contracts
WalletV2R1
This version introduces the valid_until parameter which is used to set a time limit for a
transaction in case you don't want it to be confirmed too late. This version also doesn't
have the get-method for public key, which is added in V2R2.
It can be used in most cases, but it misses one cool feature, which was added in V3.
https://docs.ton.org/participate/wallets/contracts
WalletV2R2
This version introduces the valid_until parameter which is used to set a time limit for a
transaction in case you don't want it to be confirmed too late. This version also doesn't
have the get-method for public key, which is added in V2R2.
It can be used in most cases, but it misses one cool feature, which was added in V3.
https://docs.ton.org/participate/wallets/contracts
WalletV3R1
This version introduces the subwallet_id parameter, which allows you to create multiple wallets
using the same public key (so you can have only one seed phrase and lots of wallets). And,
as before, V3R2 only adds the get-method for public key.
Basically, subwallet_id is just a number which is added to the contract state when it is deployed.
And since the contract address in TON is a hash of its state and code, the wallet address will change with a different subwallet_id.
This version is the most used right now. It covers most use-cases and remains clean and simple.
WalletV3R2
This version introduces the subwallet_id parameter, which allows you to create multiple wallets
using the same public key (so you can have only one seed phrase and lots of wallets). And,
as before, V3R2 only adds the get-method for public key.
Basically, subwallet_id is just a number which is added to the contract state when it is deployed.
And since the contract address in TON is a hash of its state and code, the wallet address will change with a different subwallet_id.
This version is the most used right now. It covers most use-cases and remains clean and simple.
https://docs.ton.org/participate/wallets/contracts
WalletV4
It is the most modern wallet version at the moment. It still has all the functionality of the previous versions,
but also introduces something very powerful — plugins.
This feature allows developers to implement complex logic that will work in tandem with a
user's wallet. For example, some DApp may require a user to pay a small amount of coins every day
to use some features, so the user will need to install the plugin on their wallet by signing a transaction.
This plugin will send coins to the destination address every day when it will be reqested by an external message.
This is a very customizable feature which is unique to TON Blockchain.
https://docs.ton.org/participate/wallets/contracts#wallet-v4
WalletV5AuthType
WalletV5R1
This is an extensible wallet specification aimed at replacing V4 and allowing arbitrary extensions.
W5 has 25% lower fees, supports gasless transactions (via third party relayers) and implements a flexible extension mechanism.
https://github.com/tonkeeper/w5/tree/main
WalletVersion
WithdrawStakeActionResponse
WithdrawStakeRequestActionResponse
WorkchainDescr