GET /api/v1/indexer/swapEvent/record
Parameters
| Name | Location | Details |
|---|---|---|
X-Juicebox-Account | header / required | Enrolled account identity, including authority chain and lowercase owner address. Enrollment derives this identity before the account exists. |
X-Juicebox-Signer | header / required | Owner wallet or authorized bot address that signed this request. |
X-Juicebox-Issued-At | header / required | Unix seconds, sent as 1–13 decimal digits without leading zeros; at most 30 seconds ahead of server time. |
X-Juicebox-Expires-At | header / required | Unix seconds, sent as 1–13 decimal digits without leading zeros; in the future and within 300 seconds of issuedAt. |
X-Juicebox-Nonce | header / required | Fresh random 32-byte lowercase nonce. A consumed nonce cannot be retried. |
X-Juicebox-Signature | header / required | EIP-712 CenterRequest signature over every signed field. Contract-owner signatures may vary in length. This is a computed request proof, not a reusable API key. |
X-Juicebox-Grant | header / optional | Authorized bot grant ID. Required for a bot; omit for the owner, signing grantId as the empty string. |
Idempotency-Key | header / optional | Signed retry identity. Required on plan creation and transaction submission. Preserve exact method, target, Content-Type, and body bytes; use a fresh request nonce and signature. |
network | query / required | string
|
chainId | query / optional | Must belong to the chosen indexer network.
|
projectId | query / optional | Exact nonnegative decimal string no greater than 9007199254740991. |
id | query / optional | version is fixed to numeric 6. Supply every remaining primary key in this closed object or via the chainId/projectId query scope. A scalar string is accepted only when exactly one key remains after scope and version injection; it supplies that remaining key regardless of its name. Scope and key identities must agree; chainId must belong to the selected network. Serialize as JSON once, percent-encode the query value, then sign the exact resulting request target. |
fields | query / optional | Bounded scalar field paths or supported singular relations. Identity fields are always included. Serialize as JSON once, percent-encode the query value, then sign the exact resulting request target. |
Response 200
| Field | Type | Details |
|---|---|---|
entity | string required | Values: |
network | string required | Values: |
protocolVersion | integer required | Values: |
item | one of required | |
provenance | object required | |
semantics | object required | Bendystraw indexing is not a canonical block-hash snapshot. Preserve lag, pagination, scope, and unknown-field semantics. |
JSON schema
{
"type": "object",
"properties": {
"entity": {
"type": "string",
"const": "swapEvent"
},
"network": {
"type": "string",
"enum": [
"mainnet",
"testnet"
]
},
"protocolVersion": {
"$ref": "#/components/schemas/ProtocolVersion"
},
"item": {
"anyOf": [
{
"$ref": "#/components/schemas/IndexerRow_swapEvent"
},
{
"type": "null"
}
]
},
"provenance": {
"type": "object",
"additionalProperties": true
},
"semantics": {
"$ref": "#/components/schemas/IndexerSemantics"
}
},
"required": [
"entity",
"network",
"protocolVersion",
"item",
"provenance",
"semantics"
],
"additionalProperties": false
}