getOpenCurationBidsCreated

API

API/v2/lens/open_curation/get_bids_created

Title

getOpenCurationBidsCreated

Description

Retrieve the bids created by the bidders on Lens

Authorization

Not required

Method

POST

Request Parameters

NameTypeRequiredDescription

profileIds

int[]

YES

The lens profile id list of the bidders

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 state of bid. “Pending”, “Pass”, “Cancel”. If the state is not included in the request parameters, all data will be queried.

Parameter Content Type

application/json

Request and Response Example

Request

cURL Code

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

Request URL

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

Response

{
  "status": "success",
  "data": {
    "bids": [
      {
        "id": 1266,
        "index": 15,
        "content_id": "0xae-0x08-DA-155f6c65",
        "bid_token": "0x0000000000000000000000000000000000000000",
        "bid_address": "0x0f9Ab2e48665487BE9e2f5EF238496Ef9213AE57",
        "bid_amount": "161000000000000",
        "bid_time": 1700647900,
        "curator_id": 0,
        "curator_content_id": "",
        "state": "Pending",
        "bid_type": "QuotedPublication",
        "block_number": 0,
        "others": {},
        "events": {
          "addBidEvent": {
            "state": "Pending",
            "tx_hash": "0x10945cff4d8f61e5bdd95940d563d21db73815ab7e4405aeef6a43104163155b",
            "event_name": "addBidEvent",
            "block_number": 42703524,
            "block_timestamp": 1700647900
          }
        },
        "create_at": 1700647900,
        "update_at": 1700647900
      }
    ],
    "total": 1
  }
}

Last updated