filecoin-pin
    Preparing search index...

    Interface SessionKeyConfig

    Session key authentication with owner address and session key private key

    interface SessionKeyConfig {
        chain?: FilecoinChain;
        dataSetMetadata?: Record<string, string>;
        requiredPermissions?: Permission[];
        rpcUrl?: string;
        sessionKey: `0x${string}`;
        walletAddress: `0x${string}`;
        withCDN?: boolean;
    }

    Hierarchy

    • BaseSynapseConfig
      • SessionKeyConfig
    Index
    chain?: FilecoinChain

    Target chain. Defaults to mainnet.

    dataSetMetadata?: Record<string, string>

    Default metadata to apply when creating datasets

    requiredPermissions?: Permission[]

    Session-key mode only: the permissions this command needs. Before doing any work, we check the session key's on-chain grants cover these. If one is missing, the command stops immediately with instructions for getting it granted (console link), rather than failing later mid-transaction. Leave unset for read-only commands — they need no permissions.

    rpcUrl?: string

    RPC endpoint for the target Filecoin network. Defaults to mainnet chain transport.

    sessionKey: `0x${string}`
    walletAddress: `0x${string}`
    withCDN?: boolean

    Enable CDN service for datasets