Summary
The V2 API introduces ergonomic improvements related to the recent addition of F3:
For detailed documentation and motivation, refer to the following document:
https://www.notion.so/filecoindev/Filecoin-V2-APIs-1d0dc41950c1808b914de5966d501658#1e4dc41950c180498371f45fd6e6eb91
In general, the API methods remain mostly similar to those in the V1 API. The main differences involve how tipsets are resolved and slight changes to method interfaces.
Some methods now accept a new type (TipSetSelector), which will require adjustments. One approach could be to introduce a new set of methods for those with updated signatures, but we can keep this decision open for now.
Tasks
List of V2 methods to support
-
Chain
-
EthBasic
-
EthSend
-
EthTransaction
-
EthLookup
-
EthTrace
-
EthGas
-
EthEvents
-
Filecoin
-
State
Risks & Dependencies
F3 should work.
Additional Links & Resources
Summary
The V2 API introduces ergonomic improvements related to the recent addition of F3:
For detailed documentation and motivation, refer to the following document:
https://www.notion.so/filecoindev/Filecoin-V2-APIs-1d0dc41950c1808b914de5966d501658#1e4dc41950c180498371f45fd6e6eb91
In general, the API methods remain mostly similar to those in the V1 API. The main differences involve how tipsets are resolved and slight changes to method interfaces.
Some methods now accept a new type (
TipSetSelector), which will require adjustments. One approach could be to introduce a new set of methods for those with updated signatures, but we can keep this decision open for now.Tasks
api comparetest framework to support the V2 APIsList of V2 methods to support
Chain
EthBasic
EthSend
EthTransaction
EthBlockNumber
EthGetBlockTransactionCountByNumber
EthGetBlockTransactionCountByHash
EthGetBlockByHash
EthGetBlockByNumber
EthGetTransactionByHash
EthGetTransactionByHashLimited
EthGetTransactionByBlockHashAndIndex
EthGetTransactionByBlockNumberAndIndex
EthGetMessageCidByTransactionHash
EthGetTransactionHashByCid
EthGetTransactionCount
EthGetTransactionReceipt
EthGetTransactionReceiptLimited
EthGetBlockReceipts
EthGetBlockReceiptsLimited
EthLookup
EthTrace
EthGas
EthEvents
Filecoin
State
Risks & Dependencies
F3 should work.
Additional Links & Resources
v2"non-Eth" (chain, F3, state) RPC APIs that are F3-aware filecoin-project/lotus#12990