EngineWallet
Returns an ethers Signer object of the connected wallet
function getSigner(): Promise<Signer>;
Inherited from
AbstractWallet.addListenerfunction addListener( event: T, fn: ( ) => void, context?: any,): this;
let fn: () => void;
Inherited from
AbstractWallet.emitCalls each of the listeners registered for a given event.
function emit( event: T,): boolean;
Inherited from
AbstractWallet.eventNamesReturn an array listing the events for which the emitter has registered listeners.
Inherited from
AbstractWallet.getBalanceReturns the balance of the connected wallet for the specified token address. If no token address is specified, it returns the balance of the native token
function getBalance( tokenAddress: string,): Promise<{ decimals: number; displayValue: string; name: string; symbol: string; value: BigNumber;}>;
Inherited from
AbstractWallet.listenerCountReturn the number of listeners listening to a given event.
Inherited from
AbstractWallet.listenersReturn the listeners registered for a given event.
function listeners( event: T,): Array< ( ) => void>;
let returnType: Array< ( ) => void>;
Inherited from
AbstractWallet.offfunction off( event: T, fn?: ( ) => void, context?: any, once?: boolean,): this;
let fn: () => void;
Inherited from
AbstractWallet.onAdd a listener for a given event.
function on( event: T, fn: ( ) => void, context?: any,): this;
let fn: () => void;
Inherited from
AbstractWallet.onceAdd a one-time listener for a given event.
function once( event: T, fn: ( ) => void, context?: any,): this;
let fn: () => void;
Inherited from
AbstractWallet.removeListenerRemove the listeners of a given event.
function removeListener( event: T, fn?: ( ) => void, context?: any, once?: boolean,): this;
let fn: () => void;
Inherited from
AbstractWallet.transferTransfers some amount of tokens to the specified address
function transfer( to: string, amount: string | number, currencyAddress: string,): Promise<Omit<TransactionResultWithMetadata<unknown>, "data">>;
Inherited from
AbstractWallet.verifySignature Verify the signature of a message. It returns true if the signature is valid, false otherwise
function verifySignature( message: string, signature: string, address: string, _chainId?: number,): Promise<boolean>;