Search…
TransactionBadge
A component to get a badge based on a transaction.

Usage

import { TransactionBadge } from '@aragon/ui'
function App() {
return <TransactionBadge transaction="0x281c36aee91…c31ef3fc115" />
}

Demonstration

Props

transaction

TYPE
DEFAULT VALUE
String
None (required)
The transaction hash.
If this is not supplied or an invalid transaction hash is supplied, the badge will display "Invalid".

shorten

TYPE
DEFAULT VALUE
Bool
true
If true, only render the first and last four characters of the transaction hash (excluding the '0x' prefix).

networkType

TYPE
DEFAULT VALUE
String
main
Checks the type of network to get Etherscan's URL.

disabled

TYPE
DEFAULT VALUE
Bool
true
Disable the link.
Last modified 2mo ago
Copy link
On this page
Usage
Demonstration
Props