Internal
Map of MFA-protected functions to ensure type safety.
If a function is renamed, the import will fail and this file won’t compile.
Type declaration
signEvmHash()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignEvmHashOptions | The options for the signing. |
Returns
Promise<SignEvmHashResult>
The result of the signing.
Example
signEvmTransaction()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignEvmTransactionOptions | The options for the signing. |
Returns
Promise<SignEvmTransactionResult>
The result of the signing.
Example
signSolanaTransaction()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignSolanaTransactionOptions | The options for the signing. |
Returns
Promise<SignSolanaTransactionResult>
The result of the signing.
Example
sendEvmTransaction()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SendEvmTransactionOptions | The options for the sending. |
Returns
Promise<SendEvmTransactionResult>
The transaction hash of the sent transaction.
Example
sendSolanaTransaction()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SendSolanaTransactionOptions | The options for sending the Solana transaction. |
Returns
Promise<SendSolanaTransactionResult>
The transaction signature.
signEvmMessage()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignEvmMessageOptions | The options for the signing. |
Returns
Promise<SignEvmHashResult>
The result of the signing.
Example
signSolanaMessage()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignSolanaMessageOptions | The options for the signing. |
Returns
Promise<SignSolanaMessageResult>
The result of the signing.
Example
signEvmTypedData()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignEvmTypedDataOptions | The options for the signing. |
Returns
Promise<SignEvmTypedDataResult>
The result of the signing.
Example
sendUserOperation()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | SendUserOperationOptions | The options for sending the user operation. |
Returns
Promise<SendUserOperationResult>
Promise that resolves to the user operation hash.
Example
exportEvmAccount()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | ExportEvmAccountOptions | The options for the exporting. |
Returns
Promise<ExportEvmAccountResult>
The result of the export.
Example
Deprecated
This function will be removed soon. UsecreateEvmKeyExportIframe instead for a more secure key export experience
that never exposes the private key to your application’s JavaScript context.
See
createEvmKeyExportIframeexportSolanaAccount()
Parameters
| Parameter | Type | Description |
|---|---|---|
options | ExportSolanaAccountOptions | The options for exporting the account. |
Returns
Promise<ExportSolanaAccountResult>
The result of the export.
Example
Deprecated
This function will be removed soon. UsecreateSolanaKeyExportIframe instead for a more secure key export experience
that never exposes the private key to your application’s JavaScript context.
See
createSolanaKeyExportIframecreateEvmKeyExportIframe()
cleanup function is idempotent, so it’s safe to call it in your teardown code
even if the iframe has already been cleaned up due to expiration.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | CreateKeyExportIframeOptions | Configuration options for the EVM key export iframe. |
Returns
Promise<CreateKeyExportIframeResult>
An object containing the iframe element, cleanup function, and theme update function.
Examples
createSolanaKeyExportIframe()
cleanup function is idempotent, so it’s safe to call it in your teardown code
even if the iframe has already been cleaned up due to expiration.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | CreateKeyExportIframeOptions | Configuration options for the Solana key export iframe. |
Returns
Promise<CreateKeyExportIframeResult>
An object containing the iframe element, cleanup function, and theme update function.