We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf00a8 commit 4ef4d3bCopy full SHA for 4ef4d3b
packages/stellar_client/lib/src/helpers.dart
@@ -40,6 +40,22 @@ Future<List<BalanceInfo>> getBalanceByAccountID({
40
}
41
42
43
+Future<AccountResponse> getAccount({
44
+ required NetworkType network,
45
+ required String accountId,
46
+}) async {
47
+ late StellarSDK _sdk;
48
+ switch (network) {
49
+ case NetworkType.TESTNET:
50
+ _sdk = StellarSDK.TESTNET;
51
+ break;
52
+ case NetworkType.PUBLIC:
53
+ _sdk = StellarSDK.PUBLIC;
54
55
+ }
56
+ return await _sdk.accounts.account(accountId);
57
+}
58
+
59
class _TempTx {
60
final String href;
61
final PaymentOperationResponse response;
0 commit comments