signTransaction
Signs a transaction and returns a serialized signed transaction (the exact form depends on the network — see the network page). The payload shape is network-specific.
This is a navigation page. Payload details live on each network page — pick your network below.
Common request shape
await dcent.sign({
method: 'signTransaction',
chainId: '<CAIP-19 chainId>',
payload: { keyPath: '<keyPath>', /* network-specific */ }
}) // → body.parameter = { signature }
Bitcoin, DigiByte, Tezos and Algorand — where two accounts share one chainId and one keyPath, add addressFormat to the payload to say which one is signing: on Bitcoin and DigiByte m/44' the legacy and native SegWit accounts, on Tezos the Standard account (standard), on Algorand the Ledger account (ledger). Pass back the value you received as meta.addressFormat from getAccountInfo — but put it at the top level of payload, not inside payload.meta; sending it under meta here fails with -32602. See Bitcoin, DigiByte, Tezos and Algorand.
Supported Networks
- Ethereum / EVM →
- Kaia →
- Bitcoin →
- Litecoin →
- Dogecoin →
- Dash →
- Bitcoin Cash →
- eCash →
- Zcash →
- Bitcoin Gold →
- DigiByte →
- Ravencoin →
- Solana →
- Cardano →
- Cosmos →
- Conflux →
- VeChain →
- XRP →
- Tron →
- Stellar →
- Polkadot →
- NEAR →
- Hedera →
- Tezos →
- Stacks →
- Algorand →
- HAVAH →
- Xahau →
- Filecoin →
- Constellation →