@ledgerhq/live-app-sdk / Exports / Mock
MockOf
<LedgerLivePlatformSDK
,"bridgeApp"
|"bridgeDashboard"
|"completeExchange"
|"startExchange"
|"listApps"
|"synchronizeAccount"
|"getLastConnectedDeviceInfo"
>
- broadcastSignedTransaction
- connect
- disconnect
- getAccount
- listAccounts
- listCurrencies
- receive
- requestAccount
- signMessage
- signTransaction
• new Mock()
• connected: boolean
= false
▸ broadcastSignedTransaction(_accountId
, _signedTransaction
): Promise
<string
>
Name | Type |
---|---|
_accountId |
string |
_signedTransaction |
RawSignedTransaction |
Promise
<string
>
MockOf.broadcastSignedTransaction
▸ connect(): void
void
MockOf.connect
▸ disconnect(): void
void
MockOf.disconnect
▸ getAccount(accountId
): Promise
<Account
>
Name | Type |
---|---|
accountId |
string |
Promise
<Account
>
▸ listAccounts(): Promise
<Account
[]>
Promise
<Account
[]>
MockOf.listAccounts
▸ listCurrencies(): Promise
<Currency
[]>
Promise
<Currency
[]>
MockOf.listCurrencies
▸ receive(accountId
): Promise
<string
>
Name | Type |
---|---|
accountId |
string |
Promise
<string
>
MockOf.receive
▸ requestAccount(): Promise
<Account
>
Legder Live Methods
Promise
<Account
>
MockOf.requestAccount
▸ signMessage(_accountId
, _message
): Promise
<string
>
Name | Type |
---|---|
_accountId |
string |
_message |
Buffer |
Promise
<string
>
MockOf.signMessage
▸ signTransaction(_accountId
, _transaction
): Promise
<RawSignedTransaction
>
Name | Type |
---|---|
_accountId |
string |
_transaction |
unknown |
Promise
<RawSignedTransaction
>
MockOf.signTransaction