Socket
Socket
Sign inDemoInstall

@moralisweb3/sol-api

Package Overview
Dependencies
Maintainers
8
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moralisweb3/sol-api - npm Package Compare versions

Comparing version 2.0.0-beta.11 to 2.0.0

120

lib/generated/types.d.ts

@@ -6,17 +6,26 @@ /**

export interface paths {
"/account/{network}/{address}/balance": {
get: operations["balance"];
'/account/{network}/{address}/balance': {
/** Gets native balance owned by the given network and address */
get: operations['balance'];
};
"/account/{network}/{address}/tokens": {
get: operations["getSPL"];
'/account/{network}/{address}/tokens': {
/** Gets token balances owned by the given network and address */
get: operations['getSPL'];
};
"/account/{network}/{address}/nft": {
get: operations["getNFTs"];
'/account/{network}/{address}/nft': {
/** Gets NFTs owned by the given network and address */
get: operations['getNFTs'];
};
"/account/{network}/{address}/portfolio": {
get: operations["getPortfolio"];
'/account/{network}/{address}/portfolio': {
/** Gets the portfolio of the given network and address */
get: operations['getPortfolio'];
};
"/nft/{network}/{address}/metadata": {
get: operations["getNFTMetadata"];
'/nft/{network}/{address}/metadata': {
/** Gets the contract level metadata (mint, standard, name, symbol, metaplex) for the given network and contract */
get: operations['getNFTMetadata'];
};
'/token/{network}/{address}/price': {
/** Gets the token price (usd and native) for a given contract address and network */
get: operations['getTokenPrice'];
};
}

@@ -41,5 +50,5 @@ export interface components {

Portfolio: {
nativeBalance: components["schemas"]["NativeBalance"];
nfts: components["schemas"]["SPLNFT"][];
tokens: components["schemas"]["SPLTokenBalance"][];
nativeBalance: components['schemas']['NativeBalance'];
nfts: components['schemas']['SPLNFT'][];
tokens: components['schemas']['SPLTokenBalance'][];
};

@@ -59,11 +68,24 @@ MetaplexNFT: {

symbol: string;
metaplex: components["schemas"]["MetaplexNFT"];
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 native balance owned by the given network and address */
balance: {
parameters: {
path: {
network: "mainnet" | "devnet";
network: 'mainnet' | 'devnet';
address: string;

@@ -75,11 +97,17 @@ };

content: {
"application/json": components["schemas"]["NativeBalance"];
'application/json': components['schemas']['NativeBalance'];
};
};
400: {
content: {
'application/json': string;
};
};
};
};
/** Gets token balances owned by the given network and address */
getSPL: {
parameters: {
path: {
network: "mainnet" | "devnet";
network: 'mainnet' | 'devnet';
address: string;

@@ -91,11 +119,17 @@ };

content: {
"application/json": components["schemas"]["SPLTokenBalance"][];
'application/json': components['schemas']['SPLTokenBalance'][];
};
};
400: {
content: {
'application/json': string;
};
};
};
};
/** Gets NFTs owned by the given network and address */
getNFTs: {
parameters: {
path: {
network: "mainnet" | "devnet";
network: 'mainnet' | 'devnet';
address: string;

@@ -107,7 +141,13 @@ };

content: {
"application/json": components["schemas"]["SPLNFT"][];
'application/json': components['schemas']['SPLNFT'][];
};
};
400: {
content: {
'application/json': string;
};
};
};
};
/** Gets the portfolio of the given network and address */
getPortfolio: {

@@ -117,3 +157,3 @@ parameters: {

address: string;
network: "mainnet" | "devnet";
network: 'mainnet' | 'devnet';
};

@@ -124,7 +164,13 @@ };

content: {
"application/json": components["schemas"]["Portfolio"];
'application/json': components['schemas']['Portfolio'];
};
};
400: {
content: {
'application/json': string;
};
};
};
};
/** Gets the contract level metadata (mint, standard, name, symbol, metaplex) for the given network and contract */
getNFTMetadata: {

@@ -134,3 +180,3 @@ parameters: {

address: string;
network: "mainnet" | "devnet";
network: 'mainnet' | 'devnet';
};

@@ -141,7 +187,33 @@ };

content: {
"application/json": components["schemas"]["NFTMetadata"];
'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: {
address: string;
network: 'mainnet';
};
};
responses: {
200: {
content: {
'application/json': components['schemas']['SPLTokenPrice'];
};
};
400: {
content: {
'application/json': string;
};
};
};
};
}

@@ -148,0 +220,0 @@ export interface external {

8

package.json
{
"name": "@moralisweb3/sol-api",
"author": "Moralis",
"version": "2.0.0-beta.11",
"version": "2.0.0",
"license": "MIT",

@@ -28,6 +28,6 @@ "private": false,

"dependencies": {
"@moralisweb3/api-utils": "^2.0.0-beta.11",
"@moralisweb3/core": "^2.0.0-beta.11",
"@moralisweb3/sol-utils": "^2.0.0-beta.11"
"@moralisweb3/api-utils": "^2.0.0",
"@moralisweb3/core": "^2.0.0",
"@moralisweb3/sol-utils": "^2.0.0"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc