transactions
Create transaction signing message
This API creates transaction signing message for client to create transaction signature.
The success response contains hex-encoded signing message bytes.
To sign the message
- Client first needs to HEX decode the message into bytes.
- Then sign the bytes to create signature.
post/transactions/signing_message
Request body
Example request
{
"sender": "0xdd",
"sequence_number": "32425224034",
"max_gas_amount": "32425224034",
"gas_unit_price": "32425224034",
"gas_currency_code": "XDX",
"expiration_timestamp_secs": "1635447454",
"payload": {
"type": "script_function_payload",
"function": "0x1::payment_scripts::peer_to_peer_with_metadata",
"type_arguments": [
"0x1::xdx::XDX"
],
"arguments": [
"0x1668f6be25668c1a17cd8caf6b8d2f25",
"2021000000",
"0x",
"0x"
]
},
"secondary_signers": [
"0xdd"
]
}Response
Returns hex-encoded transaction signing message bytes.
Example response
{
"message": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1"
}