SDK Integration Guidelines and Best Practices
The current SDK is accessed as a singleton. All functions called through Abstrakt.shared.
The Authenicate function must be called first to connect the SDK to supported blockchains. Authenticate estabilishes a real-time connection with Abstrakt’s services.
The SDK provides 2 types of interfaces to access blockchain data, accounts & connections:
- function calls - returns data via completion block
- delegates - returns data whenever there are any changes
We recommend using fuction calls to initializing UI and ‘get’ specific data for one-time consumption.
We recommend listening to delegates to update UI and/or trigger actions. Delegates push new data (transactions, account updates, etc.) to all listeners.
More info coming!