Methods

BlockChains

suspend fun getBlockChainInfo()

Description

Retrieves the chain information using the Chain ID.

Parameters

nametypeDescription

chainId

Long

Chain ID

Result

Result<FncyChainInfo>

suspend fun getContractInfo()

Description

Retrieves asset information using the Contract Address.

Parameters

nametypeDescription

chainId

Long

Chain ID

contractAddress

String

Contract Address

Result

Result<List<FncyAssetInfo>?>

suspend fun getFncyInfo()

Description

Retrieves Fncy Chain information.

Result

Result<FncyCurrency?>

suspend fun getGasPrice()

Description

Retrieves Gas Price of the Chain.

Parameters

nametypeDescription

chainId

Long

Chain ID

Result

Result<FncyGasPrice>

Wallet

suspend fun getWallet()

Description

Search user wallet

Result

Result<FncyWallet?>

suspend fun getWalletAllBalance()

Description

Retrieves the amount of assets in the wallet.

Parameters

nametypeDescription

wid

Long

Wallet ID

Result

Result<FncyBalance>

suspend fun getAssetList()

Description

Retrieves the list of assets in the wallet (Fncy, Eth, Bsc, etc.).

Parameters

nametypeDescription

wid

Long

Wallet ID

Result

Result<PagingData<List<FncyAsset>?>>

suspend fun getAssetById()

Description

Retrieves the asset information for the wallet using the Asset ID.

Parameters

nametypeDescription

wid

Long

Wallet ID

assetId

Long

Asset ID

Result

Result<FncyAsset?>

suspend fun getNFTList()

Description

Retrieves the list of NFTs in the wallet.

Parameters

nametypeDescription

wid

Int

Wallet ID

filter

NFTOption? = null

NFT Search Options (hold, sell)

pageNo

Int = 1

Page Number (Default: 1)

pageSize

Int = 20

Page Size (Default: 1)

Result

Result<PagingData<List<FncyNFT>?>>

suspend fun getNFTById()

Description

Retrieves NFT unit information using nftId.

Parameters

nametypeDescription

wid

Int

Wallet ID

nftId

Int

nft ID

Result

Result<FncyNFT?>

suspend fun makeWallet()

Description

Calls when requesting wallet creation.

Parameters

nametypeDescription

walletName

String

Wallet Name

pinNumber

String

Wallet Password

Result

Result<Unit>

suspend fun getQuestionList()

Description

Retrieves a list of questions for wallet restoration.

Result

Result<PagingData<List<FncyQuestion>?>>

suspend fun postRegisterRestorationKey()

Description

Registers the wallet's restore key (wallet recovery question/answer).

Parameters

nametypeDescription

wid

Int

Wallet ID

questionSeq

String

Recovery questions seq

answer

String

Answers

pinNumber

String

Wallet Password

Result

Result<Unit>

suspend fun checkWalletPinNumber()

Description

Checks the wallet password.

parameters

nametypeDescription

pinNumber

String

Wallet Password

Result

Result<Unit>

suspend fun checkResetAnswer()

Description

Checks the answers to the backup questions.

Parameters

nametypeDescription

answer

String

Answers to Backup Questions

Result

Result<Unit>

suspend fun resetWalletPinNumber()

Description

Stores the new password for the wallet.

Parameters

nametypeDescription

oldPinNumber

String

Current Password

newPinNumber

String

New Password

Result

Result<Unit>

suspend fun getResetQuestion()

Description

Retrieves the backup questions that users have registered for.

Result

Result<FncyQuestion>

suspend fun postResetQuestion()

Description

Saves the answers to the backup questions that the user registered for, as well as the new pin number.

Parameters

nametypeDescription

answer

String

Answers to Backup Questions

newPinNumber

String

New Password

Result

Result<Unit>

suspend fun postResetPinNumber()

Description

Changes to the new password.

Parameters

nametypeDescription

oldPinNumber

String

Current Password

newPinNumber

String

New Password

Result

Result<Unit>

Transaction

suspend fun estimateTicket()

Description

Before creating a transfer ticket, it checks for transfer availability, nonce, gasLimit, etc.

Parameter

nametypeDescription

wid

Long

Wallet ID

chainId

Long

Chain ID

signatureType

Trasnfer Type

toAddress

String

Send to Address

transferVal

BigInteger

Quantity to Send (in wei)

txGasPrice

BigInteger = BigInteger.ZERO

Gas Price

txInput

String? = null

Data Information

contractAddress

String? = null

Enter if Contract Execution

assetId

Long

Asset ID

nftId

Long? = null

NFT ID

maxPriorityPerGas

BigInteger = BigInteger.ZERO

Used for ETH Transfers

maxFeePerGas

BigInteger = BigInteger.ZERO

Used for ETH Transfers

Chain ID

ChainID

Binanace Smart Chain(BSC)

1

Ethereum(ETH)

2

Fncy Chain (FNCY)

3

TicketType

TypeDescription

SIGNATURE_TYPE_FOR_ASSET_TRANSFER

Coin Trasnfer

SIGNATURE_TYPE_FOR_SMARTCONTRACT_EXECUTION

Execute SmartContract (Send Token)

SIGNATURE_TYPE_FOR_WALLETCONNECT

WalletConnect Only

Result

Result<FncyTicket>

suspend fun makeTicket()

Description

Creates a transfer ticket.

Parameters

nametypeDescription

wid

Long

Wallet ID

chainId

Long

Chain ID

signatureType

Transfer Type

toAddress

String

Send to Address

transferVal

BigInteger

Quantity to Send (in wei)

txGasPrice

BigInteger = BigInteger.ZERO

Gas Price

txGasLimit

BigInteger = BigInteger.ZERO

Gas Limit

txInput

String? = null

Data Information

contractAddress

String? = null

Enter if Contract Execution

assetId

Long

Asset ID

nftId

Long? = null

NFT ID

maxPriorityPerGas

BigInteger = BigInteger.ZERO

Used for ETH Transfers

maxFeePerGas

BigInteger = BigInteger.ZERO

Used for ETH Transfers

Result

Result<FncyTransactionTicket>

suspend fun getTicketInfo()

Description

Search ticket status

Parameters

nametypeDescription

ticketUuid

String

Ticket uuid

Result

Result<FncyTicket>

CodeNumberMessage

TRANSFER_AVAILABLE

201

Tickets Available for Transfer

TICKET_TRANSFER_SUCCESS

200

Successful Ticket Transfer

TICKET_TRANSFER_FAILED

301

Failed Ticket Trasnfer

TICKET_EXPIRED

403

Expired Tickets (5 minutes after creation)

TICKET_NOT_FOUND

404

Tickets that Don't Exist

suspend fun sendTicket()

Description

Executes a ticket (transaction).

Parameters

nametypeDescription

ticketUuid

String

Ticket uuid

pinNumber

String

Wallet Password

Result

Result<String>

suspend fun getTransferHistoryList()

Description

Searchs a list of transactions in the wallet.

Parameters

nametypeDescription

wid

Long

Wallet ID

assetId

Long

Asset ID

pageNo

Int = 1

Page Number (Default: 1)

pageSize

Int = 20

Page Size (Default: 20)

filter

InOut.All = All InOut.Deposit = Deposit InOut.Withdrawal = Withdraw

Result

Result<PagingData<List<FncyTransaction>?>>

suspend fun getTransferHistoryDetail()

Description

Searches single transaction information.

Parameters

nametypeDescription

wid

Long

Wallet ID

historySeq

Long

Transaction Seq

Result

Result<FncyTransaction?>

ETC

suspend fun postWalletSign()

Description

Wallet Sign.

Parameters

nametypeDescription

wid

Long

Wallet ID

dataToSign

String

Data

signType

SignType = SignType.EthSign

SignType

pinNumber

String

Wallet Password

Result

Result<String>

Last updated