Generate a Wrapper API Specification and Postman Collection
You can use Blockchain App Builder to create filtered token and account/identity endpoint specification files and a matching Postman collection.
Confirm that the package.json file includes hardhat-plugin-obp-besu-wrapper-api and that the Hardhat configuration imports it. Select a generated token package with a manifest and compiled token/account artifacts. The tool discovers composed packages from their generated manifest and also supports compatible imported reference-project manifests. It does not deploy or start a wrapper API service. The wrapper API service is already run as part of instance setup.
- Generate token and account specifications.
- Open Developer Tools and select Generate Wrapper API Specification and Postman Collection.
- In Configuration, select the Hardhat project, token package, and an output folder inside the project.
- In Mapping, review the token APIs and account/identity APIs. Keep Generate Wrapper APIs selected for each method that will remain in the endpoint specification. Edit the endpoint path where required.
- Select Generate to write the filtered token and account specification JSON files and the Postman collection.
- Add ORDS Swagger/OpenAPI endpoints.
- In the Mapping view, selected ORDS API. The tool supports ORDS API input only.
- Select an ORDS Swagger/OpenAPI JSON file.
- Generate the wrapper assets again.
- Create a combined API, which defines a sequential workflow that combines selected token or account methods into one wrapper API endpoint.
- In Mapping, select Use in Combined API for each eligible method.
- Select Create Combined API.
- Enter the combined API name and endpoint path.
- Review and reorder the selected steps. For each step, map its request-payload source fields.
- Save the combined API draft, then select Generate.
- Register specifications with a wrapper API service.
- Ensure that a wrapper API service is running and select the Deploy tab.
- Select a generated token specification, account specification, both specifications, or provide a custom JSON body.
- Enter the wrapper API host URL.
- Select an Oracle Blockchain Platform Besu environment so the request can reuse its authentication and TLS settings.
- Review the registration preview and register the selected specifications.
Registration posts to the wrapper API service's /register endpoint. The tool can use a selected Oracle Blockchain Platform environment's private CA path or explicit self-signed setting for the registration request; it does not deploy the service itself.
Troubleshooting
| Condition | Resolution |
|---|---|
| Artifacts or manifest are missing | Compile the selected project and confirm that the generated/imported package files exist. |
| No endpoints are generated | Select at least one method for wrapper API generation, or save at least one valid combined API. |
| ORDS generation fails | Provide an ORDS Swagger/OpenAPI JSON file and confirm that the project plug-in supports the --ords-swagger option. Inspect the full plug-in log for schema or operation errors.
|
| Combined API is rejected | Check the API name/path, ordered steps, and request-field mappings, then save the draft again. |
| Registration is unavailable | Generate endpoint specification files first, then select an Oracle Blockchain Platform Besu environment and provide a reachable wrapper API host URL. |