BlockchainTransactionSign(for ARK)

$BlockchainBase = "ARK"

BlockchainTransactionSign[obj,key]

digitally signs an ARK blockchain transaction using the specified private key.

BlockchainTransactionSign[obj,{key1,key2}]

digitally signs a transaction using a first and second private key.

BlockchainTransactionSign[obj,{assoc1,assoc2,}]

digitally signs a transaction related to a multisignature address.

Details

  • Digitally sign an ARK blockchain transaction using the specified private key. If the address has a second public key associated with it, a second private key must be given to sign the transaction.
  • If the sender is a multisignature address, a list of associations with the private key of each participant must be given to sign the transaction. A minimum number of keys must be provided according to the "MinimumKeys" parameter of the multisignature address.
  • In BlockchainTransactionSign[obj,], obj is a BlockchainTransaction object.
  • The key for BlockchainTransactionSign must be a PrivateKey object, a hex string representing a private key or a private key in WIF format.
  • BlockchainTransactionSign returns a blockchain transaction object with True as the value of its property "Signed" and with the added property "RawTransaction".

Examples

open allclose all

Basic Examples  (1)

Create an ARK BlockchainTransaction:

Sign the transaction object using a private key object:

Scope  (5)

WIF Private Key  (1)

Sign an ARK transaction object using a WIF private key:

Hexadecimal Private Key  (1)

Sign an ARK transaction object using a hexadecimal private key:

Second Signature Address  (1)

When sender address has an associated second signature:

You must sign the transaction using the required private keys in a list:

Multisignature Creation  (1)

Sign an ARK transaction to create a multisignature address:

The transaction must be signed with the private keys of all of the participants:

The transaction must be signed by the sender using the private key associated with the "SenderPublicKey" field given when creating the transaction object:

Multisignature Address as Sender  (1)

Sign an ARK transaction with a multisignature address as sender. In this case, the "SenderPublicKey" is mandatory

The transaction must be signed with a minimum number of private keys from the participants according to the "MinimumKeys" parameter of the multisignature address:

Possible Issues  (1)

Incorrect Private Key  (1)

Providing an invalid private key will return a $Failed output:

Introduced in 2019
 (12.0)