Skip to content

Frequently Asked Questions

Gabrielle Zhou edited this page Nov 1, 2018 · 2 revisions

1. How to express the value of asset?

In CYBEX, all kinds of assets and fees consist of amount and asset id. The value of asset can be expressed with amount and its precision.

value(or price) = amount / 10^precision

2. How to get the operation fees?

Every network broadcaset API should pay the network fee. The structure of fee is

parameter typey description
amount share_type fee amount
asset_id asset_id_type asset id of fee

The required fee of operation can be get through the get_required_fees of database APIs.

Once the fee is insufficient, the broadcast connection will be failed. If the operation pays more than the required fee, the extra part will be charged by nextwork as well.

3. How to covert the fee?

If a operation is paid in a non-CYB asset, the fee is implicitly exchange into CYB to pay the network fee.

operation fee = the required fee in CYB * the inital exchange rate

The initial rate is CYB/non-CYB asset which is set by the asset owner when creating the asset. It can be get through the get_assets API.

4. Why the withdrawal fee is higher than simple transfer operation?

Once the funds is withdrawed from CYBEX account to the external account. The operation will be charged by gateway and CYBEX network.

withdrawal fee = gateway fee + transfer operation fee

The gateway fee should be paid in the asset of fund. The transfer fee follows the rules of any other CYBEX operations.

Per KByte transaction size will cost additional 0.00555 CYB for basic account.

开发者社区

了解CYBEX

文档中心

DEVELOPERS

GETTING STARTED

DOCUMENTATION

Clone this wiki locally