- Support 1559 related rpcs
- Return StoragePointProp in cfx_getParamsFromVote, which is introduced by CIP-107.
- Support circuit breaker when creating client
- Client support WithContext for attach context on calling rpc
- Update light node functions
- Sponsor contract supports GetAvailableStoragePoints
- Support light POS relay
- Support RPC debug_getEpochReceiptProofByTransaction, pos_getLedgerInfoByEpochAndRound,cfx_getCollateralInfo
- Support debug rpcs
- Support EIP-1898 style epoch parameters in some core space RPCs (including cfx_getBalance, cfx_getStorageAt, cfx_call, cfx_getNextNonce, cfx_getCode, and cfx_epochReceipts)
- Bulk sender populate can select nonce mode, contains auto/nonce/pendingnonce
- Dont clear gasPrice when estimate
- Update field
DepositTime
ofDepositInfo
to*hexutil.Big
- Fix pos rpc
GetTransactionByNumber
return result
- Support
SubscribeNewHeadsWitReconn
,SubscribeEpochsWithReconn
,SubscribeLogsWithReconn
- Remove offset & limit from LogFilter
- Always set gasprice to nil when EstimateGasAndCollateral
- Use MiddlewareableProvider in client for convinenet to HookCallContext/HookBatchCallContext
- Remove client.UseCallRpcMiddleware and client.UseBatchCallRpcMiddleware, and use client.HookCallContext and client.HookBatchCallContext to replace them
- add context in CallRpcHandlerFunc/BatchCallRpcHandlerFunc for hook context when Call/Batchcall
- AccountManagerOperator support ImportKey and Export interface
Note: It's not compatiable with previous version
- support setting max connection number for client with http(s) protocal
- Fix RPC GetPoSRewardByEpoch
- Complete docs
- Support unit convert utils
- Upgrade go-ethereum dependency version to v1.10.15
- Update RPC methods and structs
- Set Block.Custom type to cmptutil.bytes which could json unmarshal both hex string or number array
- Update PoS rpc type
Block
- Update PoW rpc type
Trace
- Support convert trace to tire
- Forbid send transaction with to address in unkonwn type
- Fix rlp decode transaction
- Support rpc GetPosRewardByEpoch and GetPoSEconomics
- Return unknown type for address start without '0x0,0x8,0x1'
- Decode rpc error in Client.BatchCall
- Decode rpc error in Client.Call
- Use tx pool pending nonce in
Client.ApplyUnsignedTransactionDefault
to ensure nonce is correct when continuous sending transactions - Use bulk caller to populate transactions when bulk send transactions
- Support tx pool and debug RPC methods
- Add bulk caller and bulk sender for sending batch RPC requests by one request, see the example from example_bulk
- Move example to independent repo go-conflux-sdk-example
- Add POS RPC
- Add API GetBlockSummaryByBlockNumber
- Fix test for Marshal/UnMarshal Block
- Add
blockNumber
to block related methodscfx_getBlockByHash
,cfx_getBlockByEpochNumber
,cfx_getBlockByHashWithPivotAssumption
which needConflux-rust v1.1.5
or above. - Add new RPC method
cfx_getBlockByBlockNumber
- Refactor SubscribeLogs for avoiding losing the timing sequence of Chain-Reorg and Log
- Add variadic arguments support for rpc service
- Set default RPC request timeout to 30s
- Remove addition error msg in wrappedCallRPC
- Add method GetAccountPendingTransactions in client
- Apply middleware for hooking call RPC and batch call RPC
- Support set request RPC timeout in Client
Note: v1.0.0 is not incompatible with v0.x, the changes are below
- Change address format follow CIP-37
- Unmarshal logfilter according to full node struct
- RPC functions follow the rule: input and output to be value or pointer according to whether it could be nil
- Fix bug
- Support RPC block_trace
- Fix the amount of TIME_WAIT when concurrency request
- Support sdk.Client.GetSupplyInfo
- Support internal contract