# Setting up a Lotus Lite Node
## 1. Start up lite node
`FULLNODE_API_INFO=wss://api.chain.love lotus daemon --lite`
## 2. Create a new wallet
```
$ lotus wallet new
f1b...2erzb66q
...
```
## 3. Create a 5GB file
```
$ dd if=/dev/urandom of=5gb-filecoin-payload.bin bs=1M count=5200
```
## 4. Generate the CAR file
```
$ lotus client import 5gb-filecoin-payload.bin
Import 1674160620014352001, Root bafykbzacecprcdhgkylggaqbklupnqidpzvmdpkgxrysf6ecghbjag7oomlw2
```
## 5. Create a storage deal
```
$ lotus client deal
lotus client deal
Data CID (from lotus client import): bafykbzacecprcdhgkylggaqbklupnqidpzvmdpkgxrysf6ecghbjag7oomlw2
.. calculating data size
Deal duration (days): 180
Miner Addresses (f0.. f0..), none to find: f01852023
.. querying miner asks
-----
Proposing from f1bgvhj7t3eavnslyonhqrvkcuot5sbvv2erzb66q
Balance: 1.00737379 FIL
Piece size: 8GiB (Payload size: 5.079GiB)
Duration: 4320h0m0s
Total price: ~0.41472 FIL (0.0000008 FIL per epoch)
Verified: false
Accept (yes/no): yes
.. executing
Deal (f01852023) CID: bafyreihcplzlbobotngqx5apdiwenq7w3aoohijfu3dqf5vudc2d6vuciq
```
## 6. Status of transfer
$ lotus client list-transfers
Sending Channels
ID Status Sending To Root Cid Initiated? Transferred Voucher
1674161707120467001 Ongoing ...UnJ6YSa1 ...g7oomlw2 Y 7.051MiB ...diwenq7w3aoohijfu3dqf5vudc2d6vuciq"}}
Receiving Channels
## 7. Status of the deal
```
$ lotus client list-deals --show-failed
DealCid DealId Provider State On Chain? Slashed? PieceCID Size Price Duration Verified
...2d6vuciq 0 f01852023 StorageDealTransferring N N ...2dd74eni 7.938 GiB 0.4154 FIL 519250 false
lotus client list-deals --show-failed ─╯
DealCid DealId Provider State On Chain? Slashed? PieceCID Size Price Duration Verified
...2d6vuciq 0 f01852023 StorageDealError N N ...2dd74eni 7.938 GiB 0.4154 FIL 519250 false
Message: failed to complete data transfer: deal data transfer failed: data transfer channel 12D3KooWH5eWHWEppbbDatoQwFrsXqGe1mDaMXCh1eqnKEdbo1HT-12D3KooWFEX3CETJNApLFym3mKvZJWCNaSTMs2LJDChCUnJ6YSa1-1674161707120467001 failed to transfer data: graphsync response to peer 12D3KooWFEX3CETJNApLFym3mKvZJWCNaSTMs2LJDChCUnJ6YSa1 did not complete: response status code RequestCompletedPartial
```
# Second try
## Generate CAR
lotus client import Pc_box.png
Import 1674161707456347001, Root bafykbzacedh65mqxtpqtrshv46koaoz2zu3vbovindi3jwikbwsrdrdp4ovwe
# Create deal
```
$ lotus client deal
Data CID (from lotus client import): bafykbzacedh65mqxtpqtrshv46koaoz2zu3vbovindi3jwikbwsrdrdp4ovwe
.. calculating data size
Deal duration (days): 180
Miner Addresses (f0.. f0..), none to find: f01852023
.. querying miner asks
-----
Proposing from f1bgvhj7t3eavnslyonhqrvkcuot5sbvv2erzb66q
Balance: 0.591745688346817072 FIL
Piece size: 8MiB (Payload size: 4.803MiB)
Duration: 4320h0m0s
Total price: ~0.000405 FIL (0.00000000078125 FIL per epoch)
Verified: false
Accept (yes/no): yes
.. executing
Deal (f01852023) CID: bafyreibi6hq5k4vn33d34xqogjaa676ypv37tfkjccxpwsostr2z4b6rya
```
# Download a file
## Found file here
https://filecoin.tools/f01787692
```
$ lotus client retrieve --provider f030379 QmdCV4FZoQbqdRWQc6eZRB5zL9tA23RaHWA57ew3Q1TmCr test_download
Recv 0 B, Paid 0 FIL, Open (New), 3ms [1674164640120979003|0]
Recv 0 B, Paid 0 FIL, DealProposed (WaitForAcceptance), 21ms [1674164640120979003|0]
Recv 0 B, Paid 0 FIL, DealAccepted (Accepted), 405ms [1674164640120979003|0]
Recv 0 B, Paid 0 FIL, PaymentChannelSkip (Ongoing), 418ms [1674164640120979003|0]
Recv 56 B, Paid 0 FIL, BlocksReceived (Ongoing), 452ms [1674164640120979003|56]
Recv 114 B, Paid 0 FIL, BlocksReceived (Ongoing), 452ms [1674164640120979003|114]
Recv 165 B, Paid 0 FIL, BlocksReceived (Ongoing), 452ms [1674164640120979003|165]
Recv 221 B, Paid 0 FIL, BlocksReceived (Ongoing), 452ms [1674164640120979003|221]
Recv 49.71 KiB, Paid 0 FIL, BlocksReceived (Ongoing), 716ms [1674164640120979003|50906]
Recv 50.1 KiB, Paid 0 FIL, BlocksReceived (Ongoing), 716ms [1674164640120979003|51299]
Recv 1.049 MiB, Paid 0 FIL, BlocksReceived (Ongoing), 10.176s [1674164640120979003|1099889]
Recv 2.049 MiB, Paid 0 FIL, BlocksReceived (Ongoing), 14.688s [1674164640120979003|2148479]
Recv 3.049 MiB, Paid 0 FIL, BlocksReceived (Ongoing), 18.563s [1674164640120979003|3197069]
Recv 4.049 MiB, Paid 0 FIL, BlocksReceived (Ongoing), 22.314s [1674164640120979003|4245659]
```