交易
List all deals
preparation ID or name filter
provider filter
schedule id filter
source ID or name filter
OK
Bad Request
Internal Server Error
POST /api/deal HTTP/1.1
Host: localhost:9090
Content-Type: application/json
Accept: */*
Content-Length: 103
{
"preparations": [
"text"
],
"providers": [
"text"
],
"schedules": [
1
],
"sources": [
"text"
],
"states": [
"proposed"
]
}[
{
"clientId": "text",
"createdAt": "text",
"dealId": 1,
"endEpoch": 1,
"errorMessage": "text",
"id": 1,
"label": "text",
"lastVerifiedAt": "text",
"pieceCid": "text",
"pieceSize": 1,
"price": "text",
"proposalId": "text",
"provider": "text",
"scheduleId": 1,
"sectorStartEpoch": 1,
"startEpoch": 1,
"state": "proposed",
"updatedAt": "text",
"verified": true
}
]Send a manual deal proposal
Client address
Duration in epoch or in duration format, i.e. 1500000, 2400h
12740hFile size in bytes for boost to fetch the CAR file
http headers to be passed with the request (i.e. key=value)
Whether the deal should be IPNI
trueWhether the deal should be kept unsealed
truePiece CID
Piece size
Price in FIL per deal
0Price in FIL per GiB
0Price in FIL per GiB per epoch
0Provider ID
Root CID that is required as part of the deal proposal, if empty, will be set to empty CID
bafkqaaaDeal start delay in epoch or in duration format, i.e. 1000, 72h
72hURL template with PIECE_CID placeholder for boost to fetch the CAR file, i.e. http://127.0.0.1/piece/{PIECE_CID}.car
Whether the deal should be verified
trueOK
Bad Request
Internal Server Error
POST /api/send_deal HTTP/1.1
Host: localhost:9090
Content-Type: application/json
Accept: */*
Content-Length: 298
{
"clientAddress": "text",
"duration": "12740h",
"fileSize": 1,
"httpHeaders": [
"text"
],
"ipni": true,
"keepUnsealed": true,
"pieceCid": "text",
"pieceSize": "text",
"pricePerDeal": 0,
"pricePerGb": 0,
"pricePerGbEpoch": 0,
"providerId": "text",
"rootCid": "bafkqaaa",
"startDelay": "72h",
"urlTemplate": "text",
"verified": true
}{
"clientId": "text",
"createdAt": "text",
"dealId": 1,
"endEpoch": 1,
"errorMessage": "text",
"id": 1,
"label": "text",
"lastVerifiedAt": "text",
"pieceCid": "text",
"pieceSize": 1,
"price": "text",
"proposalId": "text",
"provider": "text",
"scheduleId": 1,
"sectorStartEpoch": 1,
"startEpoch": 1,
"state": "proposed",
"updatedAt": "text",
"verified": true
}Last updated
Was this helpful?