Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1014 Bytes

generate-types.md

File metadata and controls

30 lines (18 loc) · 1014 Bytes

Generate Types

Generate Typescript types

Endpoint: /api/1.0/generateTypes

Authenticated Request: Yes

Method: POST

Request Body Parameters

{% hint style="info" %} Either abi OR bundleId is required {% endhint %}

Parameter Name Data Type (Required) Description
abi JSON Array (N) The ABI definition to generate types from
bundleId UUID (N) The EPM bundle id (Bundle.id) to generate types from
name string (N) The name to use for the generated contract types. Default is "MyContract"

Response Body

Parameter Name Data Type Description
status string Will be "success"