Skip to content

Latest commit

 

History

History
1782 lines (1319 loc) · 87.2 KB

CHANGELOG.md

File metadata and controls

1782 lines (1319 loc) · 87.2 KB

moralis

2.23.1

Patch Changes

  • #1166 7e2b9ffc7 Thanks @b4rtaz! - Updated the response of the getBlockStats endpoint.

  • Updated dependencies [7e2b9ffc7]:

    • @moralisweb3/common-evm-utils@2.23.1
    • @moralisweb3/evm-api@2.23.1
    • @moralisweb3/api-utils@2.23.1
    • @moralisweb3/aptos-api@2.23.1
    • @moralisweb3/auth@2.23.1
    • @moralisweb3/common-aptos-utils@2.23.1
    • @moralisweb3/common-auth-utils@2.23.1
    • @moralisweb3/common-core@2.23.1
    • @moralisweb3/common-sol-utils@2.23.1
    • @moralisweb3/common-streams-utils@2.23.1
    • @moralisweb3/sol-api@2.23.1
    • @moralisweb3/streams@2.23.1

2.23.0

Minor Changes

  • #1164 18c36c8b0 Thanks @b4rtaz! - This version implements breaking changes in the Moralis EVM API.

    Deleted endpoints:

    • getErc20Approvals,
    • getErc20Burns,
    • getErc20Mints,
    • getErc20Transfers,
    • searchNFTs.

    New endpoints:

    • getBlockStats,
    • getNFTCollectionStats,
    • getNFTTokenStats,
    • getTokenStats,
    • getWalletStats.

    Updated endpoints:

    • getTokenTransfers, getNFTs, getWalletNFTCollections, getNFTTrades, getNFTTransfers, getContractNFTTransfers, getNFTOwners, getTokenAddressTransfers, getWalletTokenIdTransfers, getAllTokenIds, getNFTTransfersFromToBlock, getNFTTransfersByBlock, getTokenIdOwners, getTransactions, getContractEvents - the total field in the response is not available anymore, the disable_total parameter is now removed,
    • getNFTTransfers - doesn't support the direction parameter anymore,
    • getLogsByAddress - the topic0 parameter is now required, topic1, topic2 and topic3 are now removed.

Patch Changes

  • Updated dependencies [18c36c8b0]:
    • @moralisweb3/common-evm-utils@2.23.0
    • @moralisweb3/evm-api@2.23.0
    • @moralisweb3/api-utils@2.23.0
    • @moralisweb3/aptos-api@2.23.0
    • @moralisweb3/auth@2.23.0
    • @moralisweb3/common-aptos-utils@2.23.0
    • @moralisweb3/common-auth-utils@2.23.0
    • @moralisweb3/common-core@2.23.0
    • @moralisweb3/common-sol-utils@2.23.0
    • @moralisweb3/common-streams-utils@2.23.0
    • @moralisweb3/sol-api@2.23.0
    • @moralisweb3/streams@2.23.0

2.22.5

Patch Changes

  • a1dca27df Thanks @b4rtaz! - Extend the arguments of the getContractEvents endpoint to include the cursor property.

  • Updated dependencies [a1dca27df]:

    • @moralisweb3/common-evm-utils@2.22.5
    • @moralisweb3/evm-api@2.22.5
    • @moralisweb3/api-utils@2.22.5
    • @moralisweb3/aptos-api@2.22.5
    • @moralisweb3/auth@2.22.5
    • @moralisweb3/common-aptos-utils@2.22.5
    • @moralisweb3/common-auth-utils@2.22.5
    • @moralisweb3/common-core@2.22.5
    • @moralisweb3/common-sol-utils@2.22.5
    • @moralisweb3/common-streams-utils@2.22.5
    • @moralisweb3/sol-api@2.22.5
    • @moralisweb3/streams@2.22.5

2.22.4

Patch Changes

  • #1155 7a646d14b Thanks @b4rtaz! - Added a new endpoint method to the EVM API module: Moralis.EvmApi.wallets.getWalletActiveChains.

  • Updated dependencies [7a646d14b]:

    • @moralisweb3/common-evm-utils@2.22.4
    • @moralisweb3/evm-api@2.22.4
    • @moralisweb3/api-utils@2.22.4
    • @moralisweb3/aptos-api@2.22.4
    • @moralisweb3/auth@2.22.4
    • @moralisweb3/common-aptos-utils@2.22.4
    • @moralisweb3/common-auth-utils@2.22.4
    • @moralisweb3/common-core@2.22.4
    • @moralisweb3/common-sol-utils@2.22.4
    • @moralisweb3/common-streams-utils@2.22.4
    • @moralisweb3/sol-api@2.22.4
    • @moralisweb3/streams@2.22.4

2.22.3

Patch Changes

  • #1150 da8400258 Thanks @b4rtaz! - Fixed the Moralis.EvmApi.balance.getNativeBalancesForAddresses method in the EVM API module.

  • Updated dependencies [da8400258]:

    • @moralisweb3/common-evm-utils@2.22.3
    • @moralisweb3/evm-api@2.22.3
    • @moralisweb3/api-utils@2.22.3
    • @moralisweb3/aptos-api@2.22.3
    • @moralisweb3/auth@2.22.3
    • @moralisweb3/common-aptos-utils@2.22.3
    • @moralisweb3/common-auth-utils@2.22.3
    • @moralisweb3/common-core@2.22.3
    • @moralisweb3/common-sol-utils@2.22.3
    • @moralisweb3/common-streams-utils@2.22.3
    • @moralisweb3/sol-api@2.22.3
    • @moralisweb3/streams@2.22.3

2.22.2

Patch Changes

  • #1146 a41684c26 Thanks @b4rtaz! - Added new configuration: streamsSecret to the Moralis.start method. This option allows you to specify a custom secret used by the Moralis.Streams.verifySignature function.

  • Updated dependencies [a41684c26]:

    • @moralisweb3/streams@2.22.2
    • @moralisweb3/api-utils@2.22.2
    • @moralisweb3/aptos-api@2.22.2
    • @moralisweb3/auth@2.22.2
    • @moralisweb3/common-aptos-utils@2.22.2
    • @moralisweb3/common-auth-utils@2.22.2
    • @moralisweb3/common-core@2.22.2
    • @moralisweb3/common-evm-utils@2.22.2
    • @moralisweb3/common-sol-utils@2.22.2
    • @moralisweb3/common-streams-utils@2.22.2
    • @moralisweb3/evm-api@2.22.2
    • @moralisweb3/sol-api@2.22.2

2.22.1

Patch Changes

  • #1142 a9ba7092f Thanks @b4rtaz! - Added new chains to the EvmChain class: ARBITRUM_TESTNET, RONIN, OPTIMISM and AVALANCHE_TESTNET.

  • Updated dependencies [a9ba7092f]:

    • @moralisweb3/common-evm-utils@2.22.1
    • @moralisweb3/streams@2.22.1
    • @moralisweb3/api-utils@2.22.1
    • @moralisweb3/aptos-api@2.22.1
    • @moralisweb3/auth@2.22.1
    • @moralisweb3/common-aptos-utils@2.22.1
    • @moralisweb3/common-auth-utils@2.22.1
    • @moralisweb3/common-core@2.22.1
    • @moralisweb3/common-sol-utils@2.22.1
    • @moralisweb3/common-streams-utils@2.22.1
    • @moralisweb3/evm-api@2.22.1
    • @moralisweb3/sol-api@2.22.1

2.22.0

Minor Changes

  • #1132 9dc253b1e Thanks @b4rtaz! - The getTokenPrice API method from the Sol API module returns the nativePrice.value property as a string from now. Also the nativePrice object is optional now.

Patch Changes

  • Updated dependencies [45fcd84da, 9dc253b1e]:
    • @moralisweb3/common-evm-utils@2.22.0
    • @moralisweb3/common-sol-utils@2.22.0
    • @moralisweb3/sol-api@2.22.0
    • @moralisweb3/api-utils@2.22.0
    • @moralisweb3/aptos-api@2.22.0
    • @moralisweb3/auth@2.22.0
    • @moralisweb3/common-aptos-utils@2.22.0
    • @moralisweb3/common-auth-utils@2.22.0
    • @moralisweb3/common-core@2.22.0
    • @moralisweb3/common-streams-utils@2.22.0
    • @moralisweb3/evm-api@2.22.0
    • @moralisweb3/streams@2.22.0

2.21.0

Minor Changes

  • #1125 465394674 Thanks @b4rtaz! - Breaking change: Deleted default exports from @moralisweb3/common-core, @moralisweb3/aptos-api, @moralisweb3/streams, @moralisweb3/evm-api, @moralisweb3/sol-api and @moralisweb3/auth packages. The moralis package is unchanged.

Patch Changes

  • #1128 98035a86d Thanks @b4rtaz! - Added the new endpoint method to the EVM API module: Moralis.EvmApi.utils.reviewContracts.

  • Updated dependencies [465394674, 98035a86d]:

    • @moralisweb3/common-core@2.21.0
    • @moralisweb3/aptos-api@2.21.0
    • @moralisweb3/streams@2.21.0
    • @moralisweb3/evm-api@2.21.0
    • @moralisweb3/sol-api@2.21.0
    • @moralisweb3/auth@2.21.0
    • @moralisweb3/common-evm-utils@2.21.0
    • @moralisweb3/api-utils@2.21.0
    • @moralisweb3/common-aptos-utils@2.21.0
    • @moralisweb3/common-auth-utils@2.21.0
    • @moralisweb3/common-sol-utils@2.21.0
    • @moralisweb3/common-streams-utils@2.21.0

2.20.0

Minor Changes

  • #1118 0f5444575 Thanks @b4rtaz! - Breaking change: The getErc20Transfers method returns instances of the EvmErc20Transfer class from now. Before this method has returned instances of the Erc20Transfer class.

  • #1123 8a3bef8c2 Thanks @b4rtaz! - Breaking change: Deleted support for Cronos Testnet and Avalanche Testnet.

  • #1118 0f5444575 Thanks @b4rtaz! - Breaking change: The tokenDecimals property of the EvmMarketDataERC20TokenItem class is number now.

  • #1120 833feaf20 Thanks @b4rtaz! - Breaking change: All format() methods are deprecated now.

  • #1118 0f5444575 Thanks @b4rtaz! - Breaking change: The Erc20Transfer class is renamed to Erc20Transaction. From now getTokenTransfers and getWalletTokenTransfers methods return instances of the renamed class.

Patch Changes

  • #1118 0f5444575 Thanks @b4rtaz! - Added to Erc20Burn, Erc20Mint and Erc20Approval classes 4 new fields: tokenName, tokenLogo, tokenSymbol and tokenDecimals. These classes are used by the following EVM API methods: getErc20Approvals, getErc20Burns and getErc20Mints.

  • #1122 26f20c88a Thanks @b4rtaz! - Set some properties as optional for the AptosNFTTransferResponse class.

  • #1122 26f20c88a Thanks @b4rtaz! - Fixed the return type of the getNFTTransfersByIds() method in the Aptos API module.

  • Updated dependencies [0f5444575, 8a3bef8c2, 0f5444575, 833feaf20, 0f5444575, 0f5444575, 26f20c88a, 26f20c88a]:

    • @moralisweb3/common-evm-utils@2.20.0
    • @moralisweb3/evm-api@2.20.0
    • @moralisweb3/auth@2.20.0
    • @moralisweb3/streams@2.20.0
    • @moralisweb3/common-streams-utils@2.20.0
    • @moralisweb3/common-aptos-utils@2.20.0
    • @moralisweb3/common-sol-utils@2.20.0
    • @moralisweb3/aptos-api@2.20.0
    • @moralisweb3/api-utils@2.20.0
    • @moralisweb3/common-auth-utils@2.20.0
    • @moralisweb3/common-core@2.20.0
    • @moralisweb3/sol-api@2.20.0

2.19.1

Patch Changes

  • #1112 1de42875b Thanks @b4rtaz! - Added 4 new methods: getTopERC20TokensByMarketCap, getTopERC20TokensByPriceMovers, getTopNFTCollectionsByMarketCap and getHottestNFTCollectionsByTradingVolume to the EVM API module.

  • Updated dependencies [1de42875b]:

    • @moralisweb3/evm-api@2.19.1
    • @moralisweb3/api-utils@2.19.1
    • @moralisweb3/aptos-api@2.19.1
    • @moralisweb3/auth@2.19.1
    • @moralisweb3/common-aptos-utils@2.19.1
    • @moralisweb3/common-auth-utils@2.19.1
    • @moralisweb3/common-core@2.19.1
    • @moralisweb3/common-evm-utils@2.19.1
    • @moralisweb3/common-sol-utils@2.19.1
    • @moralisweb3/common-streams-utils@2.19.1
    • @moralisweb3/sol-api@2.19.1
    • @moralisweb3/streams@2.19.1

2.19.0

Minor Changes

  • #1101 586a71133 Thanks @b4rtaz! - Breaking change: The format() method has been deleted from the EvmAddress class and the EvmChain class. Please format the value by using a proper class property.

Patch Changes

  • #1103 d6f6476a7 Thanks @b4rtaz! - Added the optional evmApiBaseUrl config option. You may replace the default base URL of the EVM API with your own.

  • #1103 d6f6476a7 Thanks @b4rtaz! - Added the optional solApiBaseUrl config option. You may replace the default base URL of the Solana API with your own.

  • #1098 393291c73 Thanks @b4rtaz! - Fixed importing interop modules for CJS bundles.

  • Updated dependencies [d6f6476a7, 586a71133, d6f6476a7, 700a64f6a, 586a71133, 586a71133, 586a71133, 393291c73]:

    • @moralisweb3/evm-api@2.19.0
    • @moralisweb3/common-evm-utils@2.19.0
    • @moralisweb3/sol-api@2.19.0
    • @moralisweb3/common-streams-utils@2.19.0
    • @moralisweb3/streams@2.19.0
    • @moralisweb3/auth@2.19.0
    • @moralisweb3/common-aptos-utils@2.19.0
    • @moralisweb3/common-auth-utils@2.19.0
    • @moralisweb3/common-sol-utils@2.19.0
    • @moralisweb3/common-core@2.19.0
    • @moralisweb3/api-utils@2.19.0
    • @moralisweb3/aptos-api@2.19.0

2.18.4

Patch Changes

  • Updated dependencies [dafeca247]:
    • @moralisweb3/api-utils@2.18.4
    • @moralisweb3/aptos-api@2.18.4
    • @moralisweb3/auth@2.18.4
    • @moralisweb3/common-aptos-utils@2.18.4
    • @moralisweb3/common-auth-utils@2.18.4
    • @moralisweb3/common-core@2.18.4
    • @moralisweb3/common-evm-utils@2.18.4
    • @moralisweb3/common-sol-utils@2.18.4
    • @moralisweb3/common-streams-utils@2.18.4
    • @moralisweb3/evm-api@2.18.4
    • @moralisweb3/sol-api@2.18.4
    • @moralisweb3/streams@2.18.4

2.18.3

Patch Changes

  • #1091 a3c5e35fe Thanks @Y0moo! - Import available from "moralis/common-aptos-utils"

  • Updated dependencies [6e1fc78fd, 27d62491b, a3c5e35fe]:

    • @moralisweb3/common-evm-utils@2.18.3
    • @moralisweb3/evm-api@2.18.3
    • @moralisweb3/common-aptos-utils@2.18.3
    • @moralisweb3/aptos-api@2.18.3
    • @moralisweb3/api-utils@2.18.3
    • @moralisweb3/auth@2.18.3
    • @moralisweb3/common-auth-utils@2.18.3
    • @moralisweb3/common-core@2.18.3
    • @moralisweb3/common-sol-utils@2.18.3
    • @moralisweb3/common-streams-utils@2.18.3
    • @moralisweb3/sol-api@2.18.3
    • @moralisweb3/streams@2.18.3

2.18.2

Patch Changes

  • Updated dependencies [8caf91365, d2edf6780]:
    • @moralisweb3/common-evm-utils@2.18.2
    • @moralisweb3/evm-api@2.18.2
    • @moralisweb3/streams@2.18.2
    • @moralisweb3/api-utils@2.18.2
    • @moralisweb3/aptos-api@2.18.2
    • @moralisweb3/auth@2.18.2
    • @moralisweb3/common-auth-utils@2.18.2
    • @moralisweb3/common-core@2.18.2
    • @moralisweb3/common-sol-utils@2.18.2
    • @moralisweb3/common-streams-utils@2.18.2
    • @moralisweb3/sol-api@2.18.2

2.18.1

Patch Changes

  • Updated dependencies [98a35355f]:
    • @moralisweb3/common-evm-utils@2.18.1
    • @moralisweb3/evm-api@2.18.1
    • @moralisweb3/api-utils@2.18.1
    • @moralisweb3/aptos-api@2.18.1
    • @moralisweb3/auth@2.18.1
    • @moralisweb3/common-auth-utils@2.18.1
    • @moralisweb3/common-core@2.18.1
    • @moralisweb3/common-sol-utils@2.18.1
    • @moralisweb3/common-streams-utils@2.18.1
    • @moralisweb3/sol-api@2.18.1
    • @moralisweb3/streams@2.18.1

2.18.0

Patch Changes

  • Updated dependencies [121a903de, 2f102c48c, 4ad15182b, 3e031685b, 2d99b05c7, 9fba6e55a, 6d8dbacb7, 957587789, ff40a18f1, ecc414aaf]:
    • @moralisweb3/common-streams-utils@2.18.0
    • @moralisweb3/streams@2.18.0
    • @moralisweb3/common-evm-utils@2.18.0
    • @moralisweb3/evm-api@2.18.0
    • @moralisweb3/api-utils@2.18.0
    • @moralisweb3/common-auth-utils@2.18.0
    • @moralisweb3/auth@2.18.0
    • @moralisweb3/common-sol-utils@2.18.0
    • @moralisweb3/sol-api@2.18.0
    • @moralisweb3/aptos-api@2.18.0
    • @moralisweb3/common-core@2.18.0

2.17.0

Patch Changes

  • Updated dependencies [e96c34ab4, d9b9587be, f5d0bdd62]:
    • @moralisweb3/common-evm-utils@2.17.0
    • @moralisweb3/api-utils@2.17.0
    • @moralisweb3/evm-api@2.17.0
    • @moralisweb3/common-streams-utils@2.17.0
    • @moralisweb3/streams@2.17.0
    • @moralisweb3/aptos-api@2.17.0
    • @moralisweb3/auth@2.17.0
    • @moralisweb3/common-auth-utils@2.17.0
    • @moralisweb3/common-core@2.17.0
    • @moralisweb3/common-sol-utils@2.17.0
    • @moralisweb3/sol-api@2.17.0

2.16.1

Patch Changes

  • 8981730d6 Thanks @ErnoW! - Bump version for release

  • Updated dependencies [8981730d6]:

    • @moralisweb3/api-utils@2.16.1
    • @moralisweb3/aptos-api@2.16.1
    • @moralisweb3/auth@2.16.1
    • @moralisweb3/common-auth-utils@2.16.1
    • @moralisweb3/common-core@2.16.1
    • @moralisweb3/common-evm-utils@2.16.1
    • @moralisweb3/common-sol-utils@2.16.1
    • @moralisweb3/common-streams-utils@2.16.1
    • @moralisweb3/evm-api@2.16.1
    • @moralisweb3/sol-api@2.16.1
    • @moralisweb3/streams@2.16.1

2.16.0

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/api-utils@2.16.0
    • @moralisweb3/aptos-api@2.16.0
    • @moralisweb3/auth@2.16.0
    • @moralisweb3/common-auth-utils@2.16.0
    • @moralisweb3/common-core@2.16.0
    • @moralisweb3/common-evm-utils@2.16.0
    • @moralisweb3/common-sol-utils@2.16.0
    • @moralisweb3/common-streams-utils@2.16.0
    • @moralisweb3/evm-api@2.16.0
    • @moralisweb3/sol-api@2.16.0
    • @moralisweb3/streams@2.16.0

2.15.0

Patch Changes

  • #1027 521534f81 Thanks @b4rtaz! - Added ESM build.

  • Updated dependencies [36ebc0d82, 521534f81, 310558392, ad4925518]:

    • @moralisweb3/common-evm-utils@2.15.0
    • @moralisweb3/common-streams-utils@2.15.0
    • @moralisweb3/common-auth-utils@2.15.0
    • @moralisweb3/common-sol-utils@2.15.0
    • @moralisweb3/common-core@2.15.0
    • @moralisweb3/api-utils@2.15.0
    • @moralisweb3/streams@2.15.0
    • @moralisweb3/evm-api@2.15.0
    • @moralisweb3/sol-api@2.15.0
    • @moralisweb3/auth@2.15.0
    • @moralisweb3/aptos-api@2.15.0

2.14.3

Patch Changes

  • Updated dependencies [341fc4d8e]:
    • @moralisweb3/streams@2.14.3
    • @moralisweb3/api-utils@2.14.3
    • @moralisweb3/auth@2.14.3
    • @moralisweb3/common-auth-utils@2.14.3
    • @moralisweb3/common-core@2.14.3
    • @moralisweb3/common-evm-utils@2.14.3
    • @moralisweb3/common-sol-utils@2.14.3
    • @moralisweb3/common-streams-utils@2.14.3
    • @moralisweb3/evm-api@2.14.3
    • @moralisweb3/sol-api@2.14.3

2.14.2

Patch Changes

  • Updated dependencies [7949ea1fe]:
    • @moralisweb3/api-utils@2.14.2
    • @moralisweb3/auth@2.14.2
    • @moralisweb3/common-auth-utils@2.14.2
    • @moralisweb3/common-core@2.14.2
    • @moralisweb3/common-evm-utils@2.14.2
    • @moralisweb3/common-sol-utils@2.14.2
    • @moralisweb3/common-streams-utils@2.14.2
    • @moralisweb3/evm-api@2.14.2
    • @moralisweb3/sol-api@2.14.2
    • @moralisweb3/streams@2.14.2

2.14.1

Patch Changes

  • 3838ea2c8 Thanks @ErnoW! - export esm and dist files

  • Updated dependencies []:

    • @moralisweb3/api-utils@2.14.1
    • @moralisweb3/auth@2.14.1
    • @moralisweb3/common-auth-utils@2.14.1
    • @moralisweb3/common-core@2.14.1
    • @moralisweb3/common-evm-utils@2.14.1
    • @moralisweb3/common-sol-utils@2.14.1
    • @moralisweb3/common-streams-utils@2.14.1
    • @moralisweb3/evm-api@2.14.1
    • @moralisweb3/sol-api@2.14.1
    • @moralisweb3/streams@2.14.1

2.14.0

Patch Changes

  • Updated dependencies [055f0f47a]:
    • @moralisweb3/common-auth-utils@2.14.0
    • @moralisweb3/auth@2.14.0
    • @moralisweb3/api-utils@2.14.0
    • @moralisweb3/common-core@2.14.0
    • @moralisweb3/common-evm-utils@2.14.0
    • @moralisweb3/common-sol-utils@2.14.0
    • @moralisweb3/common-streams-utils@2.14.0
    • @moralisweb3/evm-api@2.14.0
    • @moralisweb3/sol-api@2.14.0
    • @moralisweb3/streams@2.14.0

2.13.0

Patch Changes

  • Updated dependencies [cdd111033, abb77d713]:
    • @moralisweb3/common-streams-utils@2.13.0
    • @moralisweb3/streams@2.13.0
    • @moralisweb3/api-utils@2.13.0
    • @moralisweb3/auth@2.13.0
    • @moralisweb3/common-auth-utils@2.13.0
    • @moralisweb3/common-core@2.13.0
    • @moralisweb3/common-evm-utils@2.13.0
    • @moralisweb3/common-sol-utils@2.13.0
    • @moralisweb3/evm-api@2.13.0
    • @moralisweb3/sol-api@2.13.0

2.12.0

Patch Changes

  • Updated dependencies [a16b47566, 89f1dcd43, e79cccf53, 301490a3d]:
    • @moralisweb3/common-auth-utils@2.12.0
    • @moralisweb3/common-evm-utils@2.12.0
    • @moralisweb3/evm-api@2.12.0
    • @moralisweb3/auth@2.12.0
    • @moralisweb3/streams@2.12.0
    • @moralisweb3/api-utils@2.12.0
    • @moralisweb3/common-core@2.12.0
    • @moralisweb3/common-sol-utils@2.12.0
    • @moralisweb3/common-streams-utils@2.12.0
    • @moralisweb3/sol-api@2.12.0

2.11.1

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/api-utils@2.11.1
    • @moralisweb3/auth@2.11.1
    • @moralisweb3/common-auth-utils@2.11.1
    • @moralisweb3/common-core@2.11.1
    • @moralisweb3/common-evm-utils@2.11.1
    • @moralisweb3/common-sol-utils@2.11.1
    • @moralisweb3/common-streams-utils@2.11.1
    • @moralisweb3/evm-api@2.11.1
    • @moralisweb3/sol-api@2.11.1
    • @moralisweb3/streams@2.11.1

2.11.0

Patch Changes

  • Updated dependencies [98bd66b8e, 98bd66b8e, 98bd66b8e]:
    • @moralisweb3/common-evm-utils@2.11.0
    • @moralisweb3/evm-api@2.11.0
    • @moralisweb3/common-core@2.11.0
    • @moralisweb3/api-utils@2.11.0
    • @moralisweb3/auth@2.11.0
    • @moralisweb3/common-auth-utils@2.11.0
    • @moralisweb3/common-sol-utils@2.11.0
    • @moralisweb3/common-streams-utils@2.11.0
    • @moralisweb3/sol-api@2.11.0
    • @moralisweb3/streams@2.11.0

2.10.3

Patch Changes

  • Updated dependencies [744d12930]:
    • @moralisweb3/streams@2.10.3
    • @moralisweb3/api-utils@2.10.3
    • @moralisweb3/auth@2.10.3
    • @moralisweb3/common-auth-utils@2.10.3
    • @moralisweb3/common-core@2.10.3
    • @moralisweb3/common-evm-utils@2.10.3
    • @moralisweb3/common-sol-utils@2.10.3
    • @moralisweb3/common-streams-utils@2.10.3
    • @moralisweb3/evm-api@2.10.3
    • @moralisweb3/sol-api@2.10.3

2.10.2

Patch Changes

  • #912 26848dc2d Thanks @ErnoW! - Update api types to include latest features and fixes of evmApi and streams. This includes:

    • removal of deprecated subdomain and providerUrl params
    • evm endpooint for getMultipleNFTs
    • evm endpoint updated for getNFTContractTransfers to include fromBlock, toBlock, fromDate and toDate params
    • streams support for getNativeBalances
  • Updated dependencies [26848dc2d]:

    • @moralisweb3/api-utils@2.10.2
    • @moralisweb3/auth@2.10.2
    • @moralisweb3/common-auth-utils@2.10.2
    • @moralisweb3/common-core@2.10.2
    • @moralisweb3/common-evm-utils@2.10.2
    • @moralisweb3/common-sol-utils@2.10.2
    • @moralisweb3/common-streams-utils@2.10.2
    • @moralisweb3/evm-api@2.10.2
    • @moralisweb3/sol-api@2.10.2
    • @moralisweb3/streams@2.10.2

2.10.1

Patch Changes

  • Updated dependencies [33230c43c]:
    • @moralisweb3/common-evm-utils@2.10.1
    • @moralisweb3/api-utils@2.10.1
    • @moralisweb3/auth@2.10.1
    • @moralisweb3/common-auth-utils@2.10.1
    • @moralisweb3/common-core@2.10.1
    • @moralisweb3/common-sol-utils@2.10.1
    • @moralisweb3/common-streams-utils@2.10.1
    • @moralisweb3/evm-api@2.10.1
    • @moralisweb3/sol-api@2.10.1
    • @moralisweb3/streams@2.10.1

2.10.0

Patch Changes

  • Updated dependencies [439d6e564, 2dcf75f8a, 52a8160d9, b703c5517]:
    • @moralisweb3/common-core@2.10.0
    • @moralisweb3/api-utils@2.10.0
    • @moralisweb3/common-evm-utils@2.10.0
    • @moralisweb3/common-streams-utils@2.10.0
    • @moralisweb3/evm-api@2.10.0
    • @moralisweb3/auth@2.10.0
    • @moralisweb3/common-auth-utils@2.10.0
    • @moralisweb3/common-sol-utils@2.10.0
    • @moralisweb3/sol-api@2.10.0
    • @moralisweb3/streams@2.10.0

2.9.0

Patch Changes

  • Updated dependencies [a8c2175c2, aa86dc0f1, 338ee39e8, f709e1179, 31ef229ad, 248089ffa]:
    • @moralisweb3/common-evm-utils@2.9.0
    • @moralisweb3/evm-api@2.9.0
    • @moralisweb3/streams@2.9.0
    • @moralisweb3/common-core@2.9.0
    • @moralisweb3/api-utils@2.9.0
    • @moralisweb3/auth@2.9.0
    • @moralisweb3/common-auth-utils@2.9.0
    • @moralisweb3/common-sol-utils@2.9.0
    • @moralisweb3/common-streams-utils@2.9.0
    • @moralisweb3/sol-api@2.9.0

2.8.2

Patch Changes

  • Updated dependencies [0cefcef6, 0cefcef6]:
    • @moralisweb3/common-evm-utils@2.8.2
    • @moralisweb3/api-utils@2.8.2
    • @moralisweb3/auth@2.8.2
    • @moralisweb3/common-auth-utils@2.8.2
    • @moralisweb3/common-core@2.8.2
    • @moralisweb3/common-sol-utils@2.8.2
    • @moralisweb3/common-streams-utils@2.8.2
    • @moralisweb3/evm-api@2.8.2
    • @moralisweb3/sol-api@2.8.2
    • @moralisweb3/streams@2.8.2

2.8.1

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/api-utils@2.8.1
    • @moralisweb3/auth@2.8.1
    • @moralisweb3/common-auth-utils@2.8.1
    • @moralisweb3/common-core@2.8.1
    • @moralisweb3/common-evm-utils@2.8.1
    • @moralisweb3/common-sol-utils@2.8.1
    • @moralisweb3/common-streams-utils@2.8.1
    • @moralisweb3/evm-api@2.8.1
    • @moralisweb3/sol-api@2.8.1
    • @moralisweb3/streams@2.8.1

2.8.0

Minor Changes

  • #777 f1336a35 Thanks @ErnoW! - Move @moralisweb3/core package to @moralisweb3/common-core
  • #846 1374573d Thanks @ErnoW! - # Api responses (breaking change)

    For any api call, you get a resultAdapter response. The value of the toJSON() value has changed. Now it is the same value as .raw. Previously this caused a lot of confusion, and as both return a json. The value of this method has changed. So if you used .toJSON() on an api result you can:

    • Use .result, this will probably contain dataTypes with lots of utility functions. If you only care about the data, you can call .format() or .toJSON() on this datatype. This is the prefered way as it provides you wilt additional utilites and extra properties. We suggest you to use Typescript, to easily see the available properties/methods on these datatypes.
    • Or. use the new values (or values from .raw), these values are identical as they are provided by the internal api, without any data transformation. The types might be different than before, so please check this (we suggest to use Typescript, as all responses are typed, otherwise you can log the output and see any differences)

    Package name changes (deprecated, upcomming breaking change)

    If you're using some of our internal packages @moralisweb3/core for example then these names have been changed to differentiate between server-side packages, and packages that are compatible with client-side and server-side. We name these common-*. This is a first step to provide better client-side support:

    Migration guide

    • @moralisweb3/core -> @moralisweb3/common-core
    • @moralisweb3/evm-utils -> @moralisweb3/common-evm-utils
    • @moralisweb3/sol-utils -> @moralisweb3/common-sol-utils

    Change your dependencies in package.json and the corresponding imports in your code to the new names.

    For the time being, the old packages will remain, and we use them to forward to the common-* package, this will be removed in a future version, so please update to the new package name.

    NextJs package

    For easy integration we created a nextJs package. See packages/next. This contains:

    • hooks to all api endpoints
    • adapter to integrate into NextJs authentication via Moralis Auth

    For a demo check out demos/nextjs

    Operation types

    The parameters and return types are now exported for every api operation. These are exported from

    • moralis/common-evm-utils for evm api methods
    • moralis/common-sol-utils for sol api methods
    • moralis/common-auth-utils for auth methods
    • moralis/common-streams-utils for streams methods

    For example:

    import Moralis from 'moralis';
    import { GetContractNFTsRequest, EvmChain, GetContractNFTsResponse } from 'moralis/common-evm-utils';
    
    const getBlockOptions: GetContractNFTsRequest = {
      address: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',
      chain: EvmChain.ETHEREUM,
    };
    
    let result: GetContractNFTsResponse;
    
    const response = await Moralis.EvmApi.nft.getContractNFTs(getBlockOptions);
    result = response.result;

    Dataytypes support in client-side projects

    As a first step to provide better client-side support, all datatypes are now usable in server-side and client-side.

Patch Changes

  • Updated dependencies [f1336a35, 6382cc1c, 62036ef3, 1374573d]:
    • @moralisweb3/api-utils@2.8.0
    • @moralisweb3/auth@2.8.0
    • @moralisweb3/common-core@2.8.0
    • @moralisweb3/common-evm-utils@2.8.0
    • @moralisweb3/common-sol-utils@2.8.0
    • @moralisweb3/common-streams-utils@2.8.0
    • @moralisweb3/evm-api@2.8.0
    • @moralisweb3/sol-api@2.8.0
    • @moralisweb3/streams@2.8.0
    • @moralisweb3/common-auth-utils@2.8.0

2.7.4

Patch Changes

  • Updated dependencies [bc293674, 9e017ab5, a18b46ae, 08622cd9]:
    • @moralisweb3/streams@2.7.4
    • @moralisweb3/sol-api@2.7.4
    • @moralisweb3/auth@2.7.4
    • @moralisweb3/evm-utils@2.7.4
    • @moralisweb3/evm-api@2.7.4
    • @moralisweb3/core@2.7.4
    • @moralisweb3/api-utils@2.7.4
    • @moralisweb3/sol-utils@2.7.4

2.7.3

Patch Changes

  • Updated dependencies [91bbd142, d3672e8f]:
    • @moralisweb3/sol-api@2.7.3
    • @moralisweb3/evm-api@2.7.3
    • @moralisweb3/core@2.7.3
    • @moralisweb3/auth@2.7.3
    • @moralisweb3/streams@2.7.3
    • @moralisweb3/api-utils@2.7.3
    • @moralisweb3/evm-utils@2.7.3
    • @moralisweb3/sol-utils@2.7.3

2.7.2

Patch Changes

  • Updated dependencies [a1bbd61f]:
    • @moralisweb3/streams@2.7.2
    • @moralisweb3/core@2.7.2
    • @moralisweb3/auth@2.7.2
    • @moralisweb3/api-utils@2.7.2
    • @moralisweb3/evm-utils@2.7.2
    • @moralisweb3/sol-utils@2.7.2
    • @moralisweb3/evm-api@2.7.2
    • @moralisweb3/sol-api@2.7.2

2.7.1

Patch Changes

  • Updated dependencies [2f938764]:
    • @moralisweb3/streams@2.7.1
    • @moralisweb3/core@2.7.1
    • @moralisweb3/auth@2.7.1
    • @moralisweb3/api-utils@2.7.1
    • @moralisweb3/evm-utils@2.7.1
    • @moralisweb3/sol-utils@2.7.1
    • @moralisweb3/evm-api@2.7.1
    • @moralisweb3/sol-api@2.7.1

2.7.0

Patch Changes

  • Updated dependencies [07c8ca69, 07c8ca69]:
    • @moralisweb3/streams@2.7.0
    • @moralisweb3/core@2.7.0
    • @moralisweb3/auth@2.7.0
    • @moralisweb3/api-utils@2.7.0
    • @moralisweb3/evm-utils@2.7.0
    • @moralisweb3/sol-utils@2.7.0
    • @moralisweb3/evm-api@2.7.0
    • @moralisweb3/sol-api@2.7.0

2.6.7

Patch Changes

  • #768 6701030e Thanks @sogunshola! - Move streams-typings from dev dependencies to dependencies in streams package and also correct export name in umbrella package
  • #742 cac6a0b9 Thanks @sogunshola! - Export all utility functions in Moralis umbrella package

  • Updated dependencies [6701030e]:

    • @moralisweb3/streams@2.6.7
    • @moralisweb3/core@2.6.7
    • @moralisweb3/auth@2.6.7
    • @moralisweb3/api-utils@2.6.7
    • @moralisweb3/evm-utils@2.6.7
    • @moralisweb3/sol-utils@2.6.7
    • @moralisweb3/evm-api@2.6.7
    • @moralisweb3/sol-api@2.6.7

2.6.6

Patch Changes

  • Updated dependencies [11ba50f7, d87f37c5]:
    • @moralisweb3/evm-utils@2.6.6
    • @moralisweb3/evm-api@2.6.6
    • @moralisweb3/core@2.6.6
    • @moralisweb3/auth@2.6.6
    • @moralisweb3/streams@2.6.6
    • @moralisweb3/api-utils@2.6.6
    • @moralisweb3/sol-utils@2.6.6
    • @moralisweb3/sol-api@2.6.6

2.6.5

Patch Changes

  • Updated dependencies [9953a791, 9aada1f8]:
    • @moralisweb3/streams@2.6.5
    • @moralisweb3/evm-api@2.6.5
    • @moralisweb3/core@2.6.5
    • @moralisweb3/auth@2.6.5
    • @moralisweb3/api-utils@2.6.5
    • @moralisweb3/evm-utils@2.6.5
    • @moralisweb3/sol-utils@2.6.5
    • @moralisweb3/sol-api@2.6.5

2.6.4

Patch Changes

  • Updated dependencies [4af4eb8a, 77eb29bf]:
    • @moralisweb3/streams@2.6.4
    • @moralisweb3/api-utils@2.6.4
    • @moralisweb3/core@2.6.4
    • @moralisweb3/auth@2.6.4
    • @moralisweb3/evm-utils@2.6.4
    • @moralisweb3/sol-utils@2.6.4
    • @moralisweb3/evm-api@2.6.4
    • @moralisweb3/sol-api@2.6.4

2.6.3

Patch Changes

  • Updated dependencies [cfd23005]:
    • @moralisweb3/streams@2.6.3
    • @moralisweb3/core@2.6.3
    • @moralisweb3/auth@2.6.3
    • @moralisweb3/api-utils@2.6.3
    • @moralisweb3/evm-utils@2.6.3
    • @moralisweb3/sol-utils@2.6.3
    • @moralisweb3/evm-api@2.6.3
    • @moralisweb3/sol-api@2.6.3

2.6.2

Patch Changes

  • Updated dependencies [ed6dfb2e, 21ab43be, 68c8057a]:
    • @moralisweb3/streams@2.6.2
    • @moralisweb3/core@2.6.2
    • @moralisweb3/auth@2.6.2
    • @moralisweb3/api-utils@2.6.2
    • @moralisweb3/evm-utils@2.6.2
    • @moralisweb3/sol-utils@2.6.2
    • @moralisweb3/evm-api@2.6.2
    • @moralisweb3/sol-api@2.6.2

2.6.1

Patch Changes

  • Updated dependencies [bfea2ba5, e5fb3d6c, f3cd2b5c, 42893723, f3cd2b5c, 36a4096d]:
    • @moralisweb3/evm-utils@2.6.1
    • @moralisweb3/sol-utils@2.6.1
    • @moralisweb3/evm-api@2.6.1
    • @moralisweb3/streams@2.6.1
    • @moralisweb3/auth@2.6.1
    • @moralisweb3/core@2.6.1
    • @moralisweb3/api-utils@2.6.1
    • @moralisweb3/sol-api@2.6.1

2.6.0

Patch Changes

  • Updated dependencies [683b6ce8]:
    • @moralisweb3/streams@2.6.0
    • @moralisweb3/core@2.6.0
    • @moralisweb3/auth@2.6.0
    • @moralisweb3/api-utils@2.6.0
    • @moralisweb3/evm-utils@2.6.0
    • @moralisweb3/sol-utils@2.6.0
    • @moralisweb3/evm-api@2.6.0
    • @moralisweb3/sol-api@2.6.0

2.5.8

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.5.8
    • @moralisweb3/auth@2.5.8
    • @moralisweb3/streams@2.5.8
    • @moralisweb3/api-utils@2.5.8
    • @moralisweb3/evm-utils@2.5.8
    • @moralisweb3/sol-utils@2.5.8
    • @moralisweb3/evm-api@2.5.8
    • @moralisweb3/sol-api@2.5.8

2.5.7

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.5.7
    • @moralisweb3/auth@2.5.7
    • @moralisweb3/streams@2.5.7
    • @moralisweb3/api-utils@2.5.7
    • @moralisweb3/evm-utils@2.5.7
    • @moralisweb3/sol-utils@2.5.7
    • @moralisweb3/evm-api@2.5.7
    • @moralisweb3/sol-api@2.5.7

2.5.6

Patch Changes

  • Updated dependencies []:
    • @moralisweb3/core@2.5.6
    • @moralisweb3/auth@2.5.6
    • @moralisweb3/streams@2.5.6
    • @moralisweb3/api-utils@2.5.6
    • @moralisweb3/evm-utils@2.5.6
    • @moralisweb3/sol-utils@2.5.6
    • @moralisweb3/evm-api@2.5.6
    • @moralisweb3/sol-api@2.5.6

2.5.5

Patch Changes

  • #699 d79800ad Thanks @ErnoW! - Fix parsing of API error messages, now the MoralisError will show the message that is returned from the api.

  • Updated dependencies [d79800ad]:

    • @moralisweb3/core@2.5.5
    • @moralisweb3/auth@2.5.5
    • @moralisweb3/evm-api@2.5.5
    • @moralisweb3/sol-api@2.5.5
    • @moralisweb3/streams@2.5.5
    • @moralisweb3/api-utils@2.5.5
    • @moralisweb3/evm-utils@2.5.5
    • @moralisweb3/sol-utils@2.5.5

2.5.4

Patch Changes

  • Updated dependencies [62275677]:
    • @moralisweb3/evm-api@2.5.4
    • @moralisweb3/evm-utils@2.5.4
    • @moralisweb3/core@2.5.4
    • @moralisweb3/auth@2.5.4
    • @moralisweb3/streams@2.5.4
    • @moralisweb3/api-utils@2.5.4
    • @moralisweb3/sol-utils@2.5.4
    • @moralisweb3/sol-api@2.5.4

2.5.3

Patch Changes

  • Updated dependencies [008de89f]:
    • @moralisweb3/streams@2.5.3
    • @moralisweb3/core@2.5.3
    • @moralisweb3/auth@2.5.3
    • @moralisweb3/api-utils@2.5.3
    • @moralisweb3/evm-utils@2.5.3
    • @moralisweb3/sol-utils@2.5.3
    • @moralisweb3/evm-api@2.5.3
    • @moralisweb3/sol-api@2.5.3

2.5.2

Patch Changes

  • Updated dependencies [d6ed8ce0, 500ddaf3]:
    • @moralisweb3/streams@2.5.2
    • @moralisweb3/core@2.5.2
    • @moralisweb3/auth@2.5.2
    • @moralisweb3/api-utils@2.5.2
    • @moralisweb3/evm-utils@2.5.2
    • @moralisweb3/sol-utils@2.5.2
    • @moralisweb3/evm-api@2.5.2
    • @moralisweb3/sol-api@2.5.2

2.5.1

Patch Changes

  • Updated dependencies [688dc414]:
    • @moralisweb3/streams@2.5.1
    • @moralisweb3/core@2.5.1
    • @moralisweb3/auth@2.5.1
    • @moralisweb3/api-utils@2.5.1
    • @moralisweb3/evm-utils@2.5.1
    • @moralisweb3/sol-utils@2.5.1
    • @moralisweb3/evm-api@2.5.1
    • @moralisweb3/sol-api@2.5.1

2.5.0

Patch Changes

  • Updated dependencies [c719cc2f, 72ad17b7, f6696b86, cd9a9ce5, b5f3bc77]:
    • @moralisweb3/core@2.5.0
    • @moralisweb3/streams@2.5.0
    • @moralisweb3/sol-api@2.5.0
    • @moralisweb3/auth@2.5.0
    • @moralisweb3/api-utils@2.5.0
    • @moralisweb3/evm-utils@2.5.0
    • @moralisweb3/sol-utils@2.5.0
    • @moralisweb3/evm-api@2.5.0

2.4.0

Minor Changes

  • #658 7fffd1e4 Thanks @sogunshola! - Intergrating stream API in code base, creating a new package @moralisweb3/streams

Patch Changes

  • Updated dependencies [dd3602a2, 7fffd1e4]:
    • @moralisweb3/auth@2.4.0
    • @moralisweb3/api-utils@2.4.0
    • @moralisweb3/core@2.4.0
    • @moralisweb3/streams@2.4.0
    • @moralisweb3/evm-utils@2.4.0
    • @moralisweb3/sol-utils@2.4.0
    • @moralisweb3/evm-api@2.4.0
    • @moralisweb3/sol-api@2.4.0

2.3.1

Patch Changes

  • Updated dependencies [a0db370]:
    • @moralisweb3/sol-utils@2.3.1
    • @moralisweb3/core@2.3.1
    • @moralisweb3/auth@2.3.1
    • @moralisweb3/api-utils@2.3.1
    • @moralisweb3/evm-utils@2.3.1
    • @moralisweb3/evm-api@2.3.1
    • @moralisweb3/sol-api@2.3.1

2.3.0

Patch Changes

  • Updated dependencies [7bf5ec6, 7bf5ec6, 7e83894]:
    • @moralisweb3/evm-api@2.3.0
    • @moralisweb3/evm-utils@2.3.0
    • @moralisweb3/core@2.3.0
    • @moralisweb3/auth@2.3.0
    • @moralisweb3/api-utils@2.3.0
    • @moralisweb3/sol-utils@2.3.0
    • @moralisweb3/sol-api@2.3.0

2.2.0

Patch Changes

  • Updated dependencies [0e07f58, e56e44d, a6b30fc]:
    • @moralisweb3/evm-api@2.2.0
    • @moralisweb3/sol-utils@2.2.0
    • @moralisweb3/evm-utils@2.2.0
    • @moralisweb3/core@2.2.0
    • @moralisweb3/auth@2.2.0
    • @moralisweb3/api-utils@2.2.0
    • @moralisweb3/sol-api@2.2.0

2.1.1

Patch Changes

  • Updated dependencies [5bfb635, 7fa4654]:
    • @moralisweb3/api-utils@2.1.1
    • @moralisweb3/evm-api@2.1.1
    • @moralisweb3/evm-utils@2.1.1
    • @moralisweb3/core@2.1.1
    • @moralisweb3/auth@2.1.1
    • @moralisweb3/sol-utils@2.1.1
    • @moralisweb3/sol-api@2.1.1

2.1.0

Patch Changes

  • #609 0a97823 Thanks @meseta! - Add missing @moralisweb3/sol-utils dependency

  • Updated dependencies [5644d32, a0ece52, 761d0d7, d542326]:

    • @moralisweb3/sol-utils@2.1.0
    • @moralisweb3/sol-api@2.1.0
    • @moralisweb3/evm-utils@2.1.0
    • @moralisweb3/core@2.1.0
    • @moralisweb3/evm-api@2.1.0
    • @moralisweb3/api-utils@2.1.0
    • @moralisweb3/auth@2.1.0

2.0.3

Patch Changes

  • Updated dependencies [dbca06e]:
    • @moralisweb3/auth@2.0.3
    • @moralisweb3/evm-api@2.0.3
    • @moralisweb3/sol-api@2.0.3
    • @moralisweb3/core@2.0.3
    • @moralisweb3/api-utils@2.0.3
    • @moralisweb3/evm-utils@2.0.3

2.0.2

Patch Changes

  • Updated dependencies [a06bc92]:
    • @moralisweb3/evm-api@2.0.2
    • @moralisweb3/core@2.0.2
    • @moralisweb3/auth@2.0.2
    • @moralisweb3/api-utils@2.0.2
    • @moralisweb3/evm-utils@2.0.2
    • @moralisweb3/sol-api@2.0.2

2.0.1

Patch Changes

  • Updated dependencies [30f69c3]:
    • @moralisweb3/evm-api@2.0.1
    • @moralisweb3/evm-utils@2.0.1
    • @moralisweb3/core@2.0.1
    • @moralisweb3/auth@2.0.1
    • @moralisweb3/api-utils@2.0.1
    • @moralisweb3/sol-api@2.0.1

2.0.0

Major Changes

  • 639053e Thanks @ErnoW! - # Release of v2.0

    This 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).

    Features

    The new sdk comes with the following featurs:

    • Moralis.EvmApi: A set of methods to interact and read from EVM chains
    • Moralis.SolApi: A set of methods to interact and read from Solana networks
    • Moralis.Auth: Utilities to implement web3 authentication in NodeJs

    Get started

    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)

    More info

    For more info see the docs: http://docs.moralis.io Or reach out in our forums: https://forum.moralis.io

  • #512 d450294 Thanks @ErnoW! - Remove Evm and Server logic. This is SDK will focus mainly on NodeJs backend implementations.

Minor Changes

  • #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 and token.thumbnail,
    • adding an optional token reference for Erc20Value. This can be used by calling Erc20Value.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 account
      • erc20Value.decimals returns the decimals
      • erc20Value.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 an Erc20Value object with associated token information.
  • #510 7f0fc3f Thanks @ErnoW! - Add Moralis.Auth package to handle authentication via the Moralis Authentication Api. And add a demo project for parse-server

Patch Changes

  • #562 4683492 Thanks @ErnoW! - Update type definition and resolvers after changes in the Evm Api

2.0.0-beta.11

Patch Changes

  • Updated dependencies [fa082b6, fa082b6]:
    • @moralisweb3/evm-api@2.0.0-beta.11
    • @moralisweb3/evm-utils@2.0.0-beta.11
    • @moralisweb3/core@2.0.0-beta.11
    • @moralisweb3/auth@2.0.0-beta.11
    • @moralisweb3/api-utils@2.0.0-beta.11
    • @moralisweb3/sol-api@2.0.0-beta.11

2.0.0-beta.10

Patch Changes

  • Updated dependencies [51e0446]:
    • @moralisweb3/core@2.0.0-beta.10
    • @moralisweb3/evm-api@2.0.0-beta.10
    • @moralisweb3/evm-utils@2.0.0-beta.10
    • @moralisweb3/auth@2.0.0-beta.10
    • @moralisweb3/api-utils@2.0.0-beta.10
    • @moralisweb3/sol-api@2.0.0-beta.10

2.0.0-beta.9

Patch Changes

  • #562 4683492 Thanks @ErnoW! - Update type definition and resolvers after changes in the Evm Api

  • Updated dependencies [4683492, e818e2d]:

    • @moralisweb3/api-utils@2.0.0-beta.9
    • @moralisweb3/auth@2.0.0-beta.9
    • @moralisweb3/core@2.0.0-beta.9
    • @moralisweb3/evm-api@2.0.0-beta.9
    • @moralisweb3/evm-utils@2.0.0-beta.9
    • @moralisweb3/sol-api@2.0.0-beta.9

2.0.0-beta.8

Minor Changes

  • #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 and token.thumbnail,
    • adding an optional token reference for Erc20Value. This can be used by calling Erc20Value.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 account
      • erc20Value.decimals returns the decimals
      • erc20Value.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 an Erc20Value object with associated token information.

Patch Changes

  • Updated dependencies [d413073]:
    • @moralisweb3/api-utils@2.0.0-beta.8
    • @moralisweb3/auth@2.0.0-beta.8
    • @moralisweb3/core@2.0.0-beta.8
    • @moralisweb3/evm-api@2.0.0-beta.8
    • @moralisweb3/evm-utils@2.0.0-beta.8
    • @moralisweb3/sol-api@2.0.0-beta.8

2.0.0-beta.7

Patch Changes

  • Updated dependencies [0c47bae]:
    • @moralisweb3/api-utils@2.0.0-beta.7
    • @moralisweb3/evm-api@2.0.0-beta.7
    • @moralisweb3/sol-api@2.0.0-beta.7
    • @moralisweb3/core@2.0.0-beta.7
    • @moralisweb3/auth@2.0.0-beta.7
    • @moralisweb3/evm-utils@2.0.0-beta.7

2.0.0-beta.6

Minor Changes

  • #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.

Patch Changes

  • Updated dependencies [36dd9a9, 3f511ed]:
    • @moralisweb3/core@2.0.0-beta.6
    • @moralisweb3/api-utils@2.0.0-beta.6
    • @moralisweb3/auth@2.0.0-beta.6
    • @moralisweb3/evm-api@2.0.0-beta.6
    • @moralisweb3/evm-utils@2.0.0-beta.6
    • @moralisweb3/sol-api@2.0.0-beta.6

2.0.0-beta.5

Major Changes

Patch Changes

  • Updated dependencies [2948339]:
    • @moralisweb3/api-utils@2.0.0-beta.5
    • @moralisweb3/auth@2.0.0-beta.5
    • @moralisweb3/core@2.0.0-beta.5
    • @moralisweb3/evm-api@2.0.0-beta.5
    • @moralisweb3/evm-utils@2.0.0-beta.5
    • @moralisweb3/sol-api@2.0.0-beta.5

2.0.0-alpha.4

Patch Changes

  • #552 81effa1 Thanks @ErnoW! - Fix Typescript reference between the packages in production builds
  • #539 70e6227 Thanks @b4rtaz! - Multi-tenancy support.

  • Updated dependencies [81effa1, 81effa1, 70e6227]:

    • @moralisweb3/api-utils@2.0.0-alpha.4
    • @moralisweb3/core@2.0.0-alpha.4
    • @moralisweb3/auth@2.0.0-alpha.4
    • @moralisweb3/evm-api@2.0.0-alpha.4
    • @moralisweb3/evm-utils@2.0.0-alpha.4
    • @moralisweb3/sol-api@2.0.0-alpha.4

2.0.0-alpha.3

Major Changes

  • #512 d450294 Thanks @ErnoW! - Remove Evm and Server logic. This is SDK will focus mainly on NodeJs backend implementations.

Minor Changes

  • #510 7f0fc3f Thanks @ErnoW! - Add Moralis.Auth package to handle authentication via the Moralis Authentication Api. And add a demo project for parse-server

Patch Changes

2.0.0-alpha.2

Minor Changes

Patch Changes

2.0.0-alpha.1

Major Changes

Patch Changes

  • Updated dependencies [44b062f]:
    • @moralisweb3/core@2.0.0-alpha.1
    • @moralisweb3/evm@2.0.0-alpha.1
    • @moralisweb3/evm-api@2.0.0-alpha.1
    • @moralisweb3/server@2.0.0-alpha.1

2.0.0-alpha.0

Major Changes

  • #443 6ce5c1f Thanks @ErnoW! - Alpha Release of SDK v2

    The SDK has been rewritten from the ground up with the aim to have a future-proof SDK that is better scalable and comes with lots of developer-experience improvements:

    • First hand Typescript support
    • Modular system where Functionalities split up in smaller libraries
    • More consistent data handling (like addresses and chains)
    • Better Error handling and error codes that help debugging
    • Logging system, for easier debugging
    • More flexible by providing configuration options

    This first alpha release has limited functionalities and is not feature-complete compared to v1 yet. Functionalities that are included are:

    • Support to be used in package managers (as npm/yarn)
    • Connect to an EVM network with Metamask or Walletconnect
    • Authenticate to the server via Metamask, Walletconnect or Signup/Signin with password
    • Evm utilities functions as transferNative, transferErc20, and executeFunction
    • EvmApi (previously web3Api)

    Not supported in this release yet

    • NodeJs and react-native support
    • CDN import by using a script tag
    • Plugins
    • Solana support
    • Additional connectors besides Metamask and Walletconnect

    Datatypes

    A new concept in this release is the use of Moralis datatypes. For example, all chains will be an instance of the EvmChain class. Then to get the chain in decimal value (like 1 for etherem mainnet), just call address.decimal. Or to get the value as hex-string, call address.hex.

    These datatypes will be used everywhere within the Moralis sdk.

    • Everywhere, where data is returned, we transform them to correct dataTypes. For example, all addresses returned by the EvmApi, metamask, or Moralis.Evm.Transfer will be an EvmAddress
    • Anywhere where you can provide an datatype as input, you can provide: an instance of the dataType, or any of the accepted input values for that dataType. For example: anywhere where a chain param is accepted, you can provide "0x1", 1, "ethereum" or an excisting instance of EvmChain

    For example:

    • After calling Moralis.Evm.connect, you will get an account that is an instance of EvmAddress, and a chain that is an instance of EvmChain
    • When providing a contractAddress in the EvmApi, you can provide an instance of EvmAddress, a lowercase address, or a checksum address

    These classes come with more utilities, depending on the dataType, but in general these are common methods:

    • DataType.create("inputvalue"), to create a new instance of the datatype. In most cases the inputvalue can be of different types. For example for EvmChain this can be: "0x1", 1, "ethereum". All values will create the same instance of the DataType.
    • dataType.equals(value), will check equality of 2 different dataTypes. For example:
      const chain = EvmChain.create('ethereum');
      chain.equals(1); // -> true
      chain.equals('0x1'); // -> true
      chain.equals(EvmChain.create(1)); // -> true
    • dataType.format(): will format the dataType to a readable format. For some dataTypes, this formatting behaviour can be set in the config (when calling Moralis.start)
    • For object types (like Erc20): dataType.toJSON(), will format the internal value to a JSON object

    Overview of the most used dataTypes are:

    • EvmChain: a chain/chainId
    • EvmAddress an evm address
    • Erc20: a Erc20
    • EvmNft: a Erc721 or Erc1155
    • Erc20Value: a Erc20 value, with utilities to read the value (taking the decimals into account)
    • EvmNative: a representation of native currency with utils to format to wei, gwei or ether
    • EvmTransaction: a non published transaction
    • EvmTransactionResponse: a published transaction
    • EvmTransactionReceipt: a confirmed transaction

    Use individual packages

    You can use all functionalities of Moralis by installing the main package moralis.

    But you can also opt-in to only install individual packages. To do so:

    1. Make sure to install the core package, this one is always required: npm install @moralisweb3/common-core or yarn add @moralisweb3/common-core
    2. Install the specific packages that you want. For example npm install @moralisweb3/evm-api or yarn add @moralisweb3/evm-api
    3. Register the installed package to the Core module, at the top of your code, before any interaction with Moralis:
      import Core from '@moralisweb3/common-core';
      import EvmApi from '@moralisweb3/evm-api';

    Core.registerModules([EvmApi]);

    4. Then to start/initialise:
     ```javascript
     Core.start(yourConfig)
    

    Notes:

    • some modules require certain configurations to be set. For example, to use the server module, you should provide serverUrl and appId in the config
    • Some functionalities have dependencies on other modules. If these are not installed, you will get an error that these modules are required. For example authenticating via metamask requires not only the Server module to be installed, but also the Evm module

    Configuration

    When calling Moralis.start, you will have more options to configure the usage of moralis. These are the options that you can specift:

    • logLevel: the detail level of console.logs that you will see. This allows for easy debugging. By default
    • defaultEvmApiChain: the default chain that is used in EvmApi calls
    • authenticationMessage: the default authentication message when signing messages to authenticate
    • appId: your server appId
    • serverUrl: your serverUrl
    • apiKey: your apiKey. Used for making apiCalls directly via REST instead of using your server. Only use this in your nodeJs backends.
    • formatEvmChainId: then default way of formatting chains (when calling chain.format())
    • formatEvmAddress: the default way of formatting addresses (when calling address.format())

    New features

    Core

    Modules

    • Register modules via Core.registerModules([TheModule])
    • Remove module via Moralis.Core.modules.removeModule("moduleName")

    Configuration

    • Set configuration via Moralis.config.set("key", value)
    • Read configuration via Moralis.Core.config.get("key")

    Umbrella

    • Moralis.start accepts more configuration options

    Evm

    Registering and removing new connectors

    Supported connectors by moralis are exported as its own package. To use them, you need to install them seperately (except for the metamask connector, that is included by default).

    Then register the connector like:

    import WalletConnectConnector from '@moralisweb3/evm-wallet-connect-connector';
    Moralis.Evm.connectors.register(WalletConnectConnector);

    If you wish to remove them (not recommended but there might be an exotic use-case):

    Moralis.Evm.connectors.remove('wallet-connect'); // Use the name of the connector

    EvmApi

    Default chain

    • By default, the provided chain will be used that is supplied as param
    • Otherwise, the chain will be used that is used to connect to the evm (after calling Moralis.Evm.connect)
    • Otherwise, the default chain will be used. It can be set in the config when calling Moralis.start: Moralis.start({defaultEvmApiChain: 'polygon'}). This value will default to 'eth'

    Default address

    • By default, the provided address will be used that is supplied as param
    • Otherwise for some endpoints that, the address will be used that is used to connect to the evm (after calling Moralis.Evm.connect). These are mainly the EvmApi.account endpoints

    Breaking changes

    Since the SDK has been completely rewritten, we advise to check the Typescript types, sourcecode, or response values. As some values might have changed or renamed. A lot of types have been changed to use Moralis datatypes (as EvmChain, EvmAddress etc.)

    EVM

    Transfer

    Moralis.transfer has been split up in different functions: Moralis.Evm.transferNative Moralis.Evm.transferErc20, transferErc721 and transferErc1155

    Add Metamask network

    Switch metamask network has been changed. It is no longer required to connect to metamask before calling this method. It can be called as MetamaskConnector.switchNetwork('0x3'); (or any EvmChain value)

    Switch Metamask network

    Add metamask network has been changed. It is no longer required to connect to metamask before calling this method. It can be called as MetamaskConnector.addNetwork('0x3'); (or any EvmChain value)

    Connect to an Evm Network via metamask

    Moralis.enableWeb3 has been renamed to Moralis.Evm.connect. Connecting works by specifying the walletName and additional options.

    To connect via metamask: Moralis.Evm.connect("metamask", {silent: false})

    Connect to an Evm Network via walletconnect

    install the walletconnect connector package: @moralisweb3/evm-wallet-connect-connector

    Then import it and register the connector

    import WalletConnectConnector from '@moralisweb3/evm-wallet-connect-connector';
    Moralis.Evm.connectors.register(WalletConnectConnector);

    Then call: Moralis.Evm.connect("walletconnect", options)

    Reading data after connecting

    • To read the connected account has been renamed to Moralis.Evm.account and returns an EvmAddess
    • To read the connected chain has been renamed to Moralis.Evm.chain and returns an EvmChain

    Events

    Listening to events about connecting to a network can be done by using:

    • onConnecting
    • onConnected
    • onDisconnected
    • onConnectingError
    • onAccountChanged
    • onChainChanged
    • onProviderUpdated

    Server

    Authenticate via Metamask

    Moralis.Server.authenticate('evm', { connector: 'metamask' })}

    Authenticate via Walletconnect

    Make sure that the Walletconnect connector is added to Moralis.Evm:

    install the walletconnect connector package: @moralisweb3/evm-wallet-connect-connector

    Then import it and register the connector

    import WalletConnectConnector from '@moralisweb3/evm-wallet-connect-connector';
    Moralis.Evm.connectors.register(WalletConnectConnector);

    Then call

    Moralis.Server.authenticate('evm', { connector: 'wallet-connect', chainId: 56 })}

    Set authentication message

    Setting authentication messages can be done by providing {authenticationMessage: "Your message"} in Moralis.start

    SignUp

    Signup to the server can now be done via a single function Morlais.server.signUp({username, password, email, fields})

    SignIn

    Renamed to Moralis.Server.signIn({username, password})

    Get current user

    To get the current user you now can use:

    • For getting the user synchronously: Moralis.Server.currentUser()
    • For getting the user asynchronously: Moralis.Server.currentUserAsync()

    Link and unlink evm addresses

    • To link an EvmAddress, call Moralis.Server.linkEvmAddress, it accepts any EvmAddress value
    • To unlink an EvmAddress, call Moralis.Server.unlinkEvmAddress, it accepts any EvmAddress value

    Server utilities

    Server classes as Moralis.Query , Moralis.User etc. have been renamed to Moralis.Server.Query, Moralis.Server.User etc. Any missing classes or methods can be accessed by using Moralis.Server.instance(). This will return the instance of the server which has the Query, User etc. namespaces in it.

    Events

    Listening to state changes regarding authentication can be done via:

    • onInitialized
    • onAuthenticating
    • onAuthenticated
    • onAutenticatingError
    • onLoggedOut

    EvmApi

    Web3Api has been renamed to EvmApi.

    Response of EvmApi

    Response of any EvmApi request has been changed. You now get 3 result

    • response.result: the returned data from the api has been transformed into more usable datatypes and more consistent formatting
    • response.toJSON(): the result from response.result but transformed into JSON objects and primitive types
    • raw: the result as it is returned from the api without any changes. This is the same object a you get with manual requests, or as was implemented in v1.

Patch Changes

  • Updated dependencies [6ce5c1f]:
    • @moralisweb3/core@2.0.0-alpha.0
    • @moralisweb3/evm@2.0.0-alpha.0
    • @moralisweb3/evm-api@2.0.0-alpha.0
    • @moralisweb3/server@2.0.0-alpha.0