Sign a Transaction

In this guide, we will explain how to sign a transaction, which is the second step of Overledger's prep-sign-execute process in order to submit transactions to the blockchain.

Prerequisites

Call the endpoint

🚧

Currently you can call this endpoint only with the address 8pouQXqfCkLnuoUoENTTTMvonweP5naNctDWHqLi7zfy and nonce account HT2THDwaenfU1kjbYDjLi3dmG8LwGSHTYuSFxdRLWM8a. Overledger Beta's wallet will soon be upgraded in order to allow any address to be used.

For example, to sign a payload obtained from preparing a transaction using the account 8pouQXqfCkLnuoUoENTTTMvonweP5naNctDWHqLi7zfy.

curl --request POST \
     --url https://hook.eu2.make.com/dfxyb9e3llia9kphgrpee75gschfxybh \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "payload": "AQADBugIL2flJv0I6SG9F1cW/ntauqeP08wzESVIHN/wW04S5TKChH33KIpwWrq81Gr7Dm75JCHSzSeOb3NYbPqDNKIN0m4KWSjxkJ4rBZ52/9LwUoPVlviPRKbo+2wEi/AIegAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABUpTWpkpIQZNJOhxYNo4fHw1td28kruB5B+oQEEFRI0Gp9UXGSxWjuCKhF9z0peIzwNcMUWyGrNE2AYuqUAAAPyl5OyKwISNr/ELf2PAcYKrs49jbSUogPALouWOqbKrAwMDAQUABAQAAAAEAQAFc29sdHIDAgACDAIAAADoAwAAAAAAAA==",
  "signingAccountId": [
    "8pouQXqfCkLnuoUoENTTTMvonweP5naNctDWHqLi7zfy"
  ]
}
'

If the request is successful, you would receive a response containing the signed transaction, which you need in order to submit it to the network:

{
  "signed": "011e9b01cf625406b1aa65b89f16f22f1a08fa02c5cfcdd3901f78b2bbef0e2d7fc9e86007fb6533bd7e70ba8e0f7e4d8a584c5b9de3c4b0f7829b0ad377f5670901000306744123f92739b67f91bb086af6ed631268abd4d7baacf2df89946d49ea22a238d97c208435aaffe470d090f1f4e8dc3a55b5300482fc05a485ee6a239bce7392f465bc212d02b159079ba3d5ed01d62ec5b42d9e19162e5b27be8ce8280e80bf0000000000000000000000000000000000000000000000000000000000000000054a535a992921064d24e87160da387c7c35b5ddbc92bb81e41fa8404105448d06a7d517192c568ee08a845f73d29788cf035c3145b21ab344d8062ea94000000ed5baec815133545a6a3d44ecd40ee0a74ca007be8a96afab38fcaa4b3e54bc03030302050004040000000401000b616e79206d657373616765030200010c020000001027000000000000"
}