Import Contract Manifest and Metadata

post

/v1/contracts/manifests/import

Imports a manifest and contract-version metadata for the addresses in `contracts`. To update an existing manifest, set `update=true` and provide `manifestLayoutId`. For updates, `contracts` entries can include an address and metadata for versions associated with that manifest.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Match One Schema
Show Source
Nested Schema : ManifestAppendImportRequest
Type: object
Title: ManifestAppendImportRequest
Show Source
Nested Schema : ManifestUpdateImportRequest
Type: object
Title: ManifestUpdateImportRequest
Show Source
Nested Schema : contracts
Type: array
Minimum Number of Items: 1
Contract addresses with ABI, creation bytecode, and exactly one block reference.
Show Source
Nested Schema : manifest
Type: object
OpenZeppelin/Hardhat manifest JSON
Nested Schema : items
Type: object
Show Source
Match One Schema
Show Source
Nested Schema : abi
Type: array
Standard JSON ABI entries.
Show Source
Nested Schema : items
Type: object
Nested Schema : contracts
Type: array
Optional metadata updates for versions associated with `manifestLayoutId`. Omitted metadata leaves existing metadata unchanged, `null` clears it, and an object replaces it.
Show Source
Nested Schema : manifest
Type: object
OpenZeppelin/Hardhat manifest JSON
Nested Schema : items
Type: object
Show Source
Examples

Back to Top

Response

Supported Media Types

202 Response

Returns the accepted manifest import request.
Body ()
Root Schema : ManifestImportResult
Type: object
Result of an asynchronous contract manifest import request.
Show Source

400 Response

Validation failed.
Body ()
Root Schema : ErrorResponse
Type: object
Error response returned by the service.
Show Source
Nested Schema : upstreamError
Type: object
Additional Properties Allowed: true
Complete error object returned by the Besu node, including code, message, and data fields, when available.

500 Response

Unexpected service error.
Body ()
Root Schema : ErrorResponse
Type: object
Error response returned by the service.
Show Source
Nested Schema : upstreamError
Type: object
Additional Properties Allowed: true
Complete error object returned by the Besu node, including code, message, and data fields, when available.
Back to Top