grpc/grpc_transaction_mapper library

Functions

grpcTransactionToTransactionData(Transaction transaction) → TransactionData
Converts resolved structured transactions into the builder's Dart model. Unknown variants fail instead of silently discarding transaction restrictions.
transactionDataToGrpcTransaction(TransactionBlockDataBuilder data, {bool includeGas = true, bool includeBudget = true}) → Transaction
Maps the transaction builder's internal ($kind-tagged map) representation to the gRPC structured Transaction message, so it can be simulated with the gas payment/budget left unset for server-side gas selection — mirroring Mysten's TS transactionDataToGrpcTransaction.
transactionExpirationFromGrpc(TransactionExpiration value) → TransactionExpiration
Preserves every expiration restriction returned by simulation.