Vana SDK - v4.1.0
    Preparing search index...

    Interface WriteSession

    An open write session: the bearer token plus what it was minted for.

    interface WriteSession {
        personalServerUrl: string;
        audience: string;
        grantId: string;
        accessToken: string;
        expiresAt: number;
        writeScopes: readonly string[];
        signer: WriteSigner;
    }
    Index

    Properties

    personalServerUrl: string

    Personal Server origin, without a trailing slash.

    audience: string

    Web3Signed audience every proof under this session is addressed to.

    grantId: string

    The write-grant the session is bound to.

    accessToken: string

    The bearer token (vana_write_...).

    expiresAt: number

    Unix milliseconds after which the token is no longer accepted.

    writeScopes: readonly string[]

    Write patterns (prefix stripped) the session may write into.

    signer: WriteSigner

    The builder key the session was opened with; signs every write proof.