Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Solver Reveal API
description: The API implemented by Solvers to be queried by Autopilot.
version: 0.0.1
tags:
- name: Reveal
paths:
/reveal:
post:
operationId: revealCalldata
description: 'Reveal the calldata of the previously solved auction.
This may be used by the autopilot for the shadow competition to verify the solution before requesting its execution it on chain.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RevealRequest'
responses:
'200':
description: Execution accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/RevealResponse'
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
tags:
- Reveal
summary: Reveal calldata
x-summary-source: derived
components:
schemas:
Calldata:
description: hex encoded calldata with `0x` prefix.
type: object
properties:
internalized:
description: 'The calldata without any internalized interactions encoded.
This is the calldata that can be found on chain.'
type: string
example: '0x1234567890'
uninternalized:
description: 'The calldata with all internalized interactions encoded.
This is the calldata that should be used for simulation/verification
purposes.'
type: string
example: '0x1234567890'
RevealResponse:
description: Response of the reveal endpoint.
type: object
properties:
calldata:
$ref: '#/components/schemas/Calldata'
RevealRequest:
description: Request to the `/reveal` endpoint.
type: object
properties:
solutionId:
description: Id of the solution that should be executed.
type: integer
example: 123
auctionId:
description: Auction ID in which the specified solution ID is competing.
type: integer
example: 123
responses:
InternalServerError:
description: 'Something went wrong when handling the request.
Body potentially contains extra information.'
content:
text/plain:
schema:
type: string
BadRequest:
description: 'There is something wrong with the request.
Body potentially contains extra information.'
content:
text/plain:
schema:
type: string