Configure
SDK Constructor
Parameters
1
'Mainnet' | 'Testnet' 2
3
Example
import { ViemSigner } from "@stable-io/sdk";
import { privateKeyToAccount } from "viem/accounts";
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",
},
});Last updated
Was this helpful?
