Skip to content

Commit 11d2477

Browse files
committed
revert on changes on eth.md namespace )
1 parent 395e52d commit 11d2477

File tree

1 file changed

+5
-32
lines changed

1 file changed

+5
-32
lines changed

reference/json-rpc/eth.md

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,46 +18,19 @@ Response:
1818
["0x5cbeecf99d3fdb3f25e309cc264f240bb0664031"]
1919
```
2020

21-
## FilecoinAddressToEthAddress
21+
## EthAddressToFilecoinAddress
2222

23-
FilecoinAddressToEthAddress converts any Filecoin address to an EthAddress.
24-
25-
This method supports all Filecoin address types:
26-
27-
- "f0" and "f4" addresses: Converted directly.
28-
- "f1", "f2", and "f3" addresses: First converted to their corresponding "f0" ID address, then to an EthAddress.
29-
30-
Requirements:
31-
32-
- For "f1", "f2", and "f3" addresses, they must be instantiated on-chain, as "f0" ID addresses are only assigned to actors when they are created on-chain.
33-
The simplest way to instantiate an address on chain is to send a transaction to the address.
34-
35-
Note on chain reorganizations:
36-
"f0" ID addresses are not permanent and can be affected by chain reorganizations. To account for this,
37-
the API includes a `blkNum` parameter, which specifies the block number that is used to determine the tipset state to use for converting an
38-
"f1"/"f2"/"f3" address to an "f0" address. This parameter functions similarly to the `blkNum` parameter in the existing `EthGetBlockByNumber` API.
39-
See https://docs.alchemy.com/reference/eth-getblockbynumber for more details.
40-
41-
Parameters:
42-
43-
- ctx: The context for the API call.
44-
- filecoinAddress: The Filecoin address to convert.
45-
- blkNum: The block number or state for the conversion. Defaults to "finalized" for maximum safety.
46-
Possible values: "pending", "latest", "finalized", "safe", or a specific block number represented as hex.
23+
EthAddressToFilecoinAddress converts an EthAddress into an f410 Filecoin Address
4724

4825
Perms: read
4926

5027
Inputs:
5128

5229
```json
53-
["f01234", "finalized"]
30+
["0x5cbeecf99d3fdb3f25e309cc264f240bb0664031"]
5431
```
5532

56-
Response:
57-
58-
```json
59-
"0x5cbeecf99d3fdb3f25e309cc264f240bb0664031"
60-
```
33+
Response: `"f01234"`
6134

6235
## EthBlockNumber
6336

@@ -850,4 +823,4 @@ Inputs:
850823
["0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"]
851824
```
852825

853-
Response: `true`
826+
Response: `true`

0 commit comments

Comments
 (0)