Sandbox API
Manage your BuildBear sandboxes, create, inspect, snapshot, delete, and list supported networks, etc.
Authorization
All requests must include your API Key as a Bearer Token
in the Authorization
header for authentication.
Create a Sandbox
Properties
POST
body
chainId(integer)
RequiredThe ID of the blockchain to forkblockNumber(integer)
OptionalThe block number to fork fromcustomChainId(integer)
OptionalA custom chain ID for the sandboxprefund(array)
OptionalA list of addresses to prefund in the sandboxheaders
Authorization(string)
RequiredBearer TokenAccept(string)
Requiredapplication/jsonContent-Type(string)
Requiredapplication/jsonRequest Example
Response
A successful response will return a JSON object containing the sandbox details.
Fetch Sandbox Details
Properties
GET
segments
sandboxId(string)
RequiredThe ID of the sandbox to queryheaders
Authorization(string)
RequiredBearer TokenAccept(string)
Requiredapplication/jsonRequest Example
Response
A successful response will return a JSON object containing the sandbox details for the given Sandbox-ID.
Get Sandbox Snapshot
Properties
GET
segments
sandboxId(string)
RequiredThe ID of the sandbox to queryheaders
Authorization(string)
RequiredBearer TokenAccept(string)
Requiredapplication/jsonRequest Example
Response
A successful response will return a JSON object containing the sandbox details.
Delete a Sandbox
Properties
DELETE
segments
sandboxId(string)
RequiredThe ID of the sandbox to queryheaders
Authorization(string)
RequiredBearer TokenAccept(string)
Requiredapplication/jsonRequest Example
Response
A successful response will confirm the deletion of the specified sandbox.
Get Available Networks
Properties
GET
headers
Authorization(string)
RequiredBearer TokenAccept(string)
Requiredapplication/jsonRequest Example
Response
A successful response will return a JSON object containing the supported chains.