@moralisweb3/sol-api
Advanced tools
Comparing version 2.0.0-beta.11 to 2.0.0
@@ -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 { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
54291
880
1
Updated@moralisweb3/core@^2.0.0