StackerDB
Endpoints for interacting with StackerDB instances.
Get the latest version of a chunk of data from a StackerDB instance.
Stacks address (28-41 characters) or a Contract identifier in format {address}.{contract_name}
(e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info).
Contract names have a maximum length of 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-infoPattern: ^([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41})|([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Slot ID
StackerDB chunk data
Not found
Internal Server Error
Get StackerDB chunk (specific version)
Get a specific version of a chunk of data from a StackerDB instance.
Stacks address (28-41 characters) or a Contract identifier in format {address}.{contract_name}
(e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info).
Contract names have a maximum length of 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-infoPattern: ^([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41})|([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Slot ID
Specific slot version
StackerDB chunk data
Bad request
Not found
Internal Server Error
Get metadata about a StackerDB instance, including slot information.
Stacks address (28-41 characters) or a Contract identifier in format {address}.{contract_name}
(e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info).
Contract names have a maximum length of 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-infoPattern: ^([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41})|([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$StackerDB metadata
Bad request
Not found
Internal Server Error
Write a chunk of data to a StackerDB instance.
The request body should contain a JSON object with the chunk data including slot_id, slot_version, signature, and hex-encoded data.
The response indicates whether the chunk was accepted, and if not, provides detailed error information. Note that failed writes return HTTP 200 with accepted: false, not HTTP error codes.
Stacks address (28-41 characters) or a Contract identifier in format {address}.{contract_name}
(e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info).
Contract names have a maximum length of 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-infoPattern: ^([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41})|([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Slot identifier
Slot version (lamport clock)
Hex-encoded signature from the stacker
^[0-9a-f]{130}$Hex-encoded chunk data
^[0-9a-f]*$Chunk submission result (both success and failure cases)
Bad request
Not found
Internal Server Error
Get a list of replicas for a StackerDB instance.
Stacks address (28-41 characters) or a Contract identifier in format {address}.{contract_name}
(e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info).
Contract names have a maximum length of 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-infoPattern: ^([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41})|([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$List of StackerDB replicas
Bad request
Not found
Internal Server Error
Last updated
Was this helpful?
