- Preparing search index...
- The search index is not available
ton
Properties
Private
Optional
#adapter
#adapter?: AxiosAdapter
Private
#endpoint
#endpoint: string
Private
#timeout
#timeout: number
Methods
getAccount
- getAccount(seqno: number, address: Address): Promise<{
account: { state: { type: "uninit"; } | { type: "active"; code: string | null; data: string | null; } | { type: "frozen"; stateHash: string; }; balance: { coins: string; }; last: { lt: string; hash: string; } | null; storageStat: { ...; } | null; };
block: { workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; };
}>
-
Returns Promise<{
account: { state: { type: "uninit"; } | { type: "active"; code: string | null; data: string | null; } | { type: "frozen"; stateHash: string; }; balance: { coins: string; }; last: { lt: string; hash: string; } | null; storageStat: { ...; } | null; };
block: { workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; };
}>
getAccountLite
- getAccountLite(seqno: number, address: Address): Promise<{
account: { state: { type: "uninit"; } | { type: "active"; codeHash: string; dataHash: string; } | { type: "frozen"; stateHash: string; }; balance: { coins: string; }; last: { lt: string; hash: string; } | null; storageStat: { ...; } | null; };
}>
-
Returns Promise<{
account: { state: { type: "uninit"; } | { type: "active"; codeHash: string; dataHash: string; } | { type: "frozen"; stateHash: string; }; balance: { coins: string; }; last: { lt: string; hash: string; } | null; storageStat: { ...; } | null; };
}>
getAccountTransactions
- getAccountTransactions(address: Address, lt: bigint, hash: Buffer): Promise<{
block: {
fileHash: string;
rootHash: string;
seqno: number;
shard: string;
workchain: number;
};
tx: Transaction;
}[]>
-
Returns Promise<{
block: {
fileHash: string;
rootHash: string;
seqno: number;
shard: string;
workchain: number;
};
tx: Transaction;
}[]>
getBlock
- getBlock(seqno: number): Promise<{
shards: ({ workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; transactions: { account: string; hash: string; lt: string; }[]; })[];
}>
-
Returns Promise<{
shards: ({ workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; transactions: { account: string; hash: string; lt: string; }[]; })[];
}>
getBlockByUtime
- getBlockByUtime(ts: number): Promise<{
shards: ({ workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; transactions: { account: string; hash: string; lt: string; }[]; })[];
}>
-
Returns Promise<{
shards: ({ workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; transactions: { account: string; hash: string; lt: string; }[]; })[];
}>
getConfig
- getConfig(seqno: number, ids?: number[]): Promise<{
config: { cell: string; address: string; globalBalance: { coins: string; }; };
}>
-
Parameters
-
seqno: number
-
Optional
ids: number[]
Returns Promise<{
config: { cell: string; address: string; globalBalance: { coins: string; }; };
}>
getLastBlock
- getLastBlock(): Promise<{
init: { fileHash: string; rootHash: string; };
last: { seqno: number; shard: string; workchain: number; fileHash: string; rootHash: string; };
now: number;
stateRootHash: string;
}>
-
Returns Promise<{
init: { fileHash: string; rootHash: string; };
last: { seqno: number; shard: string; workchain: number; fileHash: string; rootHash: string; };
now: number;
stateRootHash: string;
}>
isAccountChanged
- isAccountChanged(seqno: number, address: Address, lt: bigint): Promise<{
block: { workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; };
changed: boolean;
}>
-
Returns Promise<{
block: { workchain: number; seqno: number; shard: string; rootHash: string; fileHash: string; };
changed: boolean;
}>
open
- open<T>(contract: T): OpenedContract<T>
-
Returns OpenedContract<T>
openAt
- openAt<T>(block: number, contract: T): OpenedContract<T>
-
Parameters
-
block: number
-
contract: T
Returns OpenedContract<T>
runMethod
- runMethod(seqno: number, address: Address, name: string, args?: TupleItem[]): Promise<{
block: {
fileHash: string;
rootHash: string;
seqno: number;
shard: string;
workchain: number;
};
exitCode: number;
result: TupleItem[];
resultRaw: null | string;
shardBlock: {
fileHash: string;
rootHash: string;
seqno: number;
shard: string;
workchain: number;
};
}>
-
Parameters
-
seqno: number
-
-
name: string
-
Returns Promise<{
block: {
fileHash: string;
rootHash: string;
seqno: number;
shard: string;
workchain: number;
};
exitCode: number;
result: TupleItem[];
resultRaw: null | string;
shardBlock: {
fileHash: string;
rootHash: string;
seqno: number;
shard: string;
workchain: number;
};
}>
sendMessage
- sendMessage(message: Buffer): Promise<{
status: number;
}>
-
Returns Promise<{
status: number;
}>
Get block info by unix timestamp
Returns
account info