Welcome to the Developer Q&A for the MultiChain private blockchain platform.

Please feel free to ask questions about the platform to receive answers from the developers or other members of the community.

intercompany transcation

+1 vote
Below is the POC we want to build.  Let me know how to go around.

1st Step : One Intercompany (BU) owner will initiate a transaction to transfer money to another Intercompany owner.

                                Below are fields to update:
BU     
Nominal
Business Category      
Amount
Dr Cr  
Description/ Justification     
Attachment???

 
Scenario 1:
2nd Step:              Second Intercompany owner will accept the transaction and confirms back to initiator
3rd Step :               Journals processed in the background between these two intercompany

Scenario 2:
2nd Step:              Second Intercompany owner accepts only part of transaction and confirms back to initiator
3rd Step :               Initiator accepts the reduced amount
3rd Step :               Journals processed in the background between these two intercompany for reduced value

Scenario 3:
2nd Step:              Second Intercompany owner accepts only part of transaction and confirms back to initiator
3rd Step :               Initiator sends back justification for the full amount
3rd Step :               Second Intercompany owner accepts and confirms back to initiator
3rd Step :               Journals processed in the background between these two intercompany

Scenario 4:
2nd Step:              Second Intercompany owner rejects the transaction
3rd Step :               Transaction void

 

 

Please advise.
asked Jul 13 by dannydias

2 Answers

0 votes
Yes, you could do all this using streams. Each step is written into the stream in your chosen format, and then the overall state of the transaction can be determined by the summary of those steps.
answered 6 days ago by MultiChain
0 votes

Hi,

if you're familiar with the Basics (https://www.multichain.com/getting-started/) you could have a look into raw transactions (https://www.multichain.com/developers/raw-transactions/).
With raw transactions one Business can create various different types and structures of transactions. The created transaction is returned as a hex-encoded string which can be passed to and decoded from another business.

  • In Scenario 1 the second Business would simply sign and broadcast the transaction to the Blockchain.
  • In Scenario 2 the Second Business could create a new transaction and send the hex-string to the first Business. (Could be possible to modify a transaction though. But the result would be the same: another hex-string that has to be signed before broadcasting to the Chain)
  • Scenario 3 seems to me the same as Scenario 2 but with more communication.
  • In Scenario 4 the second Business just does nothing. (Maybe communicate to the first Business)

I think, you have to clarify how the Businesses communicate. If you want everything on-chain you maybe could use streams (https://www.multichain.com/developers/data-streams/)

Greetings,

zolar

answered 6 days ago by zolar
...