Send Platform Coin

1. Request.sendCoin

Parameters

Name
Type
Description

chainId

number

Chain ID of the particular network

appName

string

Name that will appear when sending platform coin in FAVORLE app

transactions

object array

Information required to transfer platform coins (see below for details)

transactions object contains

Name
Type
Description

from

string

Address to send platform coin

to

string

Address to receive platform coin

value

string

전송할 코인의 양 Amount of coin to send

Response

Name
Type
Description

requestId

string

ID to track the operation or transaction request

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.sendCoin({
  chainId: 8217, // 해당 체인 id
  appName: "BlockChainApp", // FAVORLET 앱에 노출
  transactions: [
    {
      from: "0x{address in hex}", // 코인을 전송할 주소
      to: "0x{address in hex}", // 코인을 받을 주소
      value: "1000000000000000000", // 전송할 코인의 양
    },
  ],
});

console.log(response);
/*
{
  requestId: "56ba790c-aceb-465b-a6f2-33d103b25596",
  expiredAt: 1667891675
}
*/

Parameters

Type
Description

string

requestId received when requesting

Response

Type
Description

string

DeepLink to the request page in FAVORLET app

Example

3. receipt

Last updated