Methods
BlockChains
func getBlockChainInfo()
Description
Retrieves the chain information using the Chain ID.
Parameters
chainId
Int
Chain ID
Result
func getContractInfo()
Description
Retrieves asset information using the Contract Address.
Parameters
chainId
Int
Chain ID
contractAddress
String
Contract Address
Result
func getFncyInfo()
Description
Requests asset information and market price information for Fncy.
Result
func getGasPrice()
Description
Requests information about the blockchain's network fee (gas fee).
Parameters
chainId
Int
Chain ID
Result
See Also
Wallet
func getWallet()
Description
Returns the user's wallet information.
Result
func getWalletAllBalance()
Description
Requests the value of the total assets currently held by the wallet.
Parameters
wid
Int
Wallet ID
Result
func getAssetList()
Description
Requests a list of assets in the wallet (FNCY, ETH, BSC, etc).
Parameters
wid
Int
Wallet ID
Result
Array<FncyAsset>
func getAssetById()
Description
Requests asset information for the wallet using the asset ID.
Parameters
wid
Int
Wallet ID
assetId
Int
Wallet ID
Result
func getNFTList()
Description
Retreives list of NFTs held by the wallet.
Parameters
wid
Int
Wallet ID
pageNo
Int
Page Number
pageSize
Int
Page Size
Result
Array<FncyNFT>
func getNFTById()
Description
Retrieves NFT unit information using NFTID.
Parameters
wid
Int
Wallet ID
nftId
Int
nft ID
Result
func makeWallet()
Description
Requests to create a wallet.
Parameters
walletNm
String
Wallet Name
pinNumber
String
Wallet Password
Result
Int : Returns the wallet's wid
func getQuesetionList()
Description
Requests a list of questions to restore your wallet.
Parameters
pageNo
Int
Page Number to Request (default = 1)
pageSize
Int
Number of Items to Request at Once (default = 20 )
Result
Array<FncyQuestion>
func postRegisterRestorationKey()
Description
Registers the wallet's restore key (wallet recovery question/answer).
Parameters
wid
Int
Wallet ID
questionSeq
String
Recovery Question seq
answer
String
Answer
pinNumber
String
Wallet Password
func checkWalletPin()
Description
Returns whether the entered wallet password matches or not.
parameters
pinNumber
String
Wallet Password
Result
Bool : Returns request Result (Success/Fail)
func checkResetAnswer()
Description
Verifies the backup question answers match.
Parameters
answer
String
Answers for Backup Questions
Result
Bool : Returns request Result (Success/Fail)
func resetWalletPin()
Description
Changes the wallet password to a new password.
Parameters
oldPinNumber
String
Current Password
newPinNumber
String
New Password
Result
Bool : Returns request Result (Success/Fail)
func getResetQuestion()
Description
Requests questions user's registered for the backup.
Result
func postResetQuestion()
Description
If the user's registered wallet recovery answer matches, changes the wallet password to the new password.
Parameters
answer
String
Wallet Recovery Answers
newPinNumber
String
New Password
Result
Bool : Returns request Result (Success/Fail)
Transaction
func estimateTicket()
Description
Before creating a transfer ticket, it checks for transfer availability, nonce, gasLimit, etc.
Parameter
wid
Int
Wallet ID
chainId
Int
Chain ID
signatureType
Transfer Type
toAddress
String
Send to Address
transferVal
String(Optional)
Quantity to Send (in wei)
txGasPrice
String(Optional)
Gas Price
txInput
String(Optional)
Data Information
contractAddress
String(Optional)
Enter if Contract Execution
assetId
Int(Optional)
Asset ID
nftId
Int(Optional)
NFT ID
maxPriorityPerGas
String(Optional)
Used for ETH Transfers
maxFeePerGas
String(Optional)
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
func makeTicket()
Description
Requests to create/register a transfer ticket.
Parameters
wid
Int
Wallet ID
chainId
Int
Chain ID
signatureType
Trasnfer Type
toAddress
String
Send to Address
transferVal
String
Quantity to Send (in wei)
txGasPrice
Int(Optional)
Gas Price
txGasLimit
Int(Optional)
Gas Limit
txInput
String(Optional)
Data Information
contractAddress
String(Optional)
Enter if Contract Execution
assetId
Int(Optional)
Asset ID
nftId
Int(Optional)
NFT ID
maxPriorityPerGas
String(Optional)
Used for ETH Transfers
maxFeePerGas
String(Optional)
Used for ETH Transfers
Result
String : Returns the TicketUUID of the created ticket
func getTicketInfo()
Description
Retrieves information for the ticket by ticketUUID.
Parameters
ticketUuid
String
TicketUUID
Result
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
func sendTicket()
Description
Executes a ticket (transaction).
Parameters
ticketUuid
String
Ticket uuid
pinNumber
String
Wallet Password
Result
String : Returns transaction ID
func getTransferHistoryList()
Description
Retreives wallet's transaction sending history.
Parameters
wid
Int
Wallet ID
assetId
Int(Optional)
Asset ID
pageNo
Int(Optional)
Page Number(Default: 1)
pageSize
Int(Optional)
Page Size(Default: 20)
filter
InOutDcd.all = All InOutDcd.deposit = Deposit InOutDcd.withdrawal = Withdraw
Result
Array<FncyTransaction>
func getTransferHistoryDetail()
Description
Retreives transaction's sending history.
Parameters
wid
Int
Wallet ID
historySeq
Int
Transaction Seq
Result
ETC
func validateAddress()
Description
Verifies the wallet address is valid.
Parameters
chainId
Int
Chain ID
address
String
Wallet Address
Result
Bool
func postWalletSign()
Description
Signs the message and data and returns the signed message.
Parameters
wid
Int
Wallet ID
dataToSign
String
Data
signType
String
ethSign(default) ethSignV2 ethSignPersonalWithPrefix ethSignWithoutPrefix signEip712StructuredData
pinNumber
String
Wallet Password
Result
String