Parameters
| Parameter | Type | Description |
|---|---|---|
options | SignEvmMessageOptions | The options for the signing. |
Returns
Promise<SignEvmHashResult>
The result of the signing.
function signEvmMessage(options: SignEvmMessageOptions): Promise<SignEvmHashResult>;
| Parameter | Type | Description |
|---|---|---|
options | SignEvmMessageOptions | The options for the signing. |
Promise<SignEvmHashResult>
The result of the signing.
const user = await getCurrentUser();
const evmAccount = user?.evmAccountObjects[0]?.address;
const result = await signEvmMessage({
evmAccount,
message: "Hello World" // Message to sign
});
Was this page helpful?