BlockchainTransaction (for ARK)
BlockchainTransaction[assoc]
represents an ARK blockchain transaction built from the components in the association assoc.
Details
- Gives a symbolic representation of an ARK blockchain transaction; it does not submit the transaction, and the transaction is not signed.
- BlockchainTransaction[…][prop] gives the value of the property prop for the transaction.
- The following ARK transaction types are supported. The type is specified using the "Type" element of the association assoc:
-
"Transfer" store-of-value and value transfer "SecondSignature" add a second signature to an address "DelegateRegistration" register an address as a delegate "Vote" vote for a delegate "IPFS" store IPFS CID on the blockchain "DelegateResignation" withdraw delegate status "MultiPayment" enables multiple combined payments "MultiSignature" multisignature transaction - For transactions of type "Transfer", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Recipient" destination address "Amount" amount of ARKtoshis to be transferred - The following additional elements can also be given for type "Transfer":
-
"Type" type of transaction "Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address "VendorField" data field with a maximum size of 255 bytes - For transactions of type "SecondSignature", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction "SecondPublicKey" secondary public key to assign to address - The following additional elements can also be given for type "SecondSignature":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address - For transactions of type "DelegateRegistration", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction "Username" username to register - The following additional elements can also be given for type "DelegateRegistration":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address - For transactions of type "Vote", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction "Delegate" username or public key of a delegate to vote for - The following additional elements can also be given for type "Vote":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address - For transactions of type "IPFS", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction "CID" CID of the IPFS asset - The following additional elements can also be given for type "IPFS":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address - For transactions of type "DelegateResignation", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction - The following additional elements can also be given for type "DelegateResignation":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address - For transactions of type "MultiPayment", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction "Payments" list of associations for each payment - The following additional elements can also be given for type "MultiPayment":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one "SenderPublicKey" public key of the sender address - Each association in the "Payments" list must have the following entries:
-
"Amount" amount of ARKtoshis to be transferred "Recipient" destination address - For transactions of type "MultiSignature", the following elements must be given:
-
"BlockchainBase" blockchain base to use "Type" type of transaction "PublicKeys" list of public keys for all of the participants of this multisignature address "MinimumKeys" minimum number of signatures needed to send a transaction with this multisignature address as sender "SenderPublicKey" public key of the sender address - The following additional elements can also be given for type "MultiSignature":
-
"Fee" dynamic fee to be included "TransactionCount" current sender's transaction count plus one - If the sender of the transaction is a multisignature address, the "SenderPublicKey" field becomes mandatory when creating the transaction.
- BlockchainTransaction can represent ARK mainnet (default) and devnet transactions. To specify these networks, use the "BlockchainBase" value inside the required association or the BlockchainBase option.
Examples
open allclose allScope (16)
Transfer Transactions (3)
Second Signature Transactions (1)
Delegate Registration Transactions (2)
Vote Transactions (3)
IPFS Transactions (2)
Delegate Resignation Transactions (2)
Multipayment Transactions (2)
Options (2)
Applications (2)
Create an ARK BlockchainTransaction:
Sign the transaction object using a private key object:
Send the signed transaction to the ARK blockchain:
Create an ARK BlockchainTransaction that uses a multisignature address:
Sign the transaction with the minimum amount of required keys:
Possible Issues (1)
Incorrect Recipient (1)
Providing an invalid address will return a $Failed output:
Text
Wolfram Research (2019), BlockchainTransaction, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-ARK.html.
CMS
Wolfram Language. 2019. "BlockchainTransaction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-ARK.html.
APA
Wolfram Language. (2019). BlockchainTransaction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTransaction-ARK.html