TransactionProgress
Usage
function App() {
const [visible, setVisible] = useState(false)
const opener = useRef()
return (
<div>
<div ref={opener}>
<Button onClick={() => setVisible(true)}>Check transaction</Button>
</div>
<TransactionProgress
transactionHashUrl="https://etherscan.io/tx/0x5c50…2060"
progress={0.3}
visible={visible}
endTime={new Date(Date.now() + 100000)}
onClose={() => setVisible(false)}
opener={opener}
slow
/>
</div>
)
}Demonstration

Props
transactionHash
transactionHashprogress
progressendTime
endTimeslow
slowhandleClose
handleCloseLast updated
Was this helpful?
