Simulacrum
  • Overview
  • Existential Attestation
    • Validators
  • Synthetic Blockchain
    • Organization
      • Indexer
        • Sources
          • X
          • Telegram
          • TBD
      • Blocks
      • Mempool
      • Commands
        • Wallet
        • Metaprotocols
        • Modifiers
        • Arguments
        • Keyword Arguments
      • Effects
    • Roadmap
  • Metaprotocols
    • The Drops
      • Modules
        • Tokens
          • Token Deployment
          • Airdrops
          • Trading
          • Liquidity
        • Trading
        • Vaults
      • Points
    • MiniGame (TBD)
    • Sportsbook (TBD)
    • Lottery (TBD)
  • Revenue
    • $EMP Staking
  • Fair Witness API
    • Integration
  • FAQ
  • Guides
  • Website
  • X
  • Empyreal
  • Empyreal Docs
Powered by GitBook
On this page

Fair Witness API

Previous$EMP StakingNextIntegration

Last updated 6 months ago

The offchain API provides a way for builders to fetch in the format necessary to be pushed onchain. The ApI can be accessed via /

Existential Attestation
https://fairwitness.empyrealsdk.com
  • POSTAttest User
  • POSTAttest Tweet

Attest User

post
Body
tweetIdintegerRequired
Responses
200
Successful Response
application/json
422
Validation Error
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"
  ]
}

Attest Tweet

post
Body
tweetIdintegerRequired
Responses
200
Successful Response
application/json
422
Validation Error
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"
  ]
}