You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: data-for-gpts/komodefi-api/v20-api-content.txt
+210
Original file line number
Diff line number
Diff line change
@@ -4581,6 +4581,216 @@ The `remove_node_from_version_stat` method removes a Node (by name) from the loc
4581
4581
}
4582
4582
```
4583
4583
</CollapsibleSection>
4584
+
export const title = "AtomicDEX: Sign Raw Transaction";
4585
+
export const description = "The methods in this document allow you to sign raw transactions.";
4586
+
4587
+
# Sign Raw Transaction
4588
+
4589
+
This method allows users to:
4590
+
4591
+
* Create a signed UTXO raw transaction given unsigned hex, and optionally a set of prior transaction inputs.
4592
+
* Create a signed EVM raw transaction, given the destination address, amount and gas limit.
4593
+
4594
+
The transaction can then be broadcasted to the network using the [`send_raw_transaction`](/atomicdex/api/legacy/send_raw_transaction/) to complete the process.
4595
+
4596
+
<Note>
4597
+
This method is used to sign a raw transaction that has already been created.
4598
+
For UTXO coins, the unsigned hex is required to sign the transaction.
4599
+
If `prev_txns` is not provided, it will be sourced via electrums.
| tx\_hex | string | UTXO only. The raw unsigned hex of a proposed transaction. |
13
+
| prev\_txns | list | UTXO only. A list of standard [InputTxns objects](/atomicdex/api/common_structures/wallet/#input-txns). |
14
+
| to | string | ETH/EVM only. A destination address to send the funds to. |
15
+
| value | string | ETH/EVM only. The amount of funds to be sent as a string with a `0x` prefix, in [wei](https://ethereum.stackexchange.com/questions/253/the-ether-denominations-are-called-finney-szabo-and-wei-what-who-are-these-na) units. |
16
+
| gas\_limit | string | ETH/EVM only. The maximum gas to be used for sending the transaction, in [gwei](https://eth-converter.com/) units. |
| tx\_hash | string | The transaction id of an unspent transaction from the same wallet output. |
50
+
| index | integer | The \[output index([https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for](https://bitcoin.stackexchange.com/questions/100765/what-does-the-index-of-an-utxo-stand-for))] of this unspent transaction output. |
51
+
| script\_pub\_key | string | The [scriptpubkey](https://learnmeabitcoin.com/technical/scriptPubKey) of this unspent transaction output. |
52
+
| amount | float | The value of this unspent transaction output. |
0 commit comments