Skip to content

Trigger Import API ​

Trigger import endpoints help generate trigger drafts from external descriptions: EVM ABI, Substrate metadata/pallets, Solana IDL, and source metadata.

POST /api/triggers/import/evm ​

Loads and normalizes EVM ABI entries.

Arguments: none.

Payload: EVM ABI import input. Usually contains ABI JSON or ABI entries.

FieldRequiredDescription
projectYesProject fullname.
sourceYesEVM source name/fullname.
contractRequired if abi is missingContract address.
abiRequired if contract is missingABI JSON string.

Response: EvmAbiImportResult.

This endpoint only returns ABI import entries. It does not save triggers; save selected trigger drafts separately with PUT /api/triggers/:fullname.

POST /api/triggers/import/evm/abi ​

Tries to load ABI by contract address.

Arguments: none.

Payload:

FieldRequiredDescription
sourceYesEVM source name/fullname.
contractYesEVM contract address.

Response: EvmAbiResult.

POST /api/triggers/import/evm/drafts ​

Generates EVM trigger drafts from ABI.

Arguments: none.

Payload: EVM import config from import wizard.

Common fields:

FieldRequiredDescription
projectYesProject fullname.
sourceYesEVM source name/fullname.
categoryNoCategory for generated triggers.
contractNoContract address.
abiNoABI JSON string.
abiSourceOverrideNoprovided or auto.
includeEventsNoWhether to generate event triggers.
includeCallsNoWhether to generate call/transaction triggers.

Response: TriggerImportDraftsResult.

POST /api/triggers/import/hypercore/drafts ​

Generates HyperCore trigger drafts from the selected runtime source and actions.

Arguments: none.

Payload:

FieldRequiredDescription
projectYesProject fullname.
sourceYesHyperCore runtime source.
actionTypesNoAction types to include.

Response contains a drafts array.

POST /api/triggers/import/solana/idl ​

Tries to load Solana IDL by Program ID.

Arguments: none.

Request body:

FieldRequiredDescription
sourceYesSolana source name/fullname.
programIdYesPublic key of the Solana program.

Response: Solana IDL metadata object with source, programId, IDL/metadata account address, and idl.

POST /api/triggers/import/solana/drafts ​

Generates Solana trigger drafts from IDL.

Arguments: none.

Request body:

FieldRequiredDescription
projectYesProject fullname.
sourceYesSolana source name/fullname.
programIdYesPublic key of the Solana program.
idlYesSolana IDL JSON object or string.
categoryNoCategory for generated triggers.
includeEventsNoWhether to include program events.
includeCallsNoWhether to include instructions/calls.

Response: TriggerImportDraftsResult.

POST /api/triggers/import/substrate/drafts ​

Generates Substrate trigger drafts from metadata/pallet selection.

Arguments: none.

Payload: Substrate import config from import wizard.

Common fields:

FieldRequiredDescription
projectYesProject fullname.
sourceYesSubstrate source name/fullname.
palletsOne ofSelected pallets/modules.
entriesOne ofSelected entries: { pallet, kind, name }, where kind is event or call.
includeEventsNoWhether pallet import includes events.
includeCallsNoWhether pallet import includes calls.
defaultsTemplateNoDefaults template override object.
metaTemplateNoMetadata template override object.
labelsTemplateNoLabels template override object.
executionPolicyNoExecution policy override for generated drafts.

Response: TriggerImportDraftsResult.

GET /api/triggers/substrate/source ​

Returns Substrate source info used by import wizard.

Arguments:

ArgumentLocationDescription
sourceQuerySubstrate data source fullname/name.

Payload: none.

Response: SubstrateSourceInfo.

GET /api/triggers/substrate/pallets ​

Returns list of Substrate pallets for selected source.

Arguments:

ArgumentLocationDescription
sourceQuerySubstrate data source fullname/name.

Payload: none.

Response: SubstratePalletSummary[].

GET /api/triggers/substrate/pallet ​

Returns metadata of a specific Substrate pallet.

Arguments:

ArgumentLocationDescription
sourceQuerySubstrate data source fullname/name.
palletQueryPallet/module name.

Payload: none.

Response: SubstratePalletMetadata.