Skip to content

ModalRpcMetadata

ModalRpcMetadata = { header?: { icon?: string; title?: string; }; i18n?: I18nConfig; targetInteraction?: InteractionTypeKey; } & { dismissActionTxt?: string; isDismissible: true; } | { dismissActionTxt?: never; isDismissible?: false; }

Defined in: types/rpc/displayModal.ts:50

RPC metadata for the modal, used on top level modal configuration

optional header?: { icon?: string; title?: string; }

optional icon?: string

optional title?: string

optional i18n?: I18nConfig

Some i18n override for the displayed modal (i.e. update the displayed text only for this modal)

optional targetInteraction?: InteractionTypeKey