You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/json-rpc/eth.md
+5-32Lines changed: 5 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,46 +18,19 @@ Response:
18
18
["0x5cbeecf99d3fdb3f25e309cc264f240bb0664031"]
19
19
```
20
20
21
-
## FilecoinAddressToEthAddress
21
+
## EthAddressToFilecoinAddress
22
22
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
0 commit comments