Basic Batch Query
Submit a batch query
Handles batch queries for interacting with storage slot data.
POST
Request Body
Available chain connections
Destination Chain ID | Origin Chain ID |
---|---|
300 | 11155111 |
4801 | 4801, 84532, 11155111 |
421614 | 11155111 |
11155111 | 4801, 11155111 |
11155420 | 11155111 |
STARKNET | 1 |
SN_SEPOLIA | 11155111, 11155420 |
Every field in this request body is mandatory.
destinationChainId
- Description: The ID of the chain that the user wants the data proved on.
- Type: string
- Available values:
- refer to the Available chain connections table above
fee
- Description: The amount of fee that can be collected by our backend. The system collects only the needed amount.
- Type: string
Note: Goerli is free, provide
0
as fee.
data
- Description: This field describes all the properties the user wants to be proved. It accepts nested objects following a specific pattern
- Type: object
- Data Structure:
-
[chain id]
- Description: ID of the origin chain from which the data to prove is taken.
- Type: string
- Available values:
- refer to the Available chain connections table above
-
[block:number or timestamp:number]
- Description: The number with block or timestamp prefix from which the user requests the properties to prove. If timestamp prefix is provided, the system will find exact or the block with the closest timestamp to the left. Note: timestamp is only available for
STARKNET
,SN_GOERLI
andSN_SEPOLIA
destinations. - Type: string
- Description: The number with block or timestamp prefix from which the user requests the properties to prove. If timestamp prefix is provided, the system will find exact or the block with the closest timestamp to the left. Note: timestamp is only available for
-
[header property]
- Description: Properties of the requested header to be saved in the FactsRegistry contract. Note: currently, we save all the values regardless of what is provided in this field.
- Type: string
- Available values:
PARENT_HASH
UNCLES_HASH
COINBASE
PROPOSER
STATE_ROOT
TRANSACTIONS_ROOT
RECEIPTS_ROOT
LOGS_BLOOM
DIFFICULTY
BLOCK_NUMBER
GAS_LIMIT
GAS_USED
TIMESTAMP
EXTRA_DATA
MIX_HASH
NONCE
BASE_FEE_PER_GAS
WITHDRAWALS_ROOT
BLOB_GAS_USED
EXCESS_BLOB_GAS
PARENT_BEACON_BLOCK_ROOT
-
[address or ENS name]
- Description: Address of the account for which the user requests the properties to prove, must be the address of the account on the origin chain.
- Type: string
-
[account property]
- Description: Properties of the requested account to be saved in the FactsRegistry contract. Note: currently, we save all the values regardless of what is provided in this field.
- Type: string
- Available values:
BALANCE
NONCE
CODE_HASH
STORAGE_ROOT
-
[storage slot]
- Description: Storage slot of the requested account to be saved in the FactsRegistry contract. To find storage slots, you can use our BETA Storage Slot Explorer, which can sometimes break unexpectedly.
- Type: string
webhook
- Description: The webhook to send the response to.
- Type: object
- Data Structure:
Example Request Body
Authorizations
Body
application/json
Response
201
application/json
Default Response
The response is of type object
.