sendwithdatafrom no return hash

+3 votes
I try to transfer from a wallet to another x qta of an asset and 100000 chars as hex-data by wich sendwithdatafrom. I don't receive back any txid… I should reduce chars to 65000 and so all goes fine. Why?

I tried with multichain-cli and curl but there is no difference.

These are my params:

maximum-block-size = 8388608

only-accept-std-txs = true  
max-std-tx-size = 4194304
max-std-op-returns-count = 32   
max-std-op-return-size = 2097152  
max-std-op-drops-count = 5
max-std-element-size = 8192
asked Oct 1, 2019 by anonymous
What error do you see when you send the longer data and don't receive a txid?
Nothing! This is my code:

my @letters = ('a'..'z', 'A'..'Z');

for (my $i=0; $i<$dim; $i++) { # elab string of chars

 $string .= $letters[int rand @letters];

}
$string = unpack ("H*",$string); # coding in hex

$cmd = "curl -s --data-binary \'{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", \"method\": \"sendwithdatafrom\", \"params\": [\"$from\", \"$to\", {\"assetX\":0}, \"$string\"] }\' -H \'content-type: text/plain;\' $endpoint"

These are outputs:
 ./test.pl 65000
String length: 65000
publishing ...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  127k  100   107  100  127k    105   125k  0:00:01  0:00:01 --:--:--  125k
{"result":"ba77afa976bdcf757c27430478debdd8485949070c21c4367f22f0cb631610b6","error":null,"id":"curltest"}

./test.pl 67000
String length: 67000
publishing …

multichain version: 1.0.8
prtocolversion:  10011

1 Answer

0 votes
Thanks for the extra information. Most likely this is an issue with the maximum length of a command that can be run on the command line in your system. Instead of calling curl on the command line, try using a curl library to send the request directly from your programming language.
answered Oct 2, 2019 by MultiChain
...