TonCenter
Defined in: wallet-ton/src/toncenter.ts:164
The toncenter calls a wallet uses, with parsed results.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TonCenter(
rpc):TonCenter
Defined in: wallet-ton/src/toncenter.ts:165
Parameters
Section titled “Parameters”Returns
Section titled “Returns”TonCenter
Properties
Section titled “Properties”
readonlyrpc:TonRpc
Defined in: wallet-ton/src/toncenter.ts:165
Methods
Section titled “Methods”estimateFee()
Section titled “estimateFee()”estimateFee(
address,args):Promise<TonFees>
Defined in: wallet-ton/src/toncenter.ts:222
Parameters
Section titled “Parameters”address
Section titled “address”Address
Cell
ignoreSignature?
Section titled “ignoreSignature?”boolean
StateInit
Returns
Section titled “Returns”Promise<TonFees>
getAddressInformation()
Section titled “getAddressInformation()”getAddressInformation(
address):Promise<TonAccountState>
Defined in: wallet-ton/src/toncenter.ts:168
Balance, status, code and data of an account.
Parameters
Section titled “Parameters”address
Section titled “address”Address
Returns
Section titled “Returns”Promise<TonAccountState>
getTransactions()
Section titled “getTransactions()”getTransactions(
address,opts):Promise<Transaction[]>
Defined in: wallet-ton/src/toncenter.ts:209
Parameters
Section titled “Parameters”address
Section titled “address”Address
archival?
Section titled “archival?”boolean
string
number
string
Returns
Section titled “Returns”Promise<Transaction[]>
runGetMethod()
Section titled “runGetMethod()”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.
Parameters
Section titled “Parameters”address
Section titled “address”Address
method
Section titled “method”string
stack?
Section titled “stack?”TupleItem[] = []
Returns
Section titled “Returns”Promise<GetMethodResult>
runGetMethodOk()
Section titled “runGetMethodOk()”runGetMethodOk(
address,method,stack?):Promise<GetMethodResult>
Defined in: wallet-ton/src/toncenter.ts:192
Like runGetMethod but throws on a non-zero exit code.
Parameters
Section titled “Parameters”address
Section titled “address”Address
method
Section titled “method”string
stack?
Section titled “stack?”TupleItem[] = []
Returns
Section titled “Returns”Promise<GetMethodResult>
sendBoc()
Section titled “sendBoc()”sendBoc(
message):Promise<void>
Defined in: wallet-ton/src/toncenter.ts:199
Broadcast a signed external message.
Parameters
Section titled “Parameters”message
Section titled “message”Cell
Returns
Section titled “Returns”Promise<void>
sendBocReturnHash()
Section titled “sendBocReturnHash()”sendBocReturnHash(
message):Promise<string>
Defined in: wallet-ton/src/toncenter.ts:204
Broadcast and return the external-message hash (base64) toncenter reports.
Parameters
Section titled “Parameters”message
Section titled “message”Cell
Returns
Section titled “Returns”Promise<string>