-
#818
9e017ab5
Thanks @ErnoW! - Update api types for solApi: getTokenPrice is only available on mainnet -
Updated dependencies []:
- @moralisweb3/core@2.7.4
- @moralisweb3/api-utils@2.7.4
- @moralisweb3/sol-utils@2.7.4
-
#807
91bbd142
Thanks @sogunshola! - Corrected API to make call to correct url -
Updated dependencies []:
- @moralisweb3/core@2.7.3
- @moralisweb3/api-utils@2.7.3
- @moralisweb3/sol-utils@2.7.3
- Updated dependencies []:
- @moralisweb3/core@2.7.2
- @moralisweb3/api-utils@2.7.2
- @moralisweb3/sol-utils@2.7.2
- Updated dependencies []:
- @moralisweb3/core@2.7.1
- @moralisweb3/api-utils@2.7.1
- @moralisweb3/sol-utils@2.7.1
- Updated dependencies []:
- @moralisweb3/core@2.7.0
- @moralisweb3/api-utils@2.7.0
- @moralisweb3/sol-utils@2.7.0
- Updated dependencies []:
- @moralisweb3/core@2.6.7
- @moralisweb3/api-utils@2.6.7
- @moralisweb3/sol-utils@2.6.7
- Updated dependencies []:
- @moralisweb3/core@2.6.6
- @moralisweb3/api-utils@2.6.6
- @moralisweb3/sol-utils@2.6.6
- Updated dependencies []:
- @moralisweb3/core@2.6.5
- @moralisweb3/api-utils@2.6.5
- @moralisweb3/sol-utils@2.6.5
- Updated dependencies [
77eb29bf
]:- @moralisweb3/api-utils@2.6.4
- @moralisweb3/core@2.6.4
- @moralisweb3/sol-utils@2.6.4
- Updated dependencies []:
- @moralisweb3/core@2.6.3
- @moralisweb3/api-utils@2.6.3
- @moralisweb3/sol-utils@2.6.3
- Updated dependencies []:
- @moralisweb3/core@2.6.2
- @moralisweb3/api-utils@2.6.2
- @moralisweb3/sol-utils@2.6.2
- Updated dependencies [
bfea2ba5
]:- @moralisweb3/sol-utils@2.6.1
- @moralisweb3/core@2.6.1
- @moralisweb3/api-utils@2.6.1
- Updated dependencies []:
- @moralisweb3/core@2.6.0
- @moralisweb3/api-utils@2.6.0
- @moralisweb3/sol-utils@2.6.0
- Updated dependencies []:
- @moralisweb3/core@2.5.8
- @moralisweb3/api-utils@2.5.8
- @moralisweb3/sol-utils@2.5.8
- Updated dependencies []:
- @moralisweb3/core@2.5.7
- @moralisweb3/api-utils@2.5.7
- @moralisweb3/sol-utils@2.5.7
- Updated dependencies []:
- @moralisweb3/core@2.5.6
- @moralisweb3/api-utils@2.5.6
- @moralisweb3/sol-utils@2.5.6
-
#699
d79800ad
Thanks @ErnoW! - Fix parsing of API error messages, now the MoralisError will show themessage
that is returned from the api. -
Updated dependencies [
d79800ad
]:- @moralisweb3/core@2.5.5
- @moralisweb3/api-utils@2.5.5
- @moralisweb3/sol-utils@2.5.5
- Updated dependencies []:
- @moralisweb3/core@2.5.4
- @moralisweb3/api-utils@2.5.4
- @moralisweb3/sol-utils@2.5.4
- Updated dependencies []:
- @moralisweb3/core@2.5.3
- @moralisweb3/api-utils@2.5.3
- @moralisweb3/sol-utils@2.5.3
- Updated dependencies []:
- @moralisweb3/core@2.5.2
- @moralisweb3/api-utils@2.5.2
- @moralisweb3/sol-utils@2.5.2
- Updated dependencies []:
- @moralisweb3/core@2.5.1
- @moralisweb3/api-utils@2.5.1
- @moralisweb3/sol-utils@2.5.1
- #670
f6696b86
Thanks @3scava1i3r! - Added SolApi.token.getTokenPrice
- Updated dependencies [
c719cc2f
]:- @moralisweb3/core@2.5.0
- @moralisweb3/api-utils@2.5.0
- @moralisweb3/sol-utils@2.5.0
- Updated dependencies [
7fffd1e4
]:- @moralisweb3/api-utils@2.4.0
- @moralisweb3/core@2.4.0
- @moralisweb3/sol-utils@2.4.0
- Updated dependencies [
a0db370
]:- @moralisweb3/sol-utils@2.3.1
- @moralisweb3/core@2.3.1
- @moralisweb3/api-utils@2.3.1
- Updated dependencies []:
- @moralisweb3/core@2.3.0
- @moralisweb3/api-utils@2.3.0
- @moralisweb3/sol-utils@2.3.0
- Updated dependencies [
e56e44d
]:- @moralisweb3/sol-utils@2.2.0
- @moralisweb3/core@2.2.0
- @moralisweb3/api-utils@2.2.0
- Updated dependencies [
5bfb635
]:- @moralisweb3/api-utils@2.1.1
- @moralisweb3/core@2.1.1
- @moralisweb3/sol-utils@2.1.1
-
#608
5644d32
Thanks @b4rtaz! - Added a validation of a Solana address. -
Updated dependencies [
5644d32
,761d0d7
,d542326
]:- @moralisweb3/sol-utils@2.1.0
- @moralisweb3/core@2.1.0
- @moralisweb3/api-utils@2.1.0
-
#593
dbca06e
Thanks @ErnoW! - Update types for EvmApi, SolApi and Auth, based on api definitions -
Updated dependencies []:
- @moralisweb3/core@2.0.3
- @moralisweb3/api-utils@2.0.3
- @moralisweb3/sol-utils@2.0.3
- Updated dependencies []:
- @moralisweb3/core@2.0.2
- @moralisweb3/api-utils@2.0.2
- @moralisweb3/sol-utils@2.0.2
- Updated dependencies []:
- @moralisweb3/core@2.0.1
- @moralisweb3/api-utils@2.0.1
- @moralisweb3/sol-utils@2.0.1
-
639053e
Thanks @ErnoW! - # Release of v2.0This release contains many breaking changes as it moves from a Javascript SDK (for react-native, browser, and NodeJs) to a NodeJs-only SDK.
Note: we will still support the v1.x version as a
moralis-v1
package (see https://github.com/MoralisWeb3/Moralis-JS-SDK-v1).These changes are to focus on Backend-only features, to facilitate self-hosted servers. Below you will find an overview of removed features and how to replace them:
- Plugins: plugins in Moralis are mostly a wrapper around an API, where the API secret is managed on the moralis backend. When using the moralis sdk in NodeJs, you can safely implement your API secret, and implement any api (opensea/pinata etc.) directly without the need of utilities in the moralis sdk
- Connecting to EVM: If you want to connect to EVM chains client-side, then this sdk is not suitable anymore. There are other open-source libraries that will have lots of utilities that can help you with this (web3js, ethers, wagmi, useDapp, web3-react)
- Server interaction: interacting with the server can be done by installing the parse-server sdk (parse).
The new sdk comes with the following featurs:
Moralis.EvmApi
: A set of methods to interact and read from EVM chainsMoralis.SolApi
: A set of methods to interact and read from Solana networksMoralis.Auth
: Utilities to implement web3 authentication in NodeJs
To get started, simply call
Moralis.start({ apiKey: 'YOUR_API_KEY' })
Then you can access the apis via
Moralis.EvmApi.account.getNFTs(options)
Moralis.SolApi.account.getNFTs(options)
Moralis.Auth.requestMessage(options)
For more info see the docs: http://docs.moralis.io Or reach out in our forums: https://forum.moralis.io
- #523
ed75131
Thanks @sogunshola! - Adding sol-utils package to codebase.
-
#560
d413073
Thanks @ErnoW! - Improve Erc20Value logic by:- geters for Erc20 for:
token.decimals
,token.name
,token.symbol
,token.contractAddress
,token.chain
,token.logo
,token.logoHash
andtoken.thumbnail
, - adding an optional token reference for
Erc20Value
. This can be used by callingErc20Value.create(amount, { token })
- fixes and additions for output of
Erc20Value
:erc20Value.value
now returns the value in a decimal string"123.567"
erc20Value.amount
returns the Bignumber value withtout taking decimals into accounterc20Value.decimals
returns the decimalserc20Value.toNumber()
returns the value in a decimal number (or throws an error if the value is too big):123.456
erc20Value.display()
returns the value in a readable string with the token symbol if available:"123.456 LINK"
(or"123.456"
)
Moralis.EvmApi.getTokenBalances()
now returns anErc20Value
object with associated token information.
- geters for Erc20 for:
-
#535
279507c
Thanks @b4rtaz! - Replaced BigNumber from @ethersproject by own implementation. -
Updated dependencies [
6eae2a9
,0c47bae
,ed75131
,d413073
,639053e
,30b7f4b
,4683492
,7f0fc3f
,61b8759
,81effa1
,d10214e
,d525351
,36dd9a9
,9e67989
,01b7480
,d450294
,70e6227
,51e0446
,279507c
]:- @moralisweb3/api-utils@2.0.0
- @moralisweb3/core@2.0.0
- @moralisweb3/sol-utils@2.0.0
- Updated dependencies []:
- @moralisweb3/core@2.0.0-beta.11
- @moralisweb3/api-utils@2.0.0-beta.11
- @moralisweb3/sol-utils@2.0.0-beta.11
- Updated dependencies [
51e0446
]:- @moralisweb3/core@2.0.0-beta.10
- @moralisweb3/api-utils@2.0.0-beta.10
- @moralisweb3/sol-utils@2.0.0-beta.10
-
#562
4683492
Thanks @ErnoW! - Update type definition and resolvers after changes in the Evm Api -
Updated dependencies [
4683492
]:- @moralisweb3/api-utils@2.0.0-beta.9
- @moralisweb3/core@2.0.0-beta.9
- @moralisweb3/sol-utils@2.0.0-beta.9
-
#560
d413073
Thanks @ErnoW! - Improve Erc20Value logic by:- geters for Erc20 for:
token.decimals
,token.name
,token.symbol
,token.contractAddress
,token.chain
,token.logo
,token.logoHash
andtoken.thumbnail
, - adding an optional token reference for
Erc20Value
. This can be used by callingErc20Value.create(amount, { token })
- fixes and additions for output of
Erc20Value
:erc20Value.value
now returns the value in a decimal string"123.567"
erc20Value.amount
returns the Bignumber value withtout taking decimals into accounterc20Value.decimals
returns the decimalserc20Value.toNumber()
returns the value in a decimal number (or throws an error if the value is too big):123.456
erc20Value.display()
returns the value in a readable string with the token symbol if available:"123.456 LINK"
(or"123.456"
)
Moralis.EvmApi.getTokenBalances()
now returns anErc20Value
object with associated token information.
- geters for Erc20 for:
- Updated dependencies [
d413073
]:- @moralisweb3/api-utils@2.0.0-beta.8
- @moralisweb3/core@2.0.0-beta.8
- @moralisweb3/sol-utils@2.0.0-beta.8
-
#558
0c47bae
Thanks @b4rtaz! - Deleted redundant search parameters in API URLs. -
Updated dependencies [
0c47bae
]:- @moralisweb3/api-utils@2.0.0-beta.7
- @moralisweb3/core@2.0.0-beta.7
- @moralisweb3/sol-utils@2.0.0-beta.7
- #555
3f511ed
Thanks @ErnoW! - Include all files from/lib
in npm builds. This fixes a bug where only the index.js file and .d.ts files were included in builds.
- Updated dependencies [
36dd9a9
,3f511ed
]:- @moralisweb3/core@2.0.0-beta.6
- @moralisweb3/api-utils@2.0.0-beta.6
- @moralisweb3/sol-utils@2.0.0-beta.6
- Updated dependencies [
2948339
]:- @moralisweb3/api-utils@2.0.0-beta.5
- @moralisweb3/core@2.0.0-beta.5
- @moralisweb3/sol-utils@2.0.0-beta.5
-
Updated dependencies [
81effa1
,81effa1
,70e6227
]:- @moralisweb3/api-utils@2.0.0-alpha.4
- @moralisweb3/core@2.0.0-alpha.4
- @moralisweb3/sol-utils@2.0.0-alpha.4
- #523
ed75131
Thanks @sogunshola! - Adding sol-utils package to codebase.
-
#535
279507c
Thanks @b4rtaz! - Replaced BigNumber from @ethersproject by own implementation. -
Updated dependencies [
6eae2a9
,ed75131
,30b7f4b
,7f0fc3f
,61b8759
,d10214e
,01b7480
,d450294
,279507c
]:- @moralisweb3/api-utils@2.0.0-alpha.3
- @moralisweb3/core@2.0.0-alpha.3
- @moralisweb3/sol-utils@2.0.0-alpha.3