Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Tx /> #6

Closed
talentlessguy opened this issue Aug 26, 2021 · 0 comments · Fixed by #9
Closed

<Tx /> #6

talentlessguy opened this issue Aug 26, 2021 · 0 comments · Fixed by #9

Comments

@talentlessguy
Copy link
Contributor

talentlessguy commented Aug 26, 2021

Related: #3 #2

Description

<Tx /> is a React component to display a single transaction information. There are 3 states of a transaction - pending, active and failed.

UI

Pending: image

Success: image

Example

<Tx
  status={'pending' | 'success' | 'fail'}
  title="Swap X for Y"
  hash="0x..."
  chainId={137} /* based on chain detect the provider link */
  explorerUrl="https://polygonscan.com" /* if this is passed then `chainId` is ignored */
  provider={provider} // if provided, then chainId is auto-detected, as well as the tx title and status
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant