Skip to content

Commit b5c0d44

Browse files
committed
Revert stellar_client.dart changes
1 parent 47f21ad commit b5c0d44

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import 'package:stellar_client/stellar_client.dart';
22

33
void main() async {
4-
final stellarClient = Client(NetworkType.PUBLIC,
5-
'SCVWI4TCVUPB7EN4I5X5DQ56RV5E3JNFWDY2NHJCBXOMH5WKVCJ4RSGG');
6-
// print({stellarClient.accountId, stellarClient.secretSeed});
7-
// print(await stellarClient.getBalance());
8-
final balance = await getBalanceByAccountID(
9-
network: NetworkType.PUBLIC,
10-
accountId: 'GBE366DFQTLJNQSAWAE2YSGLAPXS4MZMJPCIBKWCHUUKMQLIJ2PNUIFC');
4+
final stellarClient = Client.create(NetworkType.PUBLIC);
5+
await stellarClient.activateThroughThreefoldService();
116

12-
print('balanceeeee: $balance');
7+
await stellarClient.transfer(
8+
destinationAddress: "destination-public-key",
9+
amount: "20",
10+
currency: "TFT",
11+
memoText: "Memo Text");
12+
13+
await stellarClient.getTransactions();
1314
}

0 commit comments

Comments
 (0)