Skip to main content

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.

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: '<CAIP-19 chainId>',
payload: { keyPath: '<keyPath>', /* network-specific */ }
}) // → body.parameter = { signature }
info

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​