diff --git a/.gitignore b/.gitignore index 8c24bc5..a143c86 100644 --- a/.gitignore +++ b/.gitignore @@ -69,4 +69,6 @@ You can modify this file as per your specific requirements. *.html -node_modules/ \ No newline at end of file +node_modules/ + +*.bin \ No newline at end of file diff --git a/lotus-cli/upload.sh b/lotus-cli/upload.sh new file mode 100644 index 0000000..2794f8e --- /dev/null +++ b/lotus-cli/upload.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +# lotus wallet new bls +# code ~/.lotus/config.toml + +# https://lotus.filecoin.io/lotus/configure/defaults/ + +# 1. Prepare your data. For example, you can create a dummy file with random data. +dd if=/dev/urandom of=5gb-filecoin-payload.bin bs=1M count=52 +# dd if=/dev/urandom of=5gb-filecoin-payload.bin bs=1M count=5200 + +# 2. Import the payload into the Lotus daemon. +lotus client import 5gb-filecoin-payload.bin + +# 3. Create a storage deal with a Filecoin storage provider. You can find suitable providers using the Filecoin Plus Registry. +lotus client deal