This is the gateway to our infrastructure, it is straightforward, developer agnostic and provides a permisionless and free set up to interact with our protocol and make it abstracted to your user.
import{Stratify}from'stratify-sdk';// Initialize the Stratify providerconstprovider=newStratify();// Example of using the provider to fetch some data over readable user domaintry{awaitprovider.getBalance('alra.eth');console.log('Account Balance:',balance);}catch{console.error('Error fetching balance:',error);};
from stratify-sdk import Stratifydeffetch_balance(): provider =Stratify()# Initialize the Stratify providertry: balance = provider.get_balance('alra.eth')print('Account Balance:', balance)exceptExceptionas error:print('Error fetching balance:', error)
The SDK provides:
1. Stratify Blockchain Interactions*
Abstracted view and executing methods. You'll get all the available data and blockchain configurations as you desire.
2. UI Components and IFrames
We present a range of customizable components and IFrames easily embeddable on traditional financial infrastructure.
3. Embedded wallet creation with Passkeys
Enables the creation of non-custodial wallets that eliminate the need for passwords and seed phrases.
They maintain stringent privacy, not requiring users to share any personal details, including email, phone numbers, or even usernames.
Minimalistic demo of passkeys login flow
4. Assets Abstraction Layer*
For a user to deposit on one of our clients vaults they shouldn't have to own each needed asset.
An asset abstraction layer will seamlessly convert assets at your desire when depositing and withdrawing from the vault.
Track the historical performance, see deposits and withdraws at real time and the fee revenue generating.
Admin Dashboard Demo, updates coming soon...
ZK Dex Aggregator*
We expect slippage and pool fees to be the main leak of entropy on the efficiency of our systems.
Our actual architecture leverages Uniswaps Smart Router to swap from asset to asset, but many times the most efficient path isn't the most direct:
Possible pathes for wapping ETH for BTC
To enable all the rebalancing transfers to be as frictionless as possible we'll use RISC Zero's Steel, to ZK proof over a collection of public source DEX aggregators to proof onchain the correct execution of the program and executing its outputs (the most slippage-efficient path).
<?php
require_once 'Stratify.php';
// Initialize the Stratify provider
$provider = new Stratify();
// Use the provider to fetch some data over a readable user domain
try {
$balance = $provider->getBalance('alra.eth');
echo 'Account Balance: ' . $balance;
} catch (Exception $error) {
echo 'Error fetching balance: ' . $error->getMessage();
}
?>