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

    Function openWriteSession

    • Open a write session against a Personal Server.

      Parameters

      • params: OpenWriteSessionParams

      Returns Promise<WriteSession>

      The session to pass to writeData.

      Sends POST /v1/write/session with a Web3Signed Authorization header whose signed claims carry grantId. The handshake proof is single-use on the server; a transport retry signs a new one.

      When the Personal Server refuses the handshake (errorCode names why: UNREGISTERED_BUILDER, GRANT_REQUIRED, GRANT_REVOKED, SCOPE_MISMATCH for a grant without write entries, INVALID_SIGNATURE when the key is not the grantee, GRANT_OWNER_MISMATCH, ...).

      When fetch threw on every attempt.

      When the signer is unusable.