FileCoin常用命令

FileCoin常用命令

新建钱包
./lotus wallet new bls

抵押扇区
./lotus-miner sectors pledge

抵押扇区状态查询
./lotus-miner sectors list

启动miner
./lotus-miner run —nosync

初始化 owner和worker是钱包的值
./lotus-miner init --owner --worker

清理节点node
sh deploy.sh -c $PWD /var/tmp/123

启动节点node
./lotus daemon --genesis=genesis.car --bootstrap=false

钱包余额
./lotus wallet balance id

提现
./lotus-miner actor withdraw

查找miner
./lotus state list-miners

查询交易
./lotus client list-deals

发交易
./lotus client deal bafk2bzacedhn3djyudzvoupta4sthfgqn4tskq6ab7pbglic3rxp56ah5kci4 t01000 0.000005 600000

连接lotus node
./lotus net connect /ip4/192.168.31.166/tcp/55065/p2p/12D3KooWFi2e1iz2oKpWxju4gqYvS5HGEZUC8Wf2vwqsNLy33zzD

查看所有文件
ls -alRh

导出钱包key
./lotus wallet export 钱包id