Pre-Build Transaction

Path Parameters:

Param

Data Type

Description

id

String

Specify the wallet ID

Request Parameter JSON

{
    "outputs":
        [
            {
              address:"DMNFznnGsFyYBFiYqRFqEJsjyRmtWSWJxJ",
              amount:1
            },
            {
              address:"DCLqKyNhuaaRv8Pwe1YE6R1WXnZQnW32is",
              amount:1
            }
        ]
}

Sample Example:

curl --location --request POST 'http://api.lmnl.dev/api/wallet/185/preBuildTransaction' \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkhlblMxVERINDFzUElCYlE1QjB3UiJ9.eyJpc3MiOiJodHRwczovL2xtbmwudXMuYXV0aDAuY29tLyIsInN1YiI6IlVUM0RLd0p1RWYxTDVMaURVN2prd25oRTE2SlUzTkt1QGNsaWVudHMiLCJhdWQiOiJodHRwczovL2Rldi5sbW5sLmFwcC9hZG1pbiIsImlhdCI6MTYzNTc2OTc0MSwiZXhwIjoxNjM1ODU2MTQxLCJhenAiOiJVVDNES3dKdUVmMUw1TGlEVTdqa3duaEUxNkpVM05LdSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.adOHCWd8yvMJvXdeB10VfG2XitDmNdhtFiK1lLy5cbwP78yf0uTscVl-ezDkWM4RQR-A1LdD_B7FuN4KwrAZKC5mwx2NekRokmv-iaa-bbNs4nxtR_2t_olezV4ONSe5vrJJz9IvhnQyrOTk93NrKJUYjw8N0aflSnLarRf9IaZFcA7kPzYCxctm0wgP6Rrzeoy4Wi9amC52HB8jhQbK7a1gyI8JwmkxBPmZTfs0fRA_Fzh9wbXlhoPz5COrbWpfCsa8tTn9OWizGP_Qd9Cnm_jR0chvsnUnKyLesneZxqIMtwO1BDTGuvsZgR-WFOHaVEvQzP3S5AUexqHemc3J7w ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "outputs":
        [
            {
              address:"DMNFznnGsFyYBFiYqRFqEJsjyRmtWSWJxJ",
              amount:1
            },
            {
              address:"DCLqKyNhuaaRv8Pwe1YE6R1WXnZQnW32is",
              amount:1
            }
        ]
}'

Response:

{
  "txHex": "70736274ff01009702000000013aa61faeb543fdb95c77281dac99b5aaf2c9ed3bfbe4d0806b2049099ad7f9d60000000000ffffffff0300e1f505000000001976a914b1ff509176a5ca3a65dcd21c3264cfb5e118d0df88ac00e1f505000000001976a9144f012c80b19ca3e8fa7feae356a39e346d56c7dd88ace474dc060000000017a914bb8beb762651152b7c8345bce4a25a2ca256d9298700000000000100e00100000001d9d74025d90007342d1805efba95cd61254da224cf50a5d8eb7f1c5d0848b517010000006b483045022100fc6009c6f8085073601bceac7b5cc24fbc65b87f939c66a43b539ba755cdb14402203d99568783b6cdca78971a7efd503126b05120a952772bbd4fda19cda0697a9e0121034cce98ec50ed833bc55c0d335196b2934d0e71801e4d469ff551a16ee20cdc44ffffffff020065cd1d0000000017a914d15ee42c0e205730390d1b51d2f0a6fc14c160f68755b6e1ed120000001976a914bf9489d8c0dc280cd8967b2dc8449b9e7d70d35088ac000000000103040100000001048b5221020bc37273befd8e61692dbe2071d37bb716445e50803db94e3c0ac0563e4749c221025369fb2b98569f655a11aa651828d5ef0d4acd0d170b4020db748b2a0a0f708b2102a22a8f726d3d3a1760ef8e1adcccefc83b69d40f74265c352ce080d3c65f0c822102a9dfe00d0b061a9e9dadca0fe56e83b24edf610a2a27ff983f19621d6851a5f054ae00000000"
}

If you want to test the API, just pass the following query parameter. Ensure that you have a valid JWT token if you don't have one then generate a JWT token from the following page:
https://docs.lmnl.app/reference/post_login-auth

Language
Authentication
OAuth2
Click Try It! to start a request and see the response here!