Skip to content
docs

TonCenter

Defined in: wallet-ton/src/toncenter.ts:164

The toncenter calls a wallet uses, with parsed results.

new TonCenter(rpc): TonCenter

Defined in: wallet-ton/src/toncenter.ts:165

TonRpc

TonCenter

readonly rpc: TonRpc

Defined in: wallet-ton/src/toncenter.ts:165

estimateFee(address, args): Promise<TonFees>

Defined in: wallet-ton/src/toncenter.ts:222

Address

Cell

boolean

StateInit

Promise<TonFees>


getAddressInformation(address): Promise<TonAccountState>

Defined in: wallet-ton/src/toncenter.ts:168

Balance, status, code and data of an account.

Address

Promise<TonAccountState>


getTransactions(address, opts): Promise<Transaction[]>

Defined in: wallet-ton/src/toncenter.ts:209

Address

boolean

string

number

string

Promise<Transaction[]>


runGetMethod(address, method, stack?): Promise<GetMethodResult>

Defined in: wallet-ton/src/toncenter.ts:183

Call a contract get-method; the result carries the exit code.

Address

string

TupleItem[] = []

Promise<GetMethodResult>


runGetMethodOk(address, method, stack?): Promise<GetMethodResult>

Defined in: wallet-ton/src/toncenter.ts:192

Like runGetMethod but throws on a non-zero exit code.

Address

string

TupleItem[] = []

Promise<GetMethodResult>


sendBoc(message): Promise<void>

Defined in: wallet-ton/src/toncenter.ts:199

Broadcast a signed external message.

Cell

Promise<void>


sendBocReturnHash(message): Promise<string>

Defined in: wallet-ton/src/toncenter.ts:204

Broadcast and return the external-message hash (base64) toncenter reports.

Cell

Promise<string>