社区常见问题
Do we need to pay attention to the storageLimit
and epochHeight
fields in regular transactions?
- When calling a contract, the SDK will automatically set
storageLimit
based oncfx_estmastGasAndCollateral
andepochHeight
based oncfx_getEpochNumber
. - When transferring CFX,
storageLimit
is automatically set to 0, andepochHeight
is set to the current epoch number.
I want to send multiple transactions at once, but there's no method to set nonce. How can I solve this?
You need to maintain the nonce yourself, adding one for each transaction.
What does the error "ExceedStorageLimit" mean when sending a transaction?
The storagelimit
value is set lower than the actual required value.
How do I convert a private key into keystore format?
- In
go-conflux-sdk
, useAccountManager.ImportKey
to import a private key into a keystore file. - In
js-conflux-sdk
, usesign.encrypt
to generate a keystore object based on the private key.
Why do nodes need to re-sync data after changing configurations?
Restarting the node program doesn't start syncing data from scratch. Instead, it restores data from the database and starts syncing from the last checkpoint. This is because the data of the last checkpoint is stored in memory, and when the program is closed, the data in memory is lost, making it seem like data is being re-synced.
Can the sponsor payment function be tested normally on the test chain?
Yes, it can.
Is CFX an ERC777 contract?
No, CFX is not a contract token. CFX is equivalent to Ethereum's ETH.
Does Conflux support the Ethereum library OpenZeppelin?
Yes, it's supported. You can directly reference it. However, note that the ERC1820 contract address on the Conflux chain is different from Ethereum. On Conflux, the ERC1820 contract address is: 0x88887ed889e776bcbe2f0f9932ecfabcdfcd1820.
Where is the testnet faucet?
- To receive CFX test tokens, you can get them directly from the faucet portals.
- Core Space Testnet Faucet: https://faucet.confluxnetwork.org/
- eSpace Testnet Faucet: https://efaucet.confluxnetwork.org/
- Mainnet Faucets: https://conflux-faucets.com/
Why does the value sometimes appear smaller when I use latest_confirmed
to get the epoch?
This can happen in cases of poor network connectivity, primarily due to high block synchronization delays.
What settings do developers need to make when starting a node?
You can find all node related documentation on THIS section.