FNCY Chain
FNCY 2.0.2 (ENG)
FNCY 2.0.2 (ENG)
  • Introduction
  • Getting Started
  • Design
    • Structure
    • Three Main Sets of Participants
    • PoSA Consensus
    • Governance
    • Staking
    • Mining Reward
    • Gas Fee
    • Runtime Upgrade
    • Cross-Chain Bridge
    • Security
  • Build On FNCY Chain
    • RPC Endpoints
    • Testnet Faucet
    • Block Explorer
      • Token Listing
    • BEP20 Token
    • NFT
    • Validator Requirements
    • NFT Market
      • FNCY Marketplace
  • For Developers
    • JSON-RPC
    • FNCY Chain API
      • Wallet API
      • Transaction API
      • Blockchain API
    • Wallet
      • FNCY Wallet
      • Use MetaMask for FNCY Chain
      • SDK
        • Android
          • Install
          • Guide
            • Initialize
            • Create/Restore Wallet
            • Wallet Search
            • Execute SendCoin/Contract
            • Transaction Search
            • Other Features
          • Methods
          • Domain
          • ETC
        • iOS
          • Install
          • Guide
            • Initialize
            • Create/Restore Wallet
            • Wallet Search
            • Execute SendCoin/Contract
            • Transaction Search
            • Other Features
          • Methods
          • Domain
          • ETC
    • Smart Contract
      • Deployment
        • Truffle
        • Hardhat
        • Remix IDE
      • Verify Your Contract on FncyScan
    • Gasless Transaction
    • with FNCY
      • FNCY Login
      • GAME AUTH Login
  • Tokenomics
  • Ecosystem Partner
  • FNCY Governance Partner
Powered by GitBook
On this page
  • BlockChains
  • func getBlockChainInfo()
  • func getContractInfo()
  • func getFncyInfo()
  • func getGasPrice()
  • Wallet
  • func getWallet()
  • func getWalletAllBalance()
  • func getAssetList()
  • func getAssetById()
  • func getNFTList()
  • func getNFTById()
  • func makeWallet()
  • func getQuesetionList()
  • func postRegisterRestorationKey()
  • func checkWalletPin()
  • func checkResetAnswer()
  • func resetWalletPin()
  • func getResetQuestion()
  • func postResetQuestion()
  • Transaction
  • func estimateTicket()
  • func makeTicket()
  • func getTicketInfo()
  • func sendTicket()
  • func getTransferHistoryList()
  • func getTransferHistoryDetail()
  • ETC
  • func validateAddress()
  • func postWalletSign()
  1. For Developers
  2. Wallet
  3. SDK
  4. iOS

Methods

PreviousOther FeaturesNextDomain

BlockChains

func getBlockChainInfo()

Description

Retrieves the chain information using the Chain ID.

Parameters

name
type
Description

chainId

Int

Chain ID

Result

func getContractInfo()

Description

Retrieves asset information using the Contract Address.

Parameters

name
type
Description

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

name
type
Description

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

name
type
Description

wid

Int

Wallet ID

Result

func getAssetList()

Description

Requests a list of assets in the wallet (FNCY, ETH, BSC, etc).

Parameters

name
type
Description

wid

Int

Wallet ID

Result

func getAssetById()

Description

Requests asset information for the wallet using the asset ID.

Parameters

name
type
Description

wid

Int

Wallet ID

assetId

Int

Wallet ID

Result

func getNFTList()

Description

Retreives list of NFTs held by the wallet.

Parameters

name
type
Description

wid

Int

Wallet ID

pageNo

Int

Page Number

pageSize

Int

Page Size

Result

func getNFTById()

Description

Retrieves NFT unit information using NFTID.

Parameters

name
type
Description

wid

Int

Wallet ID

nftId

Int

nft ID

Result

func makeWallet()

Description

Requests to create a wallet.

Parameters

Name
Type
Description

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

Name
Type
Description

pageNo

Int

Page Number to Request (default = 1)

pageSize

Int

Number of Items to Request at Once (default = 20 )

Result

func postRegisterRestorationKey()

Description

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

Parameters

name
type
Description

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

name
type
Description

pinNumber

String

Wallet Password

Result

Bool : Returns request Result (Success/Fail)

func checkResetAnswer()

Description

Verifies the backup question answers match.

Parameters

name
type
Description

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

name
type
Description

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

name
type
Description

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

name
type
Description

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

Chain
ID

Binanace Smart Chain(BSC)

1

Ethereum(ETH)

2

Fncy Chain (FNCY)

3

TicketType

Type
Description

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

name
type
Description

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

name
type
Description

ticketUuid

String

TicketUUID

Result

Code
Number
Message

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

name
type
Description

ticketUuid

String

Ticket uuid

pinNumber

String

Wallet Password

Result

String : Returns transaction ID

func getTransferHistoryList()

Description

Retreives wallet's transaction sending history.

Parameters

name
type
Description

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

func getTransferHistoryDetail()

Description

Retreives transaction's sending history.

Parameters

name
type
Description

wid

Int

Wallet ID

historySeq

Int

Transaction Seq

Result

ETC

func validateAddress()

Description

Verifies the wallet address is valid.

Parameters

name
type
Description

chainId

Int

Chain ID

address

String

Wallet Address

Result

Bool

func postWalletSign()

Description

Signs the message and data and returns the signed message.

Parameters

name
type
Description

wid

Int

Wallet ID

dataToSign

String

Data

signType

String

ethSign(default) ethSignV2 ethSignPersonalWithPrefix ethSignWithoutPrefix signEip712StructuredData

pinNumber

String

Wallet Password

Result

String

Array<>

Array<>

Array<>

Array<>

Chain ID
TicketType
TicketType
InOutDcd
FncyChainInfo
FncyAssetInfo
FncyCurrency
FncyGasPrice
FncyWallet
FncyBalance
FncyAsset
FncyAsset
FncyNFT
FncyNFT
FncyQuestion
FncyTicket
FncyTicket
FncyTransaction
FncyTransaction
FncyQuestion