[HELP] Raw Transactions / Requesting Funds

The Reddcoin.NET library I have does everything except the following:

  1. createrawtransaction “hexstring”
  2. decodescript “hex”
  3. signrawtransaction “hexstring” ( [{“txid”:“id”,“vout”:n,“scriptPubKey”:“hex”,“redeemScript”:“hex”},…] [“privatekey1”,…] sighashtype )
  4. submitblock “hexdata” ( “jsonparametersobject” )
  5. sendrawtransaction “hexstring” ( allowhighfees )

Mostly I am unsure about how to best go about creating these particular methods. I’ve read up on the https://bitcoin.org/en/developer-examples developer examples here…however, if there are multiple inputs, and let’s be frank, no wallet is going to have only 1, then I’m not sure the best way to deal with that. Not that I really care because this is just the backend to allow these functions to happen. Programming raw transactions, signing them, and sending them is up to whoever is using the .Net Library. I do want to know how to do it though, just in case…Plus it’d be good to have examples of every function for the library.

Requesting and verifying funds is another question that’s been cropping up. If I want to request 50 RDD from someone, how do I verify the following:

  1. The value of the input covers the requested amount
  2. If it doesn’t, how to return the payment
  3. Validate the transaction has been processed and verified by at least 2 blocks

Thoughts on this would be super…