signTransaction
Signs a transaction and returns a broadcast-ready serialized transaction. The payload shape is network-specific.
info
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: '',
payload: { keyPath: '', /* network-specific */ }
}) // → body.parameter = { signature }
info
Bitcoin only — the legacy and SegWit accounts share one chainId and one m/44' keyPath, so add addressFormat to the payload to say which one is signing. 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.
Supported Networks
- Ethereum / EVM →
- Kaia →
- Bitcoin →
- Litecoin →
- Dogecoin →
- Dash →
- Bitcoin Cash →
- eCash →
- Zcash →
- Bitcoin Gold →
- DigiByte →
- Ravencoin →
- Solana →
- Cosmos →
- Conflux →
- VeChain →
- XRP →
- Tron →
- Stellar →
- Polkadot →
- NEAR →
- Hedera →
- Tezos →
- Stacks →
- Algorand →
- HAVAH →
- Xahau →
- Filecoin →
- Constellation →