Create raw transaction what txid I want to check for every transaction if there is enough balance to pay it(including fee). I found this question:
Is there a way to know the Bitcoin Network transaction fee BEFORE actually submitting the transaction?

But what do I have to use as the TXID by createrawtransaction?
In the console do listunspent
that will show you all the UTXO in your wallet including the txids.
You can type help to get a list of commands,
then help &lt;command&gt; to get details about each command