Class: TransactionSignerFnImpl
Defines a type which can sign a transaction asynchronously.
This trait can be implemented downstream to enable signing when using the
TransactionBuilder::execute function.
Extends
UniffiAbstractObject
Implements
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "TransactionSignerFnImpl" = "TransactionSignerFnImpl";
Methods
sign()
sign(transaction, asyncOpts_?): Promise<TransactionSignerFnOutput>;
Sign a transaction and return a UserSignature.
Parameters
transaction
asyncOpts_?
signal
AbortSignal
Returns
Promise<TransactionSignerFnOutput>
Implementation of
signWithObjects()
signWithObjects(
transaction,
objects,
asyncOpts_?
): Promise<TransactionSignerFnOutput>;
Sign a transaction given the objects it reads: its gas coins and
immutable, owned or receiving inputs at the versions it references, and
its shared inputs as the builder fetched them, which may change before
the transaction executes. The transaction builder only calls this when
uses_objects returns true, and passes no objects when it has no
client to fetch them.
Parameters
transaction
objects
asyncOpts_?
signal
AbortSignal
Returns
Promise<TransactionSignerFnOutput>
Implementation of
TransactionSignerFn.signWithObjects
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
usesObjects()
usesObjects(): boolean;
Whether the signer uses the objects the transaction reads, such as a
hardware wallet showing what the transaction does. When true, the
transaction builder gathers them and calls sign_with_objects instead
of sign.
Returns
boolean
Implementation of
TransactionSignerFn.usesObjects
instanceOf()
static instanceOf(obj_): obj_ is TransactionSignerFnImpl;
Parameters
obj_
any
Returns
obj_ is TransactionSignerFnImpl