Closed LDS1 closed 6 years ago
I should be using
Stellar.default_network = network_passphrase
before script, it's on testnet by default.
@LDS1 -- what do you use for the network_passphrase
value for https://horizon.stellar.org ?
OK, figured it out:
# This uses Stellar::Client from https://github.com/stellar/ruby-stellar-sdk
stellar_client = (
if use_testnet
Stellar.default_network = Stellar::Networks::TESTNET
Stellar::Client.default_testnet
else
Stellar.default_network = Stellar::Networks::PUBLIC
Stellar::Client.default
end
)
@LDS1 you are a life saver. I was stumped on this and this github issue saved me. thank you!
What am I doing wrong? (Using version 0.11.0)
Horizon replies with: