Generating a BlockchainExplorer URL
By presenting an Etherscan URL, we can get the transaction history of an item and show it to the user.
You can get the transaction history of an item, including the TxHash
using SDK.getItemLogs()
.
The NetworkId
for each item can be referenced by Item.networkId
.
Etherscanâ
For those with the NetworkId
as 1
or 4
, the below URL can be used.
Creating a URL to track the transaction for Etherscanâ
Mainnet(NetworkId=1)
https://etherscan.io/tx/[TxHash]
Rinkeby(NetworkId=4)
https://rinkeby.etherscan.io/tx/[TxHash]
Matic Explorerâ
For those with the NetworkId
as 137
or 80001
, the below URL can be used.
Creating a URL to track the transaction for maticâ
Mainnet(NetworkId=137)
https://explorer-mainnet.maticvigil.com/tx/[TxăăăˇăĽ]
Mumbai(NetworkId=80001)
https://explorer-mumbai.maticvigil.com/tx/[TxăăăˇăĽ]