Methods
BlockChains
suspend fun getBlockChainInfo()
Description
Retrieves the chain information using the Chain ID.
Parameters
chainId
Long
Chain ID
Result
Result<
FncyChainInfo
>
suspend fun getContractInfo()
Description
Retrieves asset information using the Contract Address.
Parameters
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
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
wid
Long
Wallet ID
Result
Result<
FncyBalance
>
suspend fun getAssetList()
Description
Retrieves the list of assets in the wallet (Fncy, Eth, Bsc, etc.).
Parameters
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
wid
Long
Wallet ID
assetId
Long
Asset ID
Result
Result<
FncyAsset
?>
suspend fun getNFTList()
Description
Retrieves the list of NFTs in the wallet.
Parameters
wid
Int
Wallet ID
filter
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
wid
Int
Wallet ID
nftId
Int
nft ID
Result
Result<FncyNFT?>
suspend fun makeWallet()
Description
Calls when requesting wallet creation.
Parameters
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
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
pinNumber
String
Wallet Password
Result
Result<Unit>
suspend fun checkResetAnswer()
Description
Checks the answers to the backup questions.
Parameters
answer
String
Answers to Backup Questions
Result
Result<Unit>
suspend fun resetWalletPinNumber()
Description
Stores the new password for the wallet.
Parameters
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
answer
String
Answers to Backup Questions
newPinNumber
String
New Password
Result
Result<Unit>
suspend fun postResetPinNumber()
Description
Changes to the new password.
Parameters
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
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
Binanace Smart Chain(BSC)
1
Ethereum(ETH)
2
Fncy Chain (FNCY)
3
TicketType
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
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
ticketUuid
String
Ticket uuid
Result
Result<
FncyTicket
>
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
ticketUuid
String
Ticket uuid
pinNumber
String
Wallet Password
Result
Result<String>
suspend fun getTransferHistoryList()
Description
Searchs a list of transactions in the wallet.
Parameters
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
wid
Long
Wallet ID
historySeq
Long
Transaction Seq
Result
Result<
FncyTransaction
?>
ETC
suspend fun postWalletSign()
Description
Wallet Sign.
Parameters
wid
Long
Wallet ID
dataToSign
String
Data
signType
SignType
pinNumber
String
Wallet Password
Result
Result<String>