Message Signature

1. Request.signMessage

Parameters

Name
Type
Description

chainId

number

Chain ID of the particular network

appName

string

Name that will appear in FAVORLET app when signing a message

from

string

Wallet address to sign a message

message

string

message to sign

Response

Name
Type
Description

requestId

string

ID to track the requested operation or transaction

expiredAt

number

The amount of time (in seconds) that an operation or transaction request expires.

Example

import { Request } from "favorlet.js";

const response = await Request.signMessage({
  chainId: 8217, // 해당 체인 id
  appName: "BlockChainApp", // FAVORLET 앱에 노출
  from: "0x{address in hex}", // 서명할 지갑 주소
  message: "서명할 메세지", // 서명할 메세지
});

console.log(response);
/*
{
  requestId: "c8393195-b49d-4586-b3fd-0e1a1e94f189",
  expiredAt: 1667891117,
}
*/

Parameters

Type
Description

string

requestId received when requesting

Response

Type
Description

string

DeepLink to the request page within the FAVORLET app

Example

3. receipt

Last updated