Off-chain data using the RPC API

+1 vote

How can I pass a huge binary file (up to 1Gb) to the RPC API in order to store it in a binary cache?

The examples show it using a file redirection within the same server, but what if I cannot log into the server and I just cannot communicate through the RPC API? How do I achieve it?

asked Jan 19, 2019 by emedina

1 Answer

0 votes
Best answer

You can call the appendbinarycache command as many times as you need, each time adding a small piece of the data, passed in hexadecimal format. The command returns the current total size of the item.

answered Jan 20, 2019 by MultiChain
selected Jan 20, 2019 by emedina