-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: create
commonTransactionParameters
to hold parameters that ar…
…e common between all transaction types (#209) Signed-off-by: Rob Walworth <[email protected]>
- Loading branch information
Showing
2 changed files
with
72 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Common Transaction Parameters | ||
|
||
There are common parameters that can be set for all Hedera transaction types. This document specifies a common JSON object that should be added to all transactions that encapsulates these common parameters. | ||
|
||
## Transaction Parameter Object Definition | ||
|
||
| Parameter Name | Type | Required/Optional | Description/Notes | | ||
|--------------------------|--------------|-------------------|----------------------------------------------------------------------------------| | ||
| transactionId | string | optional | | | ||
| maxTransactionFee | int64 | optional | Units of tinybars | | ||
| validTransactionDuration | int64 | optional | Units of seconds | | ||
| memo | string | optional | | | ||
| regenerateTransactionId | bool | optional | | | ||
| signers | list<string> | optional | List of DER-encoded hex strings of all additional private keys required to sign. | | ||
|
||
## Example Usage | ||
|
||
If the `createAccount` method were to contain this object and name it `"commonTransactionParams"`, its usage would look like: | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 99232, | ||
"method": "createAccount", | ||
"params": { | ||
"key": "302a300506032b6570032100e9a0f9c81b3a2bb81a4af5fe05657aa849a3b9b0705da1fb52f331f42cf4b496", | ||
"receiverSignatureRequired": true, | ||
"commonTransactionParams": { | ||
"signers": [ | ||
"302e020100300506032b65700422042031f8eb3e77a04ebe599c51570976053009e619414f26bdd39676a5d3b2782a1d" | ||
] | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters