daprovider_sendChunk
Adds the chunk with the given chunk ID to the chunked store opened for the given message ID. Returns null.
Source: nitro v3.12.2 daprovider/server/provider_server.go:260
Generated from Nitro v3.12.2.
$DA_SERVER_URL$DA_SERVER_URL is the URL of your data availability server.
Params
Result
Prop
Type
{ "jsonrpc": "2.0", "id": 1, "result": null}Go definition
// nitro v3.12.2 daprovider/server/provider_server.go:260func (s *WriterServer) SendChunk(ctx context.Context, messageId, chunkId hexutil.Uint64, chunk hexutil.Bytes, sig hexutil.Bytes) errorcurl -X POST $DA_SERVER_URL \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "daprovider_sendChunk", "params": [ "0x1", "0x0", "<chunk bytes, hex>", "<signature, hex>" ]}'How is this guide?
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.
daprovider_commitChunkedStore
Assembles the chunks received for the given message ID, stores the message and returns the serialized data availability certificate.