/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/account/{network}/{address}/balance": { /** Gets the native balance owned by a given network and address. */ get: operations["balance"]; }; "/account/{network}/{address}/tokens": { /** Gets the token balances owned by a given network and address. */ get: operations["getSPL"]; }; "/account/{network}/{address}/nft": { /** Gets NFTs owned by a given network and address. */ get: operations["getNFTs"]; }; "/account/{network}/{address}/portfolio": { /** Gets the portfolio for a given network and address. */ get: operations["getPortfolio"]; }; "/nft/{network}/{address}/metadata": { /** Get the global NFT metadata for a given network and contract (mint, standard, name, symbol, metaplex). */ get: operations["getNFTMetadata"]; }; "/token/{network}/{address}/price": { /** Gets the token price (usd and native) for a given contract address and network. */ get: operations["getTokenPrice"]; }; } export interface components { schemas: { NativeBalance: { solana: string; lamports: string; }; SPLTokenBalance: { associatedTokenAddress: string; mint: string; name: string; symbol: string; amount: string; amountRaw: string; decimals: number; }; SPLNFT: { associatedTokenAddress: string; mint: string; name: string; symbol: string; }; Portfolio: { nativeBalance: components["schemas"]["NativeBalance"]; nfts: components["schemas"]["SPLNFT"][]; tokens: components["schemas"]["SPLTokenBalance"][]; }; MetaplexNFT: { metadataUri: string; masterEdition: boolean; isMutable: boolean; primarySaleHappened: boolean; sellerFeeBasisPoints: number; updateAuthority: string; }; NFTMetadata: { mint: string; standard: string; name: string; symbol: string; metaplex: components["schemas"]["MetaplexNFT"]; }; SPLNativePrice: { value: string; decimals: number; name: string; symbol: string; }; SPLTokenPrice: { nativePrice?: components["schemas"]["SPLNativePrice"]; usdPrice: number; exchangeAddress: string; exchangeName: string; }; }; } export interface operations { /** Gets the native balance owned by a given network and address. */ balance: { parameters: { path: { /** The network to query */ network: "mainnet" | "devnet"; /** The address for which the native balance will be checked */ address: string; }; }; responses: { 200: { content: { "application/json": components["schemas"]["NativeBalance"]; }; }; 400: { content: { "application/json": string; }; }; }; }; /** Gets the token balances owned by a given network and address. */ getSPL: { parameters: { path: { /** The network to query */ network: "mainnet" | "devnet"; /** The address for which token balances will be checked */ address: string; }; }; responses: { 200: { content: { "application/json": components["schemas"]["SPLTokenBalance"][]; }; }; 400: { content: { "application/json": string; }; }; }; }; /** Gets NFTs owned by a given network and address. */ getNFTs: { parameters: { path: { /** The network to query */ network: "mainnet" | "devnet"; /** The address of the contract */ address: string; }; }; responses: { 200: { content: { "application/json": components["schemas"]["SPLNFT"][]; }; }; 400: { content: { "application/json": string; }; }; }; }; /** Gets the portfolio for a given network and address. */ getPortfolio: { parameters: { path: { /** The network to query */ network: "mainnet" | "devnet"; /** The address of the token contract */ address: string; }; }; responses: { 200: { content: { "application/json": components["schemas"]["Portfolio"]; }; }; 400: { content: { "application/json": string; }; }; }; }; /** Get the global NFT metadata for a given network and contract (mint, standard, name, symbol, metaplex). */ getNFTMetadata: { parameters: { path: { /** The network to query */ network: "mainnet" | "devnet"; /** The address of the contract */ address: string; }; }; responses: { 200: { content: { "application/json": components["schemas"]["NFTMetadata"]; }; }; 400: { content: { "application/json": string; }; }; }; }; /** Gets the token price (usd and native) for a given contract address and network. */ getTokenPrice: { parameters: { path: { /** The network to query */ network: "mainnet"; /** The address of the token contract */ address: string; }; }; responses: { 200: { content: { "application/json": components["schemas"]["SPLTokenPrice"]; }; }; 400: { content: { "application/json": string; }; }; }; }; } export interface external {} export default class SolanaApi { static initialize: (options: {apiKey?: string, serverUrl?: string, Moralis?: any}) => void; static Account: { balance: (options: operations["balance"]["parameters"]["path"]) => Promise; getSPL: (options: operations["getSPL"]["parameters"]["path"]) => Promise; getNFTs: (options: operations["getNFTs"]["parameters"]["path"]) => Promise; getPortfolio: (options: operations["getPortfolio"]["parameters"]["path"]) => Promise; } static NFT: { getNFTMetadata: (options: operations["getNFTMetadata"]["parameters"]["path"]) => Promise; } static Token: { getTokenPrice: (options: operations["getTokenPrice"]["parameters"]["path"]) => Promise; } }