daprovider_sendChunk

Request an update

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

  1. [0] messageId Quantity requiredMessage ID returned by the start call.
  2. [1] chunkId Quantity requiredIndex of the chunk, from 0.
  3. [2] chunk Bytes requiredChunk bytes.
  4. [3] sig Bytes requiredSignature of the request.

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) error
curl -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?