Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: GetAsk API #1907

Merged
merged 1 commit into from
Apr 2, 2024
Merged

feat: GetAsk API #1907

merged 1 commit into from
Apr 2, 2024

Conversation

LexLuthr
Copy link
Collaborator

@LexLuthr LexLuthr commented Apr 2, 2024

This PR recreates the legacy MarketGetAsk API as it is required by the CIDGravity team. The API was removed as part of the go-fil-market removal.

% curl -s -X POST -H "Content-Type: application/json" --data '{ "jsonrpc": "2.0", "method": "Filecoin.MarketGetAsk", "params": [], "id": 1}' http://localhost:1288/rpc/v0 | jq
{
  "jsonrpc": "2.0",
  "result": {
    "Ask": {
      "Price": "50000000",
      "VerifiedPrice": "5000000",
      "MinPieceSize": 256,
      "MaxPieceSize": 34359738368,
      "Miner": "t01000",
      "Timestamp": 25,
      "Expiry": 1000025,
      "SeqNo": 0
    },
    "Signature": {
      "Type": 2,
      "Data": "lylEWYA/AH1+LXfknJai5sZOuCOFqHChWCTVkPrELx+uze7h5dv2TbGWZtGsRfEkEJ44Bo32EWR8MdNs/oGQSXcqKt/PTVBgRsze2yjbiRI+L74dCWFTpYgOSG+3PY7M"
    }
  },
  "id": 1
}

@LexLuthr LexLuthr requested a review from snadrus April 2, 2024 10:21
@snadrus snadrus merged commit 603303c into main Apr 2, 2024
21 checks passed
@snadrus snadrus deleted the get-ask branch April 2, 2024 21:09
@Normalnoise
Copy link

supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants