prorm API Reference
    Preparing search index...

    Class BigchaindbStore

    BigchaindbStore wraps a bigchaindb-driver connection + transaction factory behind the shared ledger surface.

    Implements

    Index
    name: "bigchaindb" = 'bigchaindb'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "bigchaindb-driver" = 'bigchaindb-driver'

    The client library being used

    • Build, sign and commit a CREATE transaction registering a new asset whose immutable asset.data is { table, ...data }. Returns the resulting transaction id (its content hash). Requires options.keypair.

      Parameters

      • table: string
      • data: Record<string, unknown>

      Returns Promise<string>

    • Fetch a transaction by its id (get(_, id)). Returns the signed transaction.

      Parameters

      • _table: string
      • id: string

      Returns Promise<unknown>

    • List every transaction (CREATE + subsequent TRANSFERs) for the asset id

      • the append-only history of that asset. Uses listTransactions.

      Parameters

      • _table: string
      • id: string

      Returns Promise<unknown>

    • Return the signed transaction id as its own proof of integrity: its Ed25519 signatures and content-hash id are what any party independently re-verifies against the asset data. Returns { id, valid, transaction }.

      Parameters

      • _table: string
      • id: string

      Returns Promise<{ id: string; valid: boolean; transaction: unknown }>

    • Full-text search over asset data via searchAssets.

      Parameters

      • text: string

      Returns Promise<unknown>