File tree 1 file changed +9
-8
lines changed
packages/stellar_client/bin
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:stellar_client/stellar_client.dart' ;
2
2
3
3
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 ();
11
6
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 ();
13
14
}
You can’t perform that action at this time.
0 commit comments