signTransaction

Calculates the full hash, signature hash, and transaction ID of an unsigned transaction.

Request: requestType is signTransaction unsignedTransactionBytes is the unsignedTransactionBytes field of the transaction (optional, if unsignedTransactionJSON provided) unsignedTransactionJSON is the transactionJSON field of the transaction, without a signature subfield secretPhrase is the secret passphrase of the signing account

Response:

(S) signatureHash is the SHA-256 hash of the transaction signature, used in escrow transactions (B) verify is true the signature is verified, false if not (N) requestProcessingTime is the API request processing time (in millisec) (S) transactionBytes is the the signed transaction bytes (S) fullHash is the full hash of the signed transaction (S) transaction is the transaction ID, derived from the fullHash

Example:

Request:

http://localhost:801/BEAM?requestType=signTransaction&unsignedTransactionBytes=01104ec93f071800a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12b31119f931eaa6d4000000000000000018370b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000003ac07005ac8e8794cc6d21001210000805468697320697320612073656e644d65737361676520415049206578616d706c65&secretPhrase=IWontTellYou

Response:

{ “signatureHash”: “2bcbafeab7a0bae40337fe34adea84110b1f770a33841c95f3fe9e19dde41bae”, “verify”: true, “requestProcessingTime”: 2, “transactionBytes”: “01104ec93f071800a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12b31119f931eaa6d4000000000000000018370b*”, “fullHash”: “0f37d045bc7d4f2bd85cb565a5c4e575464ac387b986f80fb8c31635cf03923e”, “transaction”: “3120851314369640207” }

Last updated