Register Contract Endpoints

post

{baseUrl}/v1/register

Registers contract endpoint templates. The Postman collection contains two distinct POST /register requests using the same HTTP path: one for the wholesale CBDC token/holdable contract and one for the account/ERC-5982/UUPS contract. Both request variants are represented below as named examples.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Additional Properties Allowed: true
Request shape used by both POST /register variants in the Postman collection.
Show Source
Nested Schema : endpoints
Type: array
Show Source
Nested Schema : readConfigs
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : writeConfigs
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : items
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : args
Type: array
Show Source
Nested Schema : contractMethod
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : decode
Type: object
Additional Properties Allowed: true
Show Source
Nested Schema : decode
Type: object
Additional Properties Allowed: true
Show Source
Examples

Back to Top

Response

Supported Media Types

200 Response

Contract template registered successfully.
Body ()
Root Schema : Register_SuccessResponse
Type: object
Show Source
Nested Schema : RegisteredSchema
Type: object
Show Source
Nested Schema : combinedApis
Type: array
Show Source
Nested Schema : endpoints
Type: array
Show Source
Nested Schema : readConfigs
Type: object
Additional Properties Allowed: true
Nested Schema : writeConfigs
Type: object
Additional Properties Allowed: true
Nested Schema : items
Type: object
Additional Properties Allowed: true
Nested Schema : items
Type: object
Additional Properties Allowed: true

400 Response

The wrapper rejected the request before it could complete a downstream call.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

401 Response

A valid Bearer token with a supported user claim is required.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

415 Response

Content-Type must be application/json.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source

502 Response

The wrapper could not complete the downstream call.
Body ()
Root Schema : Wrapper_Error
Type: object
Show Source
Back to Top