Skip to main content

Summary

ComponentPurpose
NormalizedEventsListList of events; configurable row (default, by category, or custom).
NormalizedEventRowDefault row: category, from/to, amount, tx link.
NormalizedEventRowByCategoryPicks ContractCallEventRow for contract_call, else NormalizedEventRow.
ContractCallEventRowRow for contract_call: method, parameters, token approved.

NormalizedEventsListProps

PropTypeDefault
eventsNormalizedEvent[]
classNamestring""
listClassNamestring”space-y-3”
renderEvent(event, index) => ReactNode
EventRowComponentComponentType with event, index
useCategoryComponentsbooleantrue
eventRowPropsOmit NormalizedEventRowProps, “event”
emptyMessageReactNode”No events”

NormalizedEventRowProps

PropType
eventNormalizedEvent
explorerUrlstring | null
classNamestring
badgeClassNamestring
contentClassNamestring
amountDecimalsnumber

ContractCallEventRowProps

Same as NormalizedEventRowProps with event typed as NormalizedEvent and category “contract_call”.

NormalizedEventRowByCategoryProps

Same as NormalizedEventRowProps.

Styles

Import the built Tailwind output:
import "@alphscan/sdk-react-ui/styles.css";
Components use Tailwind utility classes and CSS variables (e.g. var(—alphscan-badge-bg)) for theming.