CoeusTxBuilder.create constructor
CoeusTxBuilder.create(
- Network network
Implementation
factory CoeusTxBuilder.create(Network network) {
final nativeNetwork = network.networkNativeName.toNativeUtf8();
try {
final builder = DartApi.native.coeusTxBuilder
.create(nativeNetwork)
.extract((res) => res.asPointer<Void>());
return CoeusTxBuilder(builder, true);
} finally {
calloc.free(nativeNetwork);
}
}