Skip to main content

Batch Processing

Blockvault Batch Processing (v1.0.0)

Download OpenAPI specification:Download

API Documentation for Blockvault Batch Processing

Create a batch

Authorizations:
BearerAuth
Request Body schema: application/json
required

Create a batch where batch parts can be written to. At a later point in time the batch can be committed and all included messages will be sent to Provenance in a single transaction.

uuid
string <uuid>

Batch identifier

Responses

Request samples

Content type
application/json
{
  • "uuid": "0a2776b4-32bb-4739-af97-853450edb296"
}

Response samples

Content type
application/json
{
  • "uuid": "0a2776b4-32bb-4739-af97-853450edb296"
}

Commit a batch

Commits batch to Provenance in a single transaction.

Authorizations:
BearerAuth
path Parameters
required
object (BatchUuid)

Batch identifier

Responses

Response samples

Content type
application/json
{
  • "tx_hash": "3ea1b237f303455d1e7c04fc128168cf9a6b903759b8b06bc05315e9333da1ae",
  • "height": 18621389
}

Create a batch part

Append a batch part to an existing batch.

Authorizations:
BearerAuth
path Parameters
required
object (BatchUuid)

Batch identifier

Request Body schema: application/json
required
One of
required
Array of objects <protobuf any> [ items <protobuf any > ]
Array
type_url
required
string

type_url

value
required
string

base64 encoded

Responses

Request samples

Content type
application/json
Example
{
  • "messages": [
    ]
}

Response samples

Content type
application/json
{
  • "message": "failed to use fee grant: granter: tp19n4rs3lsdx4j2m57ahnurfxq7rmpmzgzer6nkc, grantee: tp1gv3xy994xm7a850cfqs8hk5a5npxxvx4zzxev6"
}

Upload a file

Upload a file representing a scope record to an existing batch.

The following multipart headers are required:

* x-provlabs-scope-id

* x-provlabs-party-type
Authorizations:
BearerAuth
path Parameters
required
object (BatchUuid)

Batch identifier

Responses

Response samples

Content type
application/json
{
  • "message": "failed to use fee grant: granter: tp19n4rs3lsdx4j2m57ahnurfxq7rmpmzgzer6nkc, grantee: tp1gv3xy994xm7a850cfqs8hk5a5npxxvx4zzxev6"
}