The locked destination is going to be funded with tokens.
This use-case describes the process of preparing a raw transaction to fund the previously generated destination with tokens.
- Swap client
- User-goal
- Seller
- None
- The seller configured the system's settings to connect to a running Omni Core RPC server
- The seller generated a script locked destination (UC-Client-1)
- The seller requests to prepare a funding transaction
- The seller provides a source address to spend from, the funding destination, an identifier of the tokens to lock, and the amount of tokens to lock
- The system creates a signed raw simple send transaction based on the specified data, with some extra bitcoins sent to the destination as reference amount
- The system determines the output to the script locked destination
- The system returns the signed raw simple send transaction
rawtx
, as well as the referenceoutput
to the locked destination, consisting oftxid
,vout
,scriptPubKey
andvalue
4a. The system fails to create a raw simple send transaction based on the specified data (e.g. due to too low balance):
- The system indicates the failure
- The use-case ends
- The system generated a signed raw funding transaction
- The seller has enough tokens and bitcoins to cover the funding transaction
- The funding transaction carries enough bitcoin as reference amount for at least one transaction sent from the script locked destination