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: basics/how-storage-works/filecoin-plus.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,3 @@
1
-
---
2
-
description: >-
3
-
Learn how the Filecoin Plus program works, how DataCap is obtained and used by
4
-
clients, and how allocators verify that the data clients want to store with a
5
-
Filecoin storage provider is useful.
6
-
---
7
-
8
1
# Filecoin plus
9
2
10
3
## What is Filecoin Plus?
@@ -27,7 +20,8 @@ DataCap is a token paid to storage providers as part of a deal in which the clie
27
20
28
21
Quality Adjusted Power is an assigned rating to a given [sector](https://spec.filecoin.io/systems/filecoin\_mining/sector/), the basic unit of storage on the Filecoin network. Quality Adjusted Power is a function of a number of features of the sector, including, but not limited to, the sector’s size and promised duration, and whether the sector includes a Filecoin+ deal. It's clear to the network that a sector includes a Filecoin Plus deal if a deal in that sector involves DataCap paid to the storage provider. The more Filecoin Plus verified data the storage provider has in a sector, the higher the Quality-Adjusted Power a storage provider has, which linearly increases the number of votes a miner has in the [Secret Leader Election](https://spec.filecoin.io/algorithms/expected\_consensus/), determining which storage provider gets to serve as the verifier for the next block in the blockchain, and thus increasing the probability the storage provider is afforded the opportunity to earn block rewards. For more details on Quality Adjusted Power, see the [Filecoin specification](https://spec.filecoin.io/systems/filecoin\_blockchain/storage\_power\_consensus/).
29
22
30
-
\[!IMPORTANT] There is a common misconception that a Filecoin Plus deal increases the miner’s reward paid to a Filecoin storage provider by a factor of ten. This is not true, Filecoin+ does not increase the amount of block rewards available to storage providers. Including Filecoin Plus deals in a sector increases the Quality Adjusted Power of a storage provider, which increases the probability a storage provider is selected as the block verifier for the next block on the Filecoin blockchain, and thus increases the probability they earn block rewards.
23
+
#### Important
24
+
There is a common misconception that a Filecoin Plus deal increases the miner’s reward paid to a Filecoin storage provider by a factor of ten. This is not true, Filecoin+ does not increase the amount of block rewards available to storage providers. Including Filecoin Plus deals in a sector increases the Quality Adjusted Power of a storage provider, which increases the probability a storage provider is selected as the block verifier for the next block on the Filecoin blockchain, and thus increases the probability they earn block rewards.
31
25
32
26
Consider first a network with ten storage providers. Initially, each storage provider has an equal 10% probability of winning available block rewards in a given period:
33
27
@@ -41,7 +35,7 @@ If two of these storage providers begin filling their sectors with verified deal
41
35
42
36
Incentives for storage providers to accept verified deals is strongest initially. As more and more storage providers include verified deals in their sectors, the probability any one of them earns the block rewards returns to an equal chance.
As seen in the diagrams above, Filecoin Plus increases the collateral requirements needed by a storage provider. As a higher percentage of storage providers include verified deals in their sectors, the collateral needed by each storage provider will increase. To learn more about storage provider collateral, see [this link](https://docs.filecoin.io/storage-providers/filecoin-economics/fil-collateral).
47
41
@@ -55,18 +49,18 @@ The participants of the Filecoin+ program, along with how they interact with eac
55
49
* Clients are participants in the Filecoin network who store data with a storage provider. A trusted client, as determined by an allocator who performs due diligence on the client and the data they are looking to store, will be given DataCap by the allocator. Clients offer to give this DataCap to a storage provider as part of a deal, which increases the “deal quality multiplier” of the deal, and in turn the likelihood a storage provider will accept the deal.
56
50
* Storage providers who receive DataCap as part of a deal are able to use this DataCap to increase their “quality adjusted power” of the storage provider on the network by a factor of ten. As described above, this increases their probability of being selected as the verifier for a block, affording them the opportunity to earn block rewards.
57
51
52
+
## How Filecoin Plus Works
58
53
A visualization of the interactions between parties involved in a Filecoin+ deal described above is shown below in Figure 1.
59
54
60
-

61
-
62
-
Figure 1 | Diagram showing participant interactions in a Filecoin+ deal.
55
+

63
56
64
57
## Acquiring DataCap for Clients & Builders
65
58
66
59
Clients can secure DataCap by making a request to an allocator. Each one of the allocators maintain their own applications for requesting DataCap.
67
60
68
61
One such allocator is [Filecoin Incentive Design Labs (FIDL)](https://www.fidl.tech). They maintain a [Github repository](https://github.com/fidlabs) that includes an [application](https://github.com/fidlabs/Open-Data-Pathway/issues/new/choose) where clients can make a request of FIDL for DataCap. Clients and builders looking to acquire DataCap may consider applying directly with FIDL, noting that all DataCap applications are transparent and open for public review on the [issues page](https://github.com/fidlabs/Open-Data-Pathway/issues).
69
62
63
+
### Steps to Acquire Mainnet DataCap as a Client
70
64
The steps a client should follow to acquire DataCap are as follows:
71
65
72
66
1. Create a [Filecoin wallet](https://docs.filecoin.io/basics/assets/wallets).
@@ -75,23 +69,28 @@ The steps a client should follow to acquire DataCap are as follows:
75
69
4. Submit an application for DataCap from an allocator. You can submit a request to FIDL via their [Github application form](https://github.com/fidlabs/Open-Data-Pathway/issues/new/choose) or [Google Form](https://www.fidl.tech/apply-for-datacap).
76
70
5. Use the DataCap in a storage deal.
77
71
72
+
### Steps to Acquire Testnet DataCap as a Builder
78
73
For builders on the [Calibration testnet](../../networks/calibration/) who need testnet DataCap to test their applications, a faucet is available. The steps a builder should follow to acquire testnet DataCap are as follows:
79
74
80
75
1. Create a wallet on Filecoin Calibration testnet. For more information, see the [Calibration docs](../../networks/calibration/) or [Github](https://github.com/filecoin-project/testnet-calibration).
81
76
2. Grant the wallet address DataCap by using this [faucet](https://faucet.calibnet.chainsafe-fil.io/datacap.html).
82
77
83
-
## **Smart contracts**
78
+
## **DataCap for Smart contracts**
84
79
85
80
Smart contracts can acquire and use DataCap just like any regular client. To do so, simply enter the `f410` address of the smart contract as the client address when making a request for DataCap.
86
81
87
-
\[!Important] It’s important to note that DataCap allocations are a one-time credit for a Filecoin address and cannot be transferred between smart contracts. If you need to redeploy the smart contract, you must request additional DataCap.
88
-
89
-
## Spend DataCap
82
+
### Important
83
+
It’s important to note that DataCap allocations are a one-time credit for a Filecoin address and cannot be transferred between smart contracts. If you need to redeploy the smart contract, you must request additional DataCap.
90
84
85
+
## How to Use DataCap
91
86
Once you have an address with DataCap, you can make deals using DataCap as a part of the payment. Because storage providers receive a deal quality multiplier for taking Filecoin+ deals, many storage providers offer special pricing and services to attract clients who use DataCap to make deals.
92
87
88
+
[Learn more about Storage Deals.](https://docs.filecoin.io/storage-providers/filecoin-deals/storage-deals)
89
+
93
90
By default, when you make a deal with an address with DataCap allocated, you will spend that DataCap when making the deal.
94
91
92
+
### How to Use DataCap, using the API
93
+
95
94
If making deals through the [API](https://github.com/filecoin-project/lotus/blob/master/documentation/en/api-v0-methods.md#ClientStartDeal), make sure that the `VerifiedDeal` parameter is set to `true` when calling `ClientStartDeal`.
96
95
97
96
```json
@@ -117,23 +116,26 @@ If making deals through the [API](https://github.com/filecoin-project/lotus/blob
117
116
]
118
117
```
119
118
119
+
### How to Use DataCap, using the Command Line
120
120
If making deals from the command line, make sure to pass the flag `--verified-deal=true` as a parameter.
121
121
122
122
```shell
123
123
lotus client deal --verified-deal=true
124
124
```
125
125
126
-
### Checking remaining DataCap balance
126
+
### Checking DataCap Balance
127
127
128
128
Once you have received DataCap to an address, you can check the remaining balance by querying your address on a node.
129
129
130
130
#### With the lotus cli
131
131
132
+
Run the following command, replacing "f0000" with your Filecoin address.
133
+
132
134
```shell
133
135
lotus filplus check-client-datacap f00000
134
136
```
135
137
136
-
## Visualizing the Blockchain Data for Filecoin+
138
+
## Visualizing Blockchain Data for Filecoin+
137
139
138
140
There are three resources you can use to check the current status of the Filecoin+ deals and participants:
0 commit comments