File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def create_account(
4848 else soroban_models .NetworkConfig .from_network (network = network )
4949 )
5050
51- horizon_server = stellar_sdk .Server (network .rpc_url )
51+ horizon_server = stellar_sdk .Server (network .horizon_url )
5252 source_account_ = horizon_server .load_account (identity .public_key )
5353
5454 # the new account itself
@@ -110,7 +110,7 @@ def create_asset(
110110
111111 # Transactions require a valid sequence number that is specific to this account.
112112 # We can fetch the current sequence number for the source account from Horizon.
113- horizon_server = stellar_sdk .Server (network .rpc_url )
113+ horizon_server = stellar_sdk .Server (network .horizon_url )
114114 distributor_account = horizon_server .load_account (distributor .public_key )
115115
116116 asset = stellar_sdk .Asset (code = name , issuer = issuer .public_key )
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ def from_source_account(
6666
6767
6868class NetworkConfig (BaseSettings ):
69+ # https://horizon.publicnode.org
6970 horizon_url : HttpUrl = HttpUrl ("https://horizon-testnet.stellar.org" )
7071 rpc_url : HttpUrl = HttpUrl ("https://soroban-testnet.stellar.org" )
7172 network_passphrase : str = Network .TESTNET_NETWORK_PASSPHRASE
You can’t perform that action at this time.
0 commit comments