[SOLVED] Returning undefined in testnet

 const options = {
            chain: "bsc",
            transaction_hash: "0xd384d77b0785c07c9cd07eea8d61f7047116d23d79cc8c2f6dab5541fe3c0034"
          };
          const transaction = await Moralis.Web3API.native.getTransaction(options);
                                console.log(transaction)

logs undefined. but if I input mainet tx it give result. my server is using test net

solved : refer to : https://docs.moralis.io/moralis-server/web3-sdk/intro

had to replace bsc with bsc testnet

1 Like