# signTransactionWithKeyStores · FT4 TypeScript client · Chromia Docs (concept)

> signTransactionWithKeyStores(
    keyStores: KeyStore [],
    authDataService: AuthDataService ,
    tx: RawGtx | GTX | SignedTransaction,
): Promise<Signe

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/transaction-builder.signTransactionWithKeyStores/

Function

# signTransactionWithKeyStores

* ```signature
  signTransactionWithKeyStores(
      keyStores: KeyStore[],
      authDataService: AuthDataService,
      tx: RawGtx | GTX | SignedTransaction,
  ): Promise<SignedTransaction>
  ```

  Same as [signTransaction](https://docs.chromia.com/pages/ft4-ts-client/functions/transaction-builder.signTransaction/) but accepts keystores instead of an authenticator. Useful if you need to sign
  a transaction that e.g., does not have access to auth descriptors. Such as when registering an account.

  #### Parameters

  + keyStores: [KeyStore](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.KeyStore/)[]

    the keystores to use for signing
  + authDataService: [AuthDataService](https://docs.chromia.com/pages/ft4-ts-client/interfaces/authentication.AuthDataService/)

    an auth data service instance to use when signing the transaction
  + tx: RawGtx | GTX | SignedTransaction

    the transaction to sign.

  #### Returns Promise<SignedTransaction>

  the signed transaction

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/transaction-builder.signTransactionWithKeyStores.html)Generated API reference, mirrored from the live docs
