This version add support for Conflux hardfork v2.4.0, including:
- New added RPC methods: cfx_maxPriorityFeePerGas, cfx_feeHistory, cfx_getFeeBurnt
- Support for CIP-1559 transaction
- Fix SendTransactionError parse method to handle data is null
- Add support for Batch Requests
- Add support for internal contract CrossSpaceCall and PoSRegister
- Adapt for CIP-23
- Fix
blockHead
event subscribe loss bug - Add
random
andgetPrivateKey
toAccount
class
- Add support for standard token ERC721, ERC1155
- Default gasPrice changed to 1GDrip
- When sending transaction, will get
chainId
from Cfx instance, and using txpool nonce - blockHeader add two new fields
custom
,posReference
- status add two new fields
latestFinalized
,ethereumSpaceChainId
Add support for new methods imported from Conflux v2.0
txpool_nextNonce
cfx_openedMethodGroups
cfx_getPoSEconomics
cfx_getPoSRewardByEpoch
Several Account method has been removed.
- getNonce
- setNonce
- waitForNonceUpdated
- waitForNonceUpdated
cfx_getEpochReceipts
cfx_getAccountPendingInfo
cfx_getAccountPendingTransactions
trace_block
trace_transaction
trace_filter
cfx_getLogs
's filter param add one more field 'offset'cfx_subscribe epochs
add one more optional tag parameter, available options:latest_mined
(default value),latest_state
Note: the required RPC service version is 1.1.4
or above.
Account
added methoddeploy
, which can used to deploy contract.Account
added methoddeployFile
which supports to deploy contract with truffle compiled json file.- Internal contract's constructor method omit a parameter
networkId
- Class Address support new CIP37 address
- Where ever need an address, you should pass an
Address
instance, String address will not work getStatus
return a new fieldnetworkId
getSupplyInfo
return a new fieldtotalCirculating
Address.validate
has been moved toAddressType.validateHexAddress
- ERC20Call, ERC20Executor, ERC777Call, ERC777Executor has been removed, you can use the new ERC20, ERC777
- AccountManager's constructor add a new parameter
networkId
org.web3j:core
updated to version 4.8.4
- Tx receipts return more info: txExecErrorMsg, gasCoveredBySponsor, storageCoveredBySponsor, storageCollateralized, storageReleased
- Add new RPC methods: cfx_getDepositList, cfx_getVoteList, cfx_getSupplyInfo
- Add support for InternalContracts
- Merge ERC20, ERC777 call and executor
- Update default gasPrice to 1 Drip
- Update RawTransaction default chainId to 1029(mainnet)