RpcTxnDataSerializer class

This is a temporary implementation of the TxnDataSerializer class that uses the Sui Fullnode RPC API to serialize a transaction into BCS bytes. We will deprecate this implementation once LocalTxnDataSerializer stabilizes.

Prefer to use LocalTxnDataSerializer instead for better performance and safety, otherwise this needs to be used with a trusted fullnode and it is recommended to verify the returned BCS bytes matches the input.

Mixed in types

Constructors

RpcTxnDataSerializer(String endpoint)

Properties

client JsonRpcClient
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

newAddStake(SuiAddress signerAddress, AddStakeTransaction txn) Future<Uint8List>
override
newMoveCall(SuiAddress signerAddress, MoveCallTransaction txn) Future<Uint8List>
override
newPay(SuiAddress signerAddress, PayTransaction txn) Future<Uint8List>
override
newPayAllSui(SuiAddress signerAddress, PayAllSuiTransaction txn) Future<Uint8List>
override
newPaySui(SuiAddress signerAddress, PaySuiTransaction txn) Future<Uint8List>
override
newPublish(SuiAddress signerAddress, PublishTransaction txn) Future<Uint8List>
override
newSplitCoin(SuiAddress signerAddress, SplitCoinTransaction txn) Future<Uint8List>
override
newSplitCoinEqual(SuiAddress signerAddress, SplitCoinEqualTransaction txn) Future<Uint8List>
override
newTransferObject(SuiAddress signerAddress, TransferObjectTransaction txn) Future<Uint8List>
override
newTransferSui(SuiAddress signerAddress, TransferSuiTransaction txn) Future<Uint8List>
override
newWithdrawStake(SuiAddress signerAddress, WithdrawStakeTransaction txn) Future<Uint8List>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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