Polkadot Apps
    Preparing search index...
    • Check whether an account is authorized to store data on the Bulletin Chain.

      Queries TransactionStorage.Authorizations for the given address and returns the raw authorization quota. Use this as a pre-flight check before calling upload to provide clear UX ("not authorized" / "insufficient quota") instead of letting the transaction fail mid-execution.

      The expiration block number is returned as-is — the chain enforces expiration at submission time, so callers can optionally compare against the current block for display purposes.

      Parameters

      • api: BulletinApi

        Typed Bulletin Chain API instance.

      • address: string

        SS58-encoded account address to check.

      Returns Promise<AuthorizationStatus>

      Authorization status with remaining quota.

      import { checkAuthorization } from "@polkadot-apps/bulletin";

      const auth = await checkAuthorization(api, address);
      if (!auth.authorized) {
      console.error("Account is not authorized for bulletin storage");
      } else if (auth.remainingBytes < BigInt(fileBytes.length)) {
      console.error(`Insufficient quota: ${auth.remainingBytes} bytes remaining`);
      }

      BulletinClient.checkAuthorization for the client method equivalent.