Zilliqa Wallet with Meteor

#1

I plan to create a zilliqa wallet using the Meteor framework and Zilliqa-JavaScript-Library . I have three questions:

  1. Is it ok to connect to Zilliqa node through https://api.zilliqa.com/ for production use?
  2. Is there any limitation requests to that API
  3. I want to create Fungible Token. But, I do not know how to send and receive token. Is there any doc to follow?
0 Likes

#2

Hi @sengtha,

Welcome!

  1. Yes, you can directly connect to api.zilliqa.com for production.
  2. The rate limit to that API is 50 requests per second. Any further requirements will require you to host a seed node.
  3. Fungible token follows the ERC20 framework. All functions in the contract is exactly the same. You can read from this document: https://eips.ethereum.org/EIPS/eip-20
0 Likes

#3

Thank for your great response.

0 Likes

#4

@snowsledge Do you know why a transaction cost on https://savant-ide.zilliqa.com/ is expensive? For example Transaction cost: 512 ZIL Is it standard price?

0 Likes

#5

Oh that’s a display bug. Divide it by a 1,000 and you will get the correct gas price.

1 gas = 1,000 Li = 0.001 Zil

1 Like

#6

@snowsledge When we want to show token balance on wallet, based on smart contract, we need to call BalanceOf function for any address. Doing this, gas is charged. Is there anyway, we can get token balance without gas? I am using https://etherscan.io/ to check balance of my holding tokens. I am not sure, https://etherscan.io/ need to pay gas for just viewing token balance or not.

Thanks

0 Likes

#7

Hey, in order to get the token_balance state for a single account, for now you have to use the GetSmartContractState method to get the whole contract state, then parse out the key-value pair for the token_balance in the Map.

0 Likes

#8

@snowsledge thank for the guide.

0 Likes