Polkadot Apps
    Preparing search index...

    Options for publishing a single statement.

    interface PublishOptions {
        channel?: string;
        decryptionKey?: Uint8Array<ArrayBufferLike>;
        topic2?: string;
        ttlSeconds?: number;
    }
    Index

    Properties

    channel?: string

    Channel name for last-write-wins semantics.

    When provided, the statement is tagged with blake2b(channel). For a given channel, only the most recent statement is kept.

    "presence/peer-abc123", "handshake/alice-bob"
    
    decryptionKey?: Uint8Array<ArrayBufferLike>

    Decryption key hint (32 bytes).

    Used by the statement_posted RPC method to filter statements. Typically set to the blake2b hash of the room or document ID.

    topic2?: string

    Secondary topic for additional filtering.

    Hashed with blake2b and set as topic2. Useful for scoping statements to a specific room, document, or context.

    "doc-abc123", "room-456"
    
    ttlSeconds?: number

    Time-to-live in seconds. Overrides StatementStoreConfig.defaultTtlSeconds.