Skip to content

WalletAdapterLedger

Defined in: packages/iso-filecoin-wallets/src/ledger.js:31

Ledger wallet implementation

Implements

Extends

  • TypedEventTarget

Accessors

app

Get Signature

get app():
| undefined
| LedgerFilecoin;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:82

Returns

| undefined | LedgerFilecoin


connected

Get Signature

get connected(): boolean;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:78

Whether the wallet is currently connected

Returns

boolean


connecting

Get Signature

get connecting(): boolean;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:74

Whether the wallet is in the process of connecting

Returns

boolean


support

Get Signature

get support(): "NotChecked" | "Detected" | "NotDetected" | "NotSupported";

Defined in: packages/iso-filecoin-wallets/src/ledger.js:86

Wallet support status (NotChecked, Detected, NotDetected, NotSupported)

Returns

"NotChecked" | "Detected" | "NotDetected" | "NotSupported"

Constructors

Constructor

new WalletAdapterLedger(config: WalletLedgerConfig): WalletAdapterLedger;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:63

Parameters

ParameterType
configWalletLedgerConfig

Returns

WalletAdapterLedger

Overrides

TypedEventTarget.constructor

Methods

addEventListener()

addEventListener<T>(
type: T,
callback:
| null
| TypedEventListenerOrEventListenerObject<WalletEvents, T>,
options?: boolean | AddEventListenerOptions): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:29

Type Parameters

Type Parameter
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"

Parameters

ParameterType
typeT
callback| null | TypedEventListenerOrEventListenerObject<WalletEvents, T>
options?boolean | AddEventListenerOptions

Returns

void

Inherit Doc

Inherited from

TypedEventTarget.addEventListener

changeNetwork()

changeNetwork(network: Network): Promise<{
account: IAccount;
network: Network;
}>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:156

Parameters

ParameterType
networkNetwork

Returns

Promise<{ account: IAccount; network: Network; }>


checkSupport()

checkSupport(): Promise<void>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:90

Check if this wallet adapter is supported in the current environment

Returns

Promise<void>


connect()

connect(params?: {
network: Network;
}): Promise<{
account: IAccount;
network: Network;
}>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:108

Parameters

ParameterType
params?{ network: Network; }
params.network?Network

Returns

Promise<{ account: IAccount; network: Network; }>


deriveAccount()

deriveAccount(index: number): Promise<IAccount>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:184

Parameters

ParameterType
indexnumber

Returns

Promise<IAccount>


disconnect()

disconnect(): Promise<void>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:139

Disconnect from the wallet

Returns

Promise<void>


dispatchEvent()

dispatchEvent(event: Event): boolean;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:8882

Dispatches a synthetic event event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

MDN Reference

Parameters

ParameterType
eventEvent

Returns

boolean

Inherited from

TypedEventTarget.dispatchEvent

dispatchTypedEvent()

dispatchTypedEvent<T>(_type: T, event: WalletEvents[T]): boolean;

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:20

Dispatches a synthetic event to target and returns true if either event’s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

Type Parameters

Type Parameter
T extends keyof WalletEvents

Parameters

ParameterType
_typeT
eventWalletEvents[T]

Returns

boolean

Inherited from

TypedEventTarget.dispatchTypedEvent

emit()

emit<T>(...args: WalletEvents[T]["detail"] extends IsAny<WalletEvents[T]["detail"]> ? [T, unknown] : [T, WalletEvents[T]["detail"]]): boolean;

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:21

Type Parameters

Type Parameter
T extends keyof WalletEvents

Parameters

ParameterType
argsWalletEvents[T]["detail"] extends IsAny<WalletEvents[T]["detail"]> ? [T, unknown] : [T, WalletEvents[T]["detail"]]

Returns

boolean

Inherited from

TypedEventTarget.emit

off()

off<T>(
type: T,
callback:
| null
| TypedEventListenerOrEventListenerObject<WalletEvents, T>,
options?: boolean | EventListenerOptions): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:55

Alias for TypedEventTarget.removeEventListener

Type Parameters

Type Parameter
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"

Parameters

ParameterType
typeT
callback| null | TypedEventListenerOrEventListenerObject<WalletEvents, T>
options?boolean | EventListenerOptions

Returns

void

Inherited from

TypedEventTarget.off

on()

on<T>(
type: T,
callback:
| null
| TypedEventListenerOrEventListenerObject<WalletEvents, T>,
options?: boolean | AddEventListenerOptions): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:38

Alias for TypedEventTarget.addEventListener

Type Parameters

Type Parameter
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"

Parameters

ParameterType
typeT
callback| null | TypedEventListenerOrEventListenerObject<WalletEvents, T>
options?boolean | AddEventListenerOptions

Returns

void

Inherited from

TypedEventTarget.on

removeEventListener()

removeEventListener<T>(
type: T,
callback:
| null
| TypedEventListenerOrEventListenerObject<WalletEvents, T>,
options?: boolean | EventListenerOptions): void;

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/event-target/index.d.ts:46

Type Parameters

Type Parameter
T extends | "accountChanged" | "networkChanged" | "disconnect" | "connect" | "error" | "stateChanged"

Parameters

ParameterType
typeT
callback| null | TypedEventListenerOrEventListenerObject<WalletEvents, T>
options?boolean | EventListenerOptions

Returns

void

Inherit Doc

Inherited from

TypedEventTarget.removeEventListener

sign()

sign(data: Uint8Array<ArrayBufferLike>): Promise<Signature>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:203

Parameters

ParameterType
dataUint8Array<ArrayBufferLike>

Returns

Promise<Signature>


signMessage()

signMessage(message: {
from: string;
gasFeeCap: string;
gasLimit: number;
gasPremium: string;
method: number;
nonce: number;
params: string;
to: string;
value: string;
version: 0;
}): Promise<Signature>;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:229

Parameters

ParameterType
message{ from: string; gasFeeCap: string; gasLimit: number; gasPremium: string; method: number; nonce: number; params: string; to: string; value: string; version: 0; }
message.fromstring
message.gasFeeCapstring
message.gasLimitnumber
message.gasPremiumstring
message.methodnumber
message.noncenumber
message.paramsstring
message.tostring
message.valuestring
message.version0

Returns

Promise<Signature>

Properties

[symbol]

[symbol]: boolean = true;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:33


account

account:
| undefined
| IAccount = undefined;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:40


id

id: string = 'ledger';

Defined in: packages/iso-filecoin-wallets/src/ledger.js:35

Wallet adapter identifier (e.g. ‘filsnap’, ‘ledger’, ‘hd’, ‘raw’)


name

name: string = 'Ledger';

Defined in: packages/iso-filecoin-wallets/src/ledger.js:36

Human readable wallet name


network

network: Network;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:69


signatureType

signatureType: "SECP256K1" | "BLS";

Defined in: packages/iso-filecoin-wallets/src/ledger.js:70


uid

uid: string;

Defined in: packages/iso-filecoin-wallets/src/ledger.js:34

Unique identifier for this wallet instance


url

url: string = 'https://ledger.com';

Defined in: packages/iso-filecoin-wallets/src/ledger.js:37

Wallet homepage URL