GetLensBidsReceived

API

API/v2/lens/get_bids_received

Title

GetLensBidsReceived

Description

Retrieve the content created on Lens sent to you by others.

Authorization

Not required

Method

POST

Request Parameters

NameTypeRequiredDescription

profileIds

int[]

YES

The lens profile id list of the curators

bidType

string[]

NO

"Post", "Mirror", "Comment", "QuotedPublication" If the bidType is not included in the request parameters, all data will be queried.

includeIgnore

bool

NO

Should ignored content be included. Default to true

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, OFFSET 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.

state

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/get_bids_received' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "bidType": [
      "Post", "Mirror"
    ],
    "includeIgnore": true,
    "limit": 5,
    "offset": 0,
    "profileIds": [
      36113
    ],
    "sort": "create_at",
    "sortType": "desc",
    "state": "Pending"
  }'

Request URL

https://api.tako.so/v2/lens/get_bids_received

Response

{
  "status": "success",
  "data": {
    "count": 1,
    "data": [
      {
        "id": 18729,
        "index": 70,
        "ignores": [
          false
        ],
        "platform_type": "polygon",
        "content_uri": "",
        "bid_token": "0x0000000000000000000000000000000000000000",
        "bid_address": "0xCe41cdCCA1849CaD58DaACc6005B1990Be04e1F0",
        "bid_amount": 1000000000000,
        "bid_expires": 1691012582,
        "to_profiles": [
          36113
        ],
        "curator_profile_id": 0,
        "curator_pub_id": "0x00",
        "state": "Pending",
        "bid_type": "Mirror",
        "others": {
          "pubIdPointed": 2,
          "profileIdPointed": 36112
        },
        "events": {
          "addBidEvent": {
            "state": "Pending",
            "tx_hash": "0xfef79bb3082eed54df52319cac60563bd7430d4c165f9927bcd362d33862e9f7",
            "event_name": "addBidEvent",
            "block_number": 38553832,
            "block_timestamp": 1690969382
          }
        },
        "create_at": 1690969382,
        "update_at": 1690969382
      }
    ],
    "ecosystem": "lens"
  }
}

Last updated