@exodus/tx-signer
v3.1.0
Published
a module to sign transactions
Readme
@exodus/tx-signer
The transaction signer delegates signing of transactions to the corresponding software or hardware wallet.
flowchart LR
A[TxSigner]
A -->|software| B[SeedBasedTransactionSigner]
A -->|hardware| C[HardwareWallets]
B --> D[Keychain]
C -->|walletAccount.source == trezor| F[Trezor]
C -->|walletAccount.source == ledger| G[Ledger]Install
yarn add @exodus/tx-signerUsage
This feature is designed to be used together with @exodus/headless. See using the sdk.
Play with it
- Open the playground https://exodus-hydra.pages.dev/features/tx-signer
- Try out the some methods via the UI. These corresponds 1:1 with the
exodus.transactionSignerAPI.
API Side
See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.
const result = await exodus.transactionSigner.signTransaction({
baseAssetName: 'bitcoin',
walletAccount: WalletAccount.DEFAULT,
unsignedTx: {
txData: {
// your tx data
},
txMeta: {
// your tx meta
},
},
})