Skip to content

Handlers

Handlers are callbacks that the Ethereum application calls through the Ethereum plugin SDK to parse and display a smart contract.

This is the list of all handlers that each plugin must define:

// Functions to implement in the plugin
void handle_init_contract(ethPluginInitContract_t *parameters);
void handle_provide_parameter(ethPluginProvideParameter_t *parameters);
void handle_finalize(ethPluginFinalize_t *parameters);
void handle_provide_token(ethPluginProvideInfo_t *parameters);
void handle_query_contract_id(ethQueryContractID_t *parameters);
void handle_query_contract_ui(ethQueryContractUI_t *parameters);

Please look at the sequence diagram to better understand at which step each handler is called.