UNPKG

@frakt-protocol/frakt-sdk

Version:

Frakt SDK for interacting with frakt.xyz protocols

18 lines (17 loc) 1.14 kB
import { Connection, PublicKey, Keypair, TransactionInstruction } from '@solana/web3.js'; import { NodeWallet } from '@metaplex/js'; export declare const createFakeWallet: () => NodeWallet; export declare const findAssociatedTokenAddress: (walletAddress: PublicKey, tokenMintAddress: PublicKey) => Promise<PublicKey>; export declare const getTokenBalance: (pubkey: PublicKey, connection: Connection) => Promise<number>; export declare const createUninitializedAccount: (payer: PublicKey, amount: number) => { instructions: TransactionInstruction[]; signers: Keypair[]; accountPubkey: PublicKey; }; export declare const createTokenAccount: (payer: PublicKey, accountRentExempt: number, mint: PublicKey, owner: PublicKey) => { instructions: TransactionInstruction[]; signers: Keypair[]; accountPubkey: PublicKey; }; export declare const createAssociatedTokenAccountInstruction: (associatedTokenAddress: PublicKey, payer: PublicKey, walletAddress: PublicKey, splTokenMintAddress: PublicKey) => TransactionInstruction[]; export declare const deriveMetadataPubkeyFromMint: (nftMint: PublicKey) => Promise<PublicKey>;