daprovider_startChunkedStore
Opens a chunked store of a message of totalSize bytes, sent as nChunks chunks of chunkSize bytes, and returns the message ID to pass to daprovider_sendChunk and daprovider_commitChunkedStore.
Source: nitro v3.12.2 daprovider/server/provider_server.go:256
Generated from Nitro v3.12.2.
$DA_SERVER_URL$DA_SERVER_URL is the URL of your data availability server.
Params
- [0] timestamp Quantity requiredUnix time at which the request was signed.
- [1] nChunks Quantity requiredNumber of chunks.
- [2] chunkSize Quantity requiredSize of each chunk, in bytes.
- [3] totalSize Quantity requiredSize of the whole message, in bytes.
- [4] timeout Quantity requiredUnix time until which the data must be stored.
- [5] sig Bytes requiredSignature of the request.
Result
Prop
Type
{ "jsonrpc": "2.0", "id": 1, "result": { "BatchId": "0x00" }}Go definition
// nitro v3.12.2 daprovider/server/provider_server.go:256func (s *WriterServer) StartChunkedStore(ctx context.Context, timestamp, nChunks, chunkSize, totalSize, timeout hexutil.Uint64, sig hexutil.Bytes) (*data_streaming.StartStreamingResult, error)// nitro v3.12.2 daprovider/data_streaming/receiver.go:88type StartStreamingResult struct { MessageId hexutil.Uint64 `json:"BatchId,omitempty"` // For compatibility reasons we keep the old name "BatchId"}curl -X POST $DA_SERVER_URL \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "daprovider_startChunkedStore", "params": [ "0x6718f2a0", "0x2", "0x100000", "0x180000", "0x67400000", "<signature, hex>" ]}'How is this guide?