Bitcoin / Litecoin
Last updated
Last updated
Bitcoin and Litecoin chains support the following signature kinds
:
Psbt
, partially signed bitcoin transaction, or PSBT.
Bip322
, generic message defined in .
Signs a partially signed bitcoin transaction.
blockchainKind
Bitcoin
String
kind
Psbt
String
psbt
The hex encoded PSBT.
String
First install the BitcoinJS SDK. You can find the full documentation here:
Here a code sample to generate a signature via :
network
A supported Bitcoin network.
String
kind
Bip322
String
message
The generic message hex encoded.
String
format
Either Simple
or Full
. Defaults to Simple
if not present. The formatted signature is returned in the signedData
field in the response.
String (optional)
Signs a generic message using . Note: signing payload construction depends on the targeted blockchain. Therefore it's tied to a specific network
rather than the blockchain kind.