GetBidsFeed

API

API/v2/lens/open_curation/all_bids

Title

GetBidsFeed

Description

Retrieve the bids feed

Authorization

Not required

Method

GET

Request Parameters

NameTypeRequiredDescription

profileIds

int[]

YES

The lens profile id list of the curators for the bids

limit

int

NO

The number of bids displayed per page, default to 10

offset

int

NO

Specify the number of rows to be skipped from the beginning of the query result. For example, offsett 5 means that the first 5 rows of the query result will be skipped.

sort

string

NO

Can sort by "bid_amount", "create_at", "update_at", default to "bid_amount"

sortType

string

NO

“desc” or “asc”, default to “desc”. Arrange in ascending or descending order.

status

string

NO

The status of the bid. “Pending”, “Pass”, “Cancel”. All data will be queried if the status is not included in the request parameters.

Request and Response Example

Request

cURL Code

curl -X 'POST' \
  'https://api.tako.so/v2/lens/open_curation/all_bids' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "limit": 3,
    "offset": 0,
    "sort": "create_at",
    "sortType": "desc",
    "status": "Pending"
  }'

Request URL

https://api.tako.so/v2/lens/open_curation/all_bids

Response

{
  "status": "success",
  "data": {
    "bids": [
      {
        "id": 903,
        "index": 13,
        "content_id": "0xae-0x08-DA-60c4916e",
        "bid_token": "0x0000000000000000000000000000000000000000",
        "bid_address": "0xCe41cdCCA1849CaD58DaACc6005B1990Be04e1F0",
        "bid_amount": "161000000000000",
        "bid_time": 1700644794,
        "curator_id": 0,
        "curator_content_id": "",
        "state": "Pending",
        "bid_type": "QuotedPublication",
        "block_number": 0,
        "others": {},
        "events": {
          "addBidEvent": {
            "state": "Pending",
            "tx_hash": "0x63a0232bbc65afc1db82f134d3a40f6b0f0e590aa57aed839766fdc36474c46c",
            "event_name": "addBidEvent",
            "block_number": 42702173,
            "block_timestamp": 1700644794
          }
        },
        "create_at": 1700644794,
        "update_at": 1700644794
      },
      {
        "id": 807,
        "index": 10,
        "content_id": "0x01bd-0x01-DA-84dddefe",
        "bid_token": "0x0000000000000000000000000000000000000000",
        "bid_address": "0xC439530f6A0582Bc09da70A3e52Ace7dF4b58A32",
        "bid_amount": "42000000000000000",
        "bid_time": 1700644642,
        "curator_id": 0,
        "curator_content_id": "",
        "state": "Pending",
        "bid_type": "QuotedPublication",
        "block_number": 0,
        "others": {},
        "events": {
          "addBidEvent": {
            "state": "Pending",
            "tx_hash": "0xfc3c067c63e77538641fe174001b0ae0b9b41362c00fdd65c9ef5e95fe34cfc8",
            "event_name": "addBidEvent",
            "block_number": 42702114,
            "block_timestamp": 1700644642
          }
        },
        "create_at": 1700644642,
        "update_at": 1700644642
      },
      {
        "id": 808,
        "index": 11,
        "content_id": "0x01bd-0x01-DA-84dddefe",
        "bid_token": "0x0000000000000000000000000000000000000000",
        "bid_address": "0xC439530f6A0582Bc09da70A3e52Ace7dF4b58A32",
        "bid_amount": "13",
        "bid_time": 1700644642,
        "curator_id": 0,
        "curator_content_id": "",
        "state": "Pending",
        "bid_type": "QuotedPublication",
        "block_number": 0,
        "others": {},
        "events": {
          "addBidEvent": {
            "state": "Pending",
            "tx_hash": "0xfc3c067c63e77538641fe174001b0ae0b9b41362c00fdd65c9ef5e95fe34cfc8",
            "event_name": "addBidEvent",
            "block_number": 42702114,
            "block_timestamp": 1700644642
          }
        },
        "create_at": 1700644642,
        "update_at": 1700644642
      }
    ],
    "total": 6
  }
}

Last updated