메세지 서명

1. Request.signMessage

Parameters

이름
타입
설명

chainId

number

해당 네트워크의 체인 아이디

appName

string

메세지 서명 시 FAVORLET 앱에 노출될 이름

from

string

서명할 지갑 주소

message

string

서명할 메세지

Response

이름
타입
설명

requestId

string

요청한 작업 또는 트랜잭션을 추적하기 위한 id

expiredAt

number

작업 또는 트랜잭션 요청이 만료 되는 시간(단위: 초)

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

타입
설명

string

Request 요청시 전달받은 requestId

Response

타입
설명

string

FAVORLET 앱 내 해당 요청 페이지 DeepLink

Example

3. receipt

Last updated