@vyper-protocol/explorer-link-helper
v0.1.0
Published
Helper library to get Solana explorers url for given accounts and transaction
Downloads
1
Readme
Explorer Link Helper
Helper library to get Solana explorers url for given accounts and transaction
Installation
yarn add @vyper-protocol/explorer-link-helper
Support
We currently support the following explorers:
- Solana explorer
- Solscan
- Solana.fm
If you need more contact us or submit a PR
Usage
import { getExplorerLink } from "@vyper-protocol/rust-decimal-wrapper";
// https://explorer.solana.com/tx/65VTdMUcxMtLqUsRRif4HDjoM8sTCchE758oVNwF7kJorMZZHrDyJpfwtuyPKt25MuMzUUU9VgoGB14fMBBQnMm4?cluster=devnet
const solana = getExplorerLink("65VTdMUcxMtLqUsRRif4HDjoM8sTCchE758oVNwF7kJorMZZHrDyJpfwtuyPKt25MuMzUUU9VgoGB14fMBBQnMm4", { cluster: "devnet" });
// https://solscan.io/account/TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
const solscan = getExplorerLink("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", { explorer: "solscan" });
Getting Help
Join our Discord channel and post a message in #developers