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
As part of the march to testnet, we should unify the stellar/js-soroban-client and stellar/js-stellar-sdk repositories as follows:
Both will share the latest stellar-base version for Soroban (as of this writing, this is v10.0.0-soroban.4)
RPC code will live under the SorobanRPC namespace
Horizon code will live under the new Horizon namespace
Shared code (e.g. TransactionBuilder and friends) will be merged and live together
Previously, users would have the following scripts for separate Horizon / Soroban usage. Note that it's perfectly fine to synchronously submit a Soroban-shaped transaction to Horizon's POST /tx, you will just get a different response schema.
import{Horizon,SorobanRPC,TransactionBuilder}from'stellar-sdk';consthorizon=Horizon.Server('https://horizon.stellar.org');constrpc=SorobanRPC.Server('https://rpc-futurenet.stellar.org');constanyTx=TransactionBuilder(...).build();// two ways to submit, but **different responses**horizon.submitTransaction(anyTx);rpc.sendTransaction(anyTx);
As part of the march to testnet, we should unify the stellar/js-soroban-client and stellar/js-stellar-sdk repositories as follows:
SorobanRPC
namespaceHorizon
namespaceTransactionBuilder
and friends) will be merged and live togetherPreviously, users would have the following scripts for separate Horizon / Soroban usage. Note that it's perfectly fine to synchronously submit a Soroban-shaped transaction to Horizon's
POST /tx
, you will just get a different response schema.Now, we will have
Alternatively, they can do
if they insist on using the
default
import method.The text was updated successfully, but these errors were encountered: