possible to build a transaction outside of json rpc server

+2 votes
Hi Multichain folks,

Is it possible to createarawtransation and sign without calling the JSON RPC server, then connect to the server to broadcast the transaction?

Are there any recommended libraries for this?

Thanks!
asked Jul 11, 2018 by StevenChan

1 Answer

+1 vote
 
Best answer
It's generally easiest to use the JSON-RPC server to build the transaction, even if it doesn't sign it, because it will know the up-to-date state of the blockchain. In that case please see these two tutorials that can be helpful:

https://www.multichain.com/developers/external-key-management/
https://www.multichain.com/developers/cold-nodes-wallets/

Otherwise, it's perfectly possible to build and sign the entire transaction outside of MultiChain. Any library that can build bitcoin transactions can also be used to build MultiChain transactions, since MultiChain uses the same transaction format, scripting language, cryptography, etc... You can consult several of our developer guides to understand how MultiChain represents permissions, assets and streams transactions in bitcoin's format:

https://www.multichain.com/developers/permissions-management/
https://www.multichain.com/developers/native-assets/
https://www.multichain.com/developers/data-streams/
answered Jul 11, 2018 by MultiChain
selected Jul 13, 2018 by StevenChan
...