GET
/
schemas
/
{name}
Get contract schema.
curl --request GET \
  --url https://{environment}.garden.finance/v2/schemas/{name} \
  --header 'garden-app-id: <api-key>'
{
  "status": "Ok",
  "error": "<string>",
  "result": {
    "name": "evm:htlc",
    "schema": {}
  }
}
Retrieve the schema with the given name.

Authorizations

garden-app-id
string
header
required

If you do not yet have an app ID, please follow these steps.

Path Parameters

name
required
Available options:
evm:htlc,
evm:htlc_erc20,
solana:htlc,
solana:htlc_spltoken,
starknet:htlc,
starknet:htlc_erc20

Response

200 - application/json

The ABI for EVM contracts or IDL for Solana contracts.

The response is of type object.