Comments (2)
How did you resolve this issue? I'm facing it too.
from stellar-ios-mac-sdk.
Hey @krrisztian
It takes sometime for the testnet to generate accounts from key pairs. This error is displayed if data is requested from non-existing accounts. Here's a little trick I used to solve the problem.
Once you have your TestAccount created. Use the code below to give a delay of 15 seconds just before fetching details from the account, this will give enough time for the accounts to be built before any data is fetched from them.
In order:
- Generate Key Pairs
- Build Accounts
- Give Delay of ~15 seconds
- Include getAccountDetails() in the parenthesis of the below code to access data
DispatchQueue.main.asyncAfter(deadline: .now() + 15.0) { sdk.accounts.getAccountDetails() }
Cheers!
from stellar-ios-mac-sdk.
Related Issues (20)
- CAP-38 AMM Changes HOT 2
- Issue with OperationResultXDR parsing. HOT 1
- The issue with TransactionResultXDR parsing in Protocol 18. HOT 2
- Muxed accounts should now be enabled by default. HOT 1
- Issue with OperationResultXDR parsing HOT 6
- Claimable Balance ID changes after signing XDR with Claim Claimable Balance operation. HOT 3
- Protocol 19 SDK Support HOT 4
- SEP-12 Support HOT 2
- Soroban Preview 10 Support HOT 2
- SEP 10, Error Retrieving JWT HOT 4
- Soroban simulateTransaction method HOT 3
- Support for Protocol 20: Soroban HOT 1
- Updating the SDKs to the stable Protocol 20 release HOT 2
- Updating the SDKs to the stable Protocol 20 release HOT 3
- Protocol 20: Add support for resource leeway in `simulateTransaction` HOT 1
- Add support for new fields in Soroban RPC's `sendTransaction` endpoint HOT 1
- Required changes for passing parameters when communicating with Soroban RPC. HOT 1
- Upcoming third-party SDK requirements HOT 1
- Protocol 21 SDK Support HOT 1
- Issue with parsing transaction XDR into the transaction object and back HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stellar-ios-mac-sdk.