ScTransactionBuilder class

Assembles an SC transaction through the signing-digest pipeline.

Two factories are available:

final builder = await ScTransactionBuilder.create();
final txData = await builder.build(unsignedTx);

Constructors

ScTransactionBuilder({required ScWasmBridge wasmBridge})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wasmBridge ScWasmBridge
final

Methods

build(ScUnsignedTransaction unsignedTx) Future<ScTxData>
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

Static Methods

create() Future<ScTransactionBuilder>
Creates a builder backed by the pure-Dart WASM bridge (ScWasmRunBridge), loading sc.wasm from the package bundle. No native library required.
createWithFfi(DynamicLibrary library) ScTransactionBuilder
Creates a builder backed by the native Go FFI bridge (ScGoFfiBridge), which is much faster. The caller supplies an already-loaded library (e.g. DynamicLibrary.open(path)) built for the current platform — see lib/src/forked_lib/sia-wasi/build.sh; this package does not bundle one.