컨트랙트 실행

1. Request.executeContractWithEncoded (>= v1.2.0)

Parameters

이름
타입
설명

chainId

number

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

appName

string

컨트랙트 실행 시 FAVORLET 앱에 노출될 이름

transactions

object array

컨트랙트를 실행하기 위해 필요한 정보

(자세한 내용은 아래를 참고)

transactions 객체는 다음을 포함합니다.

이름
타입
설명

from

string

트랜잭션을 호출할 지갑 주소

to

string

호출되는 컨트랙트 주소

value

string

(optional) 호출하는 abi 함수가 payable 인 경우 플랫폼 코인 전송

data

string

함수 signature와 Solidity tightly packed 형식으로 전달된 매개 변수를 인코딩한 값입니다. Interface

web3.eth.Contract — web3.js 1.0.0 documentation

gasLimit

string

(optional) 사용할 gasLimit 없을시 앱내 estimate 함수실행

Response

이름
타입
설명

requestId

string

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

expiredAt

number

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

Example

Parameters

타입
설명

string

Request 요청시 전달받은 requestId

Response

타입
설명

string

FAVORLET 앱 내 해당 요청 페이지 DeepLink

Example

3. receipt

Deprecated

1. Request.executeContract

Parameters

이름
타입
설명

chainId

number

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

appName

string

컨트랙트 실행 시 FAVORLET 앱에 노출될 이름

transactions

object array

컨트랙트를 실행하기 위해 필요한 정보

(자세한 내용은 아래를 참고)

transactions 객체는 다음을 포함합니다.

이름
타입
설명

from

string

트랜잭션을 호출할 지갑 주소

to

string

호출되는 컨트랙트 주소

value

string

(optional) 호출하는 abi 함수가 payable 인 경우 플랫폼 코인 전송

abi

string

트랜잭션을 발생시키기 위한 abi

params

string

트랜잭션을 발생시키기 위한 abi 함수의 파라미터

functionName

string

abi에서 호출 하려는 함수 이름

gasLimit

string

사용할 gasLimit (optional) 없을 시, 앱 내 estimate 함수 실행

Response

이름
타입
설명

requestId

string

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

appName

number

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

Example

TRANSFER_ABI.json

Last updated