npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

filecoin-address-tool

v0.0.2

Published

Convert an Ethereum address to a Filecoin f4 address and other tricks

Readme

filecoin-address-tool

A simple command-line tool to manipulate addresses used with Filecoin.

Install via npm install -g filecoin-address-tool or just use via npx filecoin-address-tool.

Usage

$ npx filecoin-address-tool 
Usage: filecoin-address-tool delegate-address-from-eth-address [--testnet] <eth-address>
       filecoin-address-tool generate-random-eth-private-key
       filecoin-address-tool eth-address-from-eth-private-key <eth-private-key-hex>
       filecoin-address-tool eth-address-from-id-address <f0 or t0 address>
       random-fil-account-f1 [--testnet]
       random-fil-account-f3 [--testnet]

Generate a random Ethereum private key

$ npx filecoin-address-tool generate-random-eth-private-key
3e004353b834821bb9f0ace719dbb0b484aaad20aaa8f5840ed3d0b5a9647175

(You may want to add a 0x prefix to use this with some tools)

Get the public Ethereum address from a private key

$ npx filecoin-address-tool eth-address-from-eth-private-key 3e004353b834821bb9f0ace719dbb0b484aaad20aaa8f5840ed3d0b5a9647175
ccA92338Ef9535cB7655CfC347c36dd4E6F3663f

(You may want to add a 0x prefix to use this with some tools)

Get the Filecoin f4 address for an Ethereum address

This will create a Filecoin address using the f4 address class based on the Ethereum address. This is useful if you want to transfer funds from a native Filecoin account.

$ npx filecoin-address-tool delegate-address-from-eth-address ccA92338Ef9535cB7655CfC347c36dd4E6F3663f
f410fzsusgohpsu24w5svz7bupq3n2ttpgzr7s5jap4i

If you are using a testnet, you can get a t4... address by setting the --testnet flag.

$ npx filecoin-address-tool delegate-address-from-eth-address --testnet ccA92338Ef9535cB7655CfC347c36dd4E6F3663f
t410fzsusgohpsu24w5svz7bupq3n2ttpgzr7s5jap4i

Uses @glif/filecoin-address to do the conversion.

Get an Ethereum address from a Filecoin ID address

$ npx filecoin-address-tool eth-address-from-id-address f01006
ff000000000000000000000000000000000003ee

Generate a Filecoin f1 (SecP256k1) address

$ npx filecoin-address-tool random-fil-account-f1          
Address: f1pumynqd34tuosgrkzegyspq4ioc3obbvt2ukgpa
Private: hWc8bzbbbm8DRC++SoB++oT1pbHY+rrQSdO6iyhfQDE=

Generate a Filecoin f3 (BLS) address

$ npx filecoin-address-tool random-fil-account-f3 
Address: f3vgfyaqchm63qxsdbbimm5lcz3ekizhseznufjrkfmmgs5lrsyzq3bnwoinp3kn35dxihk4udkbga5byctbkq
Private: Qa2Y9tHRe5kqq/pG+wk/P85IJjMK3Lfg0O7hdzfrRD8=

License

MIT or Apache2