#error: jsonrpc error: Networking or low-level protocol error: Server returned an error status code:
1 messages · Page 1 of 1 (latest)
I'm trying to wrap an existing token and i get this error.
--rpc-url https://horizon-futurenet.stellar.cash:443/soroban/rpc --network-passphrase 'Test SDF Future Network ; October 2022'
Is this correct?
No, you have a Horizon endpoint specified.
You'll need a Soroban RPC endpoint
Can you provide the right one?
I don't know it from the top of my head, but SDF provides one for testnet and futurenet.
You can find it in the docs
Is there an easier way to wrap an existing asset? Can't really understand the documentation to wrap it correctly.
Which part of the docs are you looking at?
https://dev.to/esteblock/token-playground-6-wrap-a-token-from-stellar-classic-to-soroban-2fak
This one, i'm not sure if it's outdated or not.
If you have Soroban cli, that seems to be the easiest way yeah.
soroban lab token wrap --asset="AstroDollar:GAM5XOXRUWPMKENBGOEAKMLRQ4ENHLHDSU2L2J7TVJ34ZI7S6PHMYIGI" --secret-key SAHC723FQTC3MARBNUZLUFEIYI62VQDQH7FHLD2FGV6GROQQ7ULMHQGH --rpc-url https://horizon-futurenet.stellar.cash:443/soroban/rpc --network-passphrase 'Test SDF Future Network ; October 2022' but then replace the url with one from SDF
And the key and asset to what you have
Replacing with:
--rpc-url "http://localhost:8000/soroban/rpc"
--network-passphrase "Test SDF Future Network ; October 2022"
As i understand futurenet is the mainnet?
Uh, no, futurenet is a development network. Public or mainnet is mainnet