ScTransactionBuilder class
Assembles an SC transaction through the signing-digest pipeline.
Two factories are available:
- ScTransactionBuilder.create: pure-Dart WASM bridge (ScWasmRunBridge),
the default; loads the bundled
sc.wasm, no native library needed. - ScTransactionBuilder.createWithFfi: native Go FFI bridge (ScGoFfiBridge); much faster, but the caller passes the path to a native library they built for their platform.
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.wasmfrom 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 — seelib/src/forked_lib/sia-wasi/build.sh; this package does not bundle one.