@rhinestone/sdk, where rhinestone is the RhinestoneSDK instance from Create a session with a custom setup.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
@rhinestone/sdk, where rhinestone is the RhinestoneSDK instance from Create a session with a custom setup.
import { erc20Abi } from "viem";
import { base } from "viem/chains";
const session = await rhinestone.createSession({
chain: base,
owners: {
type: "ecdsa",
accounts: [sessionOwnerAccount],
},
permissions: [
{
abi: erc20Abi,
address: usdcAddress,
functions: {
transfer: {
validAfter: new Date(),
validUntil: new Date(Date.now() + 1000 * 60 * 60 * 24),
},
},
},
],
});
Was this page helpful?