# How to get transaction digest with tx\_bytes and signature data?

**URL:** <https://forums.sui.io/t/how-to-get-transaction-digest-with-tx-bytes-and-signature-data/45659>\
**Category:** Technical Support\
**Created:** [May 31, 2024, 4:28am UTC](https://forums.sui.io/t/how-to-get-transaction-digest-with-tx-bytes-and-signature-data/45659 "2024-05-31T04:28:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satoshi](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Satoshi](https://forums.sui.io/u/Satoshi)\
**Post date:** [May 31, 2024, 4:28am UTC](https://forums.sui.io/t/how-to-get-transaction-digest-with-tx-bytes-and-signature-data/45659/1 "2024-05-31T04:28:41Z")

</div>

Hello. I’m using the Sui RPC `unsafe_payallsui` to build the tx bytes, and signing offline. Then I have the pre-sign tx bytes and the signature data. My question is how can I get the transaction digest with these data?

For example, here is the data:

```auto
 %{
      "signatures" => [
        "ACsdUhoGnKPX6vCwg2snkKoPtHHDU3Vz4AId7FBKjDr0pMQLBR1MjqJ3PZISpCQIlC5BfBo+/7lY1sfIzsUDBgDLwM84jKi1T1jFXHrNAdHIYJKqWuzFgBXR3IfYMnmg7w=="
      ],
      "tx_bytes" =>
        "AAACAAggxMcTLAAAAAAgg7bF+MvA5HLpkY933tpPcUla8S/m0RWKdR+XktlujQ8CAgABAQAAAQEDAAAAAAEBAMZACk2KlfimV6aRkKjqCUBjJiMgjceCMMBh+3gapTOOAY4KNVjfSMQyOrwYfhJcB1mzKDh36oXjdbKvQMBLf0NT2km8BAAAAAAgi/2KrppX5EOILrbW9U4unnpdOdUGE0rQDku9BUO8IFLGQApNipX4plemkZCo6glAYyYjII3HgjDAYft4GqUzju4CAAAAAAAAABJ6AAAAAAAA"
    }

```

I tried `toB58(blake2_hash("TransactionData::" ++ base64_decode(tx_byes)))` , the result is close but not correct. Does it need using the signature data or other things? Thanks.
