0.0.14 • Published 2 years ago
@mintee/wrapped-connection v0.0.14
wrapped-connection
A simple wrapper around the Solana's Connection
class that adds a few useful features, especially for compressed NFTs.
I got this code form Metaplex: Compression-example
install
npm install @mintee/wrapped-connection
Usage
import { WrappedConnection } from "@mintee/wrapped-connection";
const keypair = new Keypair();
const connectionWrapper = WrappedConnection.getConnectionWrapper(
"https://api.mainnet-beta.solana.com",
keypair
);
const assetInfo = await connectionWrapper.getAsset(assetId);