Skip to content

Trigger Import API ​

Trigger import endpoints ayudan a generar trigger drafts desde descripciones externas: EVM ABI, Substrate metadata/pallets, Solana IDL y source metadata.

POST /api/triggers/import/evm ​

Carga y normaliza EVM ABI entries.

Arguments: ninguno.

Payload: EVM ABI import input. Normalmente contiene ABI JSON o ABI entries.

FieldRequiredDescription
projectSíProject fullname.
sourceSíEVM source name/fullname.
contractRequired if abi is missingContract address.
abiRequired if contract is missingABI JSON string.

Respuesta: EvmAbiImportResult.

Este endpoint solo devuelve ABI import entries. No guarda triggers; los drafts seleccionados se guardan por separado con PUT /api/triggers/:fullname.

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

Intenta cargar ABI por contract address.

Arguments: ninguno.

Payload:

FieldRequiredDescription
sourceSíEVM source name/fullname.
contractSíEVM contract address.

Respuesta: EvmAbiResult.

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

Genera EVM trigger drafts desde ABI.

Arguments: ninguno.

Payload: EVM import config from import wizard.

Common fields:

FieldRequiredDescription
projectSíProject fullname.
sourceSíEVM source name/fullname.
categoryNoCategory for generated triggers.
contractNoContract address.
abiNoABI JSON string.
abiSourceOverrideNoprovided o auto.
includeEventsNoWhether to generate event triggers.
includeCallsNoWhether to generate call/transaction triggers.

Respuesta: TriggerImportDraftsResult.

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

Genera HyperCore trigger drafts desde el runtime source y las actions seleccionadas.

Argumentos: ninguno.

Payload:

CampoObligatorioDescripción
projectSíFullname del project.
sourceSíRuntime source de HyperCore.
actionTypesNoTipos de action que se incluirán.

La respuesta contiene un array drafts.

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

Intenta cargar Solana IDL por Program ID.

Cuerpo de request:

CampoObligatorioDescripción
sourceSíSolana source name/fullname.
programIdSíPublic key del Solana program.

Respuesta: metadata de Solana IDL con source, programId, dirección de IDL/metadata account e idl.

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

Genera Solana trigger drafts desde IDL.

Cuerpo de request:

CampoObligatorioDescripción
projectSíProject fullname.
sourceSíSolana source name/fullname.
programIdSíPublic key del Solana program.
idlSíSolana IDL JSON object o string.
categoryNoCategory para los triggers generados.
includeEventsNoIncluir program events.
includeCallsNoIncluir instructions/calls.

Respuesta: TriggerImportDraftsResult.

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

Genera Substrate trigger drafts desde metadata/pallet selection.

Arguments: ninguno.

Payload: Substrate import config from import wizard.

Common fields:

FieldRequiredDescription
projectSíProject fullname.
sourceSíSubstrate 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.

Respuesta: TriggerImportDraftsResult.

GET /api/triggers/substrate/source ​

Devuelve Substrate source info usada por import wizard.

Arguments:

ArgumentLocationDescription
sourceQuerySubstrate data source fullname/name.

Payload: ninguno.

Respuesta: SubstrateSourceInfo.

GET /api/triggers/substrate/pallets ​

Devuelve lista de Substrate pallets para el source elegido.

Arguments:

ArgumentLocationDescription
sourceQuerySubstrate data source fullname/name.

Payload: ninguno.

Respuesta: SubstratePalletSummary[].

GET /api/triggers/substrate/pallet ​

Devuelve metadata de un Substrate pallet concreto.

Arguments:

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

Payload: ninguno.

Respuesta: SubstratePalletMetadata.