Fair Witness API

The offchain API provides a way for builders to fetch Existential Attestation in the format necessary to be pushed onchain. The ApI can be accessed via https://fairwitness.empyrealsdk.com/

Attest Tweet

post
Body
tweetIdintegerRequired
Responses
200
Successful Response
application/json
post
POST /tweet HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "tweetId": 1
}
{
  "tweet": {
    "id": "binary",
    "userId": "text",
    "createdAt": 1,
    "conversationId": "text",
    "fullText": "text",
    "inReplyToStatusId": "text",
    "inReplyToUserId": "text",
    "isQuote": true,
    "mentions": [
      {
        "id": "binary",
        "screenName": "text",
        "startIndex": 1,
        "endIndex": 1
      }
    ]
  },
  "signatures": [
    "text"
  ]
}

Attest User

post
Body
tweetIdintegerRequired
Responses
200
Successful Response
application/json
post
POST /user HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "tweetId": 1
}
{
  "username": {
    "id": 1,
    "created_at": "text",
    "favourites_count": 1,
    "followers_count": 1,
    "following_count": 1,
    "media_count": 1,
    "name": "text",
    "pinned_tweet_ids": [
      "text"
    ],
    "screen_name": "text",
    "statuses_count": 1,
    "is_blue_verified": true
  },
  "signatures": [
    "text"
  ]
}

Last updated