Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vyper-protocol/explorer-link-helper

Helper library to get Solana explorers url for given accounts and transaction
https://github.com/vyper-protocol/explorer-link-helper

explorer solana solana-client

Last synced: 3 days ago
JSON representation

Helper library to get Solana explorers url for given accounts and transaction

Awesome Lists containing this project

README

        

# Explorer Link Helper



explorer-link-helper is released under the MIT license.


Current npm package version.


Follow @VyperProtocol

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

```ts
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](https://discord.gg/CVsFvY9G) and post a message in #developers