Quickstart
Install
npm install @stable-io/sdkyarn add @stable-io/sdkInitialize the SDK
import { ViemSigner } from "@stable-io/sdk";
import { privateKeyToAccount } from "viem/accounts";
import StableSDK from "@stable-io/sdk";
const privateKey = process.env.EVM_PRIVATE_KEY;
const account = privateKeyToAccount(privateKey);
const sdk = new StableSDK({
network: "Testnet",
signer: new ViemSigner(account),
rpcUrls: { // optional
Ethereum: "https://ethereum-sepolia.rpc.subquery.network/public",
},
});
How to use the SDK
Last updated
Was this helpful?
