PublishTransfer

Third step to transfer Taproot Assets to an address. This will accept the user's signed anchor psbt to broadcast to BTC network, if confirmed send proof to receiver too.

POST /api/publish-transfer

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameTypeDescription

wallet_id

string

The end user's wallet id

anchor_psbt

[]byte

Signed anchored psbt for this transfer

As request data, signed psbt MUST be finalized but NOT extracted by wallet.

Request

{
    "wallet_id":"23a06ee3-050a-46f7-9eec-68d95471dd6c",
    "anchor_psbt": "cHNidP8BANECAAAAAoupKZ8mASNgFCPOcUN5KO4xO/RLgWs1xaoHwOWTls38AQAAAAD/////rKKptRYae9Ad8bSlVy/Hov6Mz938rhPVTysapfCpUh8BAAAAAAAAAAAD6AMAAAAAAAAiUSBWtavpRQtMyv7aadgkkfEymeC2t8JaET+A3VsDA3fpsOgDAAAAAAAAIlEgzVhr5jypwtTaZfwpXdtBWh7MBLfL5GqlRrBIXOKyX+1c8SAKAAAAABYAFAtC6UPwxusmdFdvhnMxvQmlkLS9AAAAAAABAN4CAAAAAAEBkY9iNYi2TDSI4s+hqdhJtjD6Juac6pudqLH6w2xsiaoBAAAAAP////8CAC0xAQAAAAAWABQra7BxcIXSPnaj5ctV5308PcwPnuAmIQoAAAAAFgAUC0LpQ/DG6yZ0V2+GczG9CaWQtL0CRzBEAiAH74+DwBOX4eN6WLNi2S49GRheDflv7bhwyBkl7UfRwAIgHcWAvKxfKfumna2QxTjYF444jPQ1Kv9t4du0vpiqEkIBIQMogeczlXHujeNLANvMEPQj1w3V1sxRx9bs8zJVMR0E4AAAAAABAR/gJiEKAAAAABYAFAtC6UPwxusmdFdvhnMxvQmlkLS9AQhrAkcwRAIgVQh4C0yCoBVmdXlB94fGroKEr7jE6nj2W/8B7zf3dqECIAwNbCJF+SIJJHoPGGdJRKCXJQo7CximmrS4r7c3OYzMASEDKIHnM5Vx7o3jSwDbzBD0I9cN1dbMUcfW7PMyVTEdBOAAAQEr6AMAAAAAAAAiUSDpWpqAxVf3zwSghl/SOXuQG+86oiAIv6iQnKJ9JRRObwEIQgFAhgldmxXaZ5cGfShER+T20PJrRCwwTCJoH0NUZDkm36SEswaoRqowwqDrKkk+Y9K9PObB+YyZ5wsvE9ms89KLhAAiAgMAGnOUA7yrzT0AsC2EZmvpwdEGPqPQWI7BJMuJVcCbhxgAAAAA+QMAgAEAAIDUAACAAAAAAA0AAAABBSAAGnOUA7yrzT0AsC2EZmvpwdEGPqPQWI7BJMuJVcCbhyEHABpzlAO8q809ALAthGZr6cHRBj6j0FiOwSTLiVXAm4cZAAAAAAD5AwCAAQAAgNQAAIAAAAAADQAAAAFwIOrRy/HHTn06I2wUZObkSNyCppFC8fnCb2i2pXFHLuj+AXEg6tHL8cdOfTojbBRk5uRI3IKmkULx+cJvaLalcUcu6P4AAQUgMeCoox2MCERbKnJg8mEzxovsRuSiZiugo6+P1u2gxOkBcCDRxclP6YeWaQyvFfbr23k+3cKy6rNgBGtINTnAgQskgQFxINHFyU/ph5ZpDK8V9uvbeT7dwrLqs2AEa0g1OcCBCySBACICA1wO0+/H7e4jcnwfObktCRDqZdEcZzhGcwSO6o3DsE6XGAAAAABUAACAAAAAgAAAAIABAAAABwAAAAA="
}

Response

{
    "code": 0,
    "data": {
        "transfer": {
            "transfer_timestamp": 1719383337,
            "anchor_tx_hash": "yYPyIWC9Cbx0zqYW8E9jC6hVpr5LkeYg0CkVXc6oc1s=",
            "anchor_tx_height_hint": 3011,
            "anchor_tx_chain_fees": 12700,
            "inputs": [
                {
                    "anchor_point": "1ecf413f05bbcd5b937203a433bc3909cb34198047720466f477dfc28f0757be:1",
                    "asset_id": "RJfR7toUx7i1ABTCZx5kMdsRFoj8ZqhSTsBTI0c6UD4=",
                    "script_key": "AoKwbpIdG7bIOIj9H9gi5yGWijg0qHM9bK7uy+8N/Mm8",
                    "amount": 200
                }
            ],
            "outputs": [
                {
                    "anchor": {
                        "outpoint": "5b73a8ce5d1529d020e6914bbea655a80b634ff016a6ce74bc09bd6021f283c9:0",
                        "value": 1000,
                        "internal_key": "A1VrOtSIbPIaLD9MKy0qcKysWDYqxLWsRVqcTQAxvojb",
                        "taproot_asset_root": "p61FvX9FJh/iYALmjatDSRrZ1dfDnhehaK5Nn9S2v8Q=",
                        "merkle_root": "p61FvX9FJh/iYALmjatDSRrZ1dfDnhehaK5Nn9S2v8Q="
                    },
                    "script_key": "AtOQA1M9zcR8UoD1fkB1A+puxrXBHK0nhKPUM8mOOrVn",
                    "amount": 134,
                    "new_proof_blob": "VEFQUAAEAAAAAAIkvlcHj8Lfd/RmBHJHgBk0ywk5vDOkA3KTW827BT9Bzx4AAAABBFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJbogAAAAAAAAAAAb9AYACAAAAAAECAdbio2Tb/kNDHNjwIeCdCGdAV+ovHJqyx7WLLh5R2KEBAAAAAP////++VwePwt939GYEckeAGTTLCTm8M6QDcpNbzbsFP0HPHgEAAAAAAAAAAAPoAwAAAAAAACJRIFT3AqOYTBcDCACOYaStX1hqwPeXVKhCS0FdA6Jgg2v86AMAAAAAAAAiUSAoDZhnVXqSsL6BTTHDZljZ3KFIG+n8ZQF3s7qczDQ65vJDugoAAAAAFgAUC0LpQ/DG6yZ0V2+GczG9CaWQtL0CRzBEAiAjx6YgiHOwQ+MAmWLI3YcFWtgVHc9oO+cdfxY3kyFNSAIgUmRjzAtrmOsVA7UmWd9ys2uU6A2TJ+pZrYhVuerKbyMBIQMogeczlXHujeNLANvMEPQj1w3V1sxRx9bs8zJVMR0E4AFA5K7kJxq+5vHr/+MxZ3nVLUmnb9nJWiXmoZFwTHXLOQpP0RVjTKHdCwl2Rt1xt7Hzcu65zo0BKRWsqNNu751JrwAAAAAIAQAK/QFZAAEAAk7VkuHNLOMocr2fIComrlImUP8ji1pqPCHZMaxvygr/CQAAAAAEYml0cz7KRh96hCoh8Sn12ezt363XPHJ4ghiXgTugCkdF9wsNAAAAAAAEAQAGAYYLrQGrAWW+VwePwt939GYEckeAGTTLCTm8M6QDcpNbzbsFP0HPHgAAAAFEl9Hu2hTHuLUAFMJnHmQx2xEWiPxmqFJOwFMjRzpQPgKCsG6SHRu2yDiI/R/YIuchloo4NKhzPWyu7svvDfzJvANCAUBvbvXhDRBaWDcULhunwjHV3P21R/b8+W1sT2l9w0ovoZdb/jnleUplMlVADmO/EF4+ycyTCp/Vm+qcnFcHtjXLDSi9qU4ijBm5gff2c1HaVqJmu8rmVWbJfrvaX1/+MQIR4wAAAAAAAADIDgIAABAhAtOQA1M9zcR8UoD1fkB1A+puxrXBHK0nhKPUM8mOOrVnDJ8ABAAAAAACIQNVazrUiGzyGiw/TCstKnCsrFg2KsS1rEVanE0AMb6I2wN0AUkAAQACIESX0e7aFMe4tQAUwmceZDHbERaI/GaoUk7AUyNHOlA+BCIAAP//////////////////////////////////////////AicAAQACIgAA//////////////////////////////////////////8NyQHHAAQAAAABAiECDLezfjmhFA7PaDUm6qwG3hqTIODkav9OYm1XOANslSwDnAFxAAEAAiBEl9Hu2hTHuLUAFMJnHmQx2xEWiPxmqFJOwFMjRzpQPgRKAAGSDA6qqq2+tmrkN6RIwc4YSuFU7BmFEBmxSVSGaI37qQAAAAAAAABC/////////////////////////////////////////98CJwABAAIiAAD//////////////////////////////////////////xYEAAAAAA==",
                    "split_commit_root_hash": "valOIowZuYH39nNR2laiZrvK5lVmyX672l9f/jECEeM=",
                    "output_type": 1
                },
                {
                    "anchor": {
                        "outpoint": "5b73a8ce5d1529d020e6914bbea655a80b634ff016a6ce74bc09bd6021f283c9:1",
                        "value": 1000,
                        "internal_key": "Agy3s345oRQOz2g1JuqsBt4akyDg5Gr/TmJtVzgDbJUs",
                        "taproot_asset_root": "ZgxZUFedlHfaLIznIjSUMv14U0zsT6s+C0Fm/MyTgmM=",
                        "merkle_root": "ZgxZUFedlHfaLIznIjSUMv14U0zsT6s+C0Fm/MyTgmM="
                    },
                    "script_key": "AgS5Wabfeoa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ypGLbtn9lVRjVKHnhNYpGwREEAAAAAAAAAhv////////////////////////////////////////9//QFZAAEAAk7VkuHNLOMocr2fIComrlImUP8ji1pqPCHZMaxvygr/CQAAAAAEYml0cz7KRh96hCoh8Sn12ezt363XPHJ4ghiXgTugCkdF9wsNAAAAAAAEAQAGAYYLrQGrAWW+VwePwt939GYEckeAGTTLCTm8M6QDcpNbzbsFP0HPHgAAAAFEl9Hu2hTHuLUAFMJnHmQx2xEWiPxmqFJOwFMjRzpQPgKCsG6SHRu2yDiI/R/YIuchloo4NKhzPWyu7svvDfzJvANCAUBvbvXhDRBaWDcULhunwjHV3P21R/b8+W1sT2l9w0ovoZdb/jnleUplMlVADmO/EF4+ycyTCp/Vm+qcnFcHtjXLDSi9qU4ijBm5gff2c1HaVqJmu8rmVWbJfrvaX1/+MQIR4wAAAAAAAADIDgIAABAhAtOQA1M9zcR8UoD1fkB1A+puxrXBHK0nhKPUM8mOOrVnDgIAABAhAgS5Wabfeoa3uVSuJjuN6EBFC6b0S7xxzlKfhoB6NTBFDJ8ABAAAAAECIQIMt7N+OaEUDs9oNSbqrAbeGpMg4ORq/05ibVc4A2yVLAN0AUkAAQACIESX0e7aFMe4tQAUwmceZDHbERaI/GaoUk7AUyNHOlA+BCIAAP//////////////////////////////////////////AicAAQACIgAA//////////////////////////////////////////8NyQHHAAQAAAAAAiEDVWs61Ihs8hosP0wrLSpwrKxYNirEtaxFWpxNADG+iNsDnAFxAAEAAiBEl9Hu2hTHuLUAFMJnHmQx2xEWiPxmqFJOwFMjRzpQPgRKAAF26KoRoRGyBKzu/UNvPHBDHyBefFiQTp9wenbbNHeQmAAAAAAAAACG/////////////////////////////////////////98CJwABAAIiAAD//////////////////////////////////////////w+fAAQAAAAAAiEDVWs61Ihs8hosP0wrLSpwrKxYNirEtaxFWpxNADG+iNsDdAFJAAEAAiBEl9Hu2hTHuLUAFMJnHmQx2xEWiPxmqFJOwFMjRzpQPgQiAAD//////////////////////////////////////////wInAAEAAiIAAP//////////////////////////////////////////FgQAAAAA"
                }
            ]
        }
    },
    "message": "",
    "traceid": "4315b0b1-7d26-4814-b2d8-b78e30705535"
}

Last updated