WalletV1R1 class

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

Inheritance

Constructors

WalletV1R1.new({NoneSubWalletVersionedWalletState? stateInit, required TonAddress address, TonChain? chain})
WalletV1R1.create({required TonChain chain, required List<int> publicKey, bool bounceableAddress = false})
factory

Properties

address TonAddress
The address of this contract on the TON blockchain.
finalinherited
chain TonChain
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state NoneSubWalletVersionedWalletState?
The state associated with this contract.
finalinherited
type WalletVersion
finalinherited

Methods

deploy({required VersionedTransferParams params, required TonProvider rpc, int sendMode = SendModeConst.payGasSeparately, int? timeout, bool? bounce, bool bounced = false, Cell? body}) Future<String>
inherited
getBalance(TonProvider rpc) Future<BigInt>
inherited
getContractState(TonProvider rpc) Future<NoneSubWalletVersionedWalletState?>
inherited
getPublicKey(TonProvider rpc) Future<String>
inherited
getSeqno(TonProvider rpc) Future<int>
inherited
getState({required TonProvider rpc}) Future<AccountStateResponse>
get account state (balance, code, data , etc.)
inherited
getStateStack({required TonProvider rpc, required String method, TonAddress? address, List stack = const [], bool throwOnFail = true}) Future<RunMethodResponse>
call contract methods
inherited
isActive(TonProvider rpc) Future<bool>
check if contract is initialized.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readState(TonProvider rpc) Future<NoneSubWalletVersionedWalletState>
inherited
sendMessage({required TonProvider rpc, required Message exMessage}) Future<String>
inherited
sendTransfer({required VersionedTransferParams params, required TonProvider rpc, List<MessageRelaxed> messages = const [], int sendMode = SendModeConst.payGasSeparately, int? timeout, OnEstimateFee? onEstimateFee, TonTransactionAction action = TonTransactionAction.broadcast}) Future<String>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromAddress({required TonAddress address, required TonProvider rpc, TonChain? chain}) Future<WalletV1R1>