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
  • suspend fun getBlockChainInfo()
  • suspend fun getContractInfo()
  • suspend fun getFncyInfo()
  • suspend fun getGasPrice()
  • Wallet
  • suspend fun getWallet()
  • suspend fun getWalletAllBalance()
  • suspend fun getAssetList()
  • suspend fun getAssetById()
  • suspend fun getNFTList()
  • suspend fun getNFTById()
  • suspend fun makeWallet()
  • suspend fun getQuestionList()
  • suspend fun postRegisterRestorationKey()
  • suspend fun checkWalletPinNumber()
  • suspend fun checkResetAnswer()
  • suspend fun resetWalletPinNumber()
  • suspend fun getResetQuestion()
  • suspend fun postResetQuestion()
  • suspend fun postResetPinNumber()
  • Transaction
  • suspend fun estimateTicket()
  • suspend fun makeTicket()
  • suspend fun getTicketInfo()
  • suspend fun sendTicket()
  • suspend fun getTransferHistoryList()
  • suspend fun getTransferHistoryDetail()
  • ETC
  • suspend fun postWalletSign()
  1. For Developers
  2. Wallet
  3. SDK
  4. Android

Methods

PreviousOther FeaturesNextDomain

BlockChains

suspend fun getBlockChainInfo()

Description

Retrieves the chain information using the Chain ID.

Parameters

name
type
Description

chainId

Long

Chain ID

Result

Result<>

suspend fun getContractInfo()

Description

Retrieves asset information using the Contract Address.

Parameters

name
type
Description

chainId

Long

Chain ID

contractAddress

String

Contract Address

Result

suspend fun getFncyInfo()

Description

Retrieves Fncy Chain information.

Result

suspend fun getGasPrice()

Description

Retrieves Gas Price of the Chain.

Parameters

name
type
Description

chainId

Long

Chain ID

Result

Wallet

suspend fun getWallet()

Description

Search user wallet

Result

suspend fun getWalletAllBalance()

Description

Retrieves the amount of assets in the wallet.

Parameters

name
type
Description

wid

Long

Wallet ID

Result

suspend fun getAssetList()

Description

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

Parameters

name
type
Description

wid

Long

Wallet ID

Result

suspend fun getAssetById()

Description

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

Parameters

name
type
Description

wid

Long

Wallet ID

assetId

Long

Asset ID

Result

suspend fun getNFTList()

Description

Retrieves the list of NFTs in the wallet.

Parameters

name
type
Description

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

suspend fun getNFTById()

Description

Retrieves NFT unit information using nftId.

Parameters

name
type
Description

wid

Int

Wallet ID

nftId

Int

nft ID

Result

suspend fun makeWallet()

Description

Calls when requesting wallet creation.

Parameters

name
type
Description

walletName

String

Wallet Name

pinNumber

String

Wallet Password

Result

Result<Unit>

suspend fun getQuestionList()

Description

Retrieves a list of questions for wallet restoration.

Result

suspend fun postRegisterRestorationKey()

Description

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

Parameters

name
type
Description

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

name
type
Description

pinNumber

String

Wallet Password

Result

Result<Unit>

suspend fun checkResetAnswer()

Description

Checks the answers to the backup questions.

Parameters

name
type
Description

answer

String

Answers to Backup Questions

Result

Result<Unit>

suspend fun resetWalletPinNumber()

Description

Stores the new password for the wallet.

Parameters

name
type
Description

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

suspend fun postResetQuestion()

Description

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

Parameters

name
type
Description

answer

String

Answers to Backup Questions

newPinNumber

String

New Password

Result

Result<Unit>

suspend fun postResetPinNumber()

Description

Changes to the new password.

Parameters

name
type
Description

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

name
type
Description

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

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

suspend fun makeTicket()

Description

Creates a transfer ticket.

Parameters

name
type
Description

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

suspend fun getTicketInfo()

Description

Search ticket status

Parameters

name
type
Description

ticketUuid

String

Ticket uuid

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

suspend fun sendTicket()

Description

Executes a ticket (transaction).

Parameters

name
type
Description

ticketUuid

String

Ticket uuid

pinNumber

String

Wallet Password

Result

Result<String>

suspend fun getTransferHistoryList()

Description

Searchs a list of transactions in the wallet.

Parameters

name
type
Description

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

suspend fun getTransferHistoryDetail()

Description

Searches single transaction information.

Parameters

name
type
Description

wid

Long

Wallet ID

historySeq

Long

Transaction Seq

Result

ETC

suspend fun postWalletSign()

Description

Wallet Sign.

Parameters

name
type
Description

wid

Long

Wallet ID

dataToSign

String

Data

signType

SignType

pinNumber

String

Wallet Password

Result

Result<String>

Result<List<>?>

Result<?>

Result<>

Result<?>

Result<>

Result<<List<>?>>

Result<?>

? = null

Result<<List<>?>>

Result<?>

Result<<List<>?>>

Result<>

Result<>

Result<>

Result<>

Result<<List<>?>>

Result<?>

= SignType.EthSign

FncyChainInfo
FncyAssetInfo
FncyCurrency
FncyGasPrice
FncyWallet
FncyBalance
FncyAsset
FncyNFT
FncyQuestion
FncyTicket
FncyTransactionTicket
FncyTicket
FncyTransaction
FncyAsset
FncyNFT
FncyQuestion
FncyTransaction
PagingData
PagingData
PagingData
PagingData
NFTOption
TicketType
TicketType
InOut
SignType