daprovider_commitChunkedStore

Request an update

Assembles the chunks received for the given message ID, stores the message and returns the serialized data availability certificate.

Source: nitro v3.12.2 daprovider/server/provider_server.go:264

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] sig Bytes requiredSignature of the request.

Result

Prop

Type

{  "jsonrpc": "2.0",  "id": 1,  "result": {    "serialized-da-cert": "0x00"  }}

Go definition

// nitro v3.12.2 daprovider/server/provider_server.go:264func (s *WriterServer) CommitChunkedStore(ctx context.Context, messageId hexutil.Uint64, sig hexutil.Bytes) (*server_api.StoreResult, error)// nitro v3.12.2 daprovider/server_api/types.go:21type StoreResult struct {	SerializedDACert hexutil.Bytes `json:"serialized-da-cert,omitempty"`}
curl -X POST $DA_SERVER_URL \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "daprovider_commitChunkedStore",  "params": [    "0x1",    "<signature, hex>"  ]}'

How is this guide?