You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const StellarSdk = require('stellar-sdk');
async function test() {
const server = new StellarSdk.Server("http://test"); // Use the destructured Server
}
test();
Expected behavior
object is instantiated
The text was updated successfully, but these errors were encountered:
There are two Servers now: one in the rpc namespace and the other in the Horizon namespace (which is probably the one you're looking for). This happened two major versions ago (see the v11.0.0 release notes).
Describe the bug
StellarSdk.Server is not a constructor when trying to instantiate new object
What version are you on?
stellar-sdk-13.1.0
To Reproduce
Steps to reproduce the behavior:
Install node/npm
Copy below code to js file
Execute below code
Expected behavior
object is instantiated
The text was updated successfully, but these errors were encountered: