Atomic exchange transactions not working

+2 votes

https://www.multichain.com/developers/atomic-exchange-transactions/

 

following command in multichain above tutorial is not working. Below is the response from this command as well. Plz help?.

 

signrawtransaction [paste-hex-blob] '[]' '["V7HR9voyawk1sQRBKsQ2bY1h9enihwjfmxCut3xyEZdp735aoBtJD5e3"]' SINGLE|ANYONECANPAY

 

 

haqueadnanul3_gmail_com@instance-3:~$ multichain-cli chain1 010000000128afaa1a1ed5127c7c130eddf2a7d75ab32b2d8228ef1e8ac6d07722a83e905b0000000000ffffffff0100000000000000003776a914f4ad43ef348c5986e3d15038cb465b33c6b3fd9e88ac1c73706b715e911f0716639ab97db82d1a8c54651888130000000000007500000000 '[]' '["V7HR9voyawk1sQRBKsQ2bY1h9enihwjfmxCut3xyEZdp735aoBtJD5e3"]' SINGLE|ANYONECANPAY 
{"method":"010000000128afaa1a1ed5127c7c130eddf2a7d75ab32b2d8228ef1e8ac6d07722a83e905b0000000000ffffffff0100000000000000003776a914f4ad43ef348c5986e3d15038cb465b33c6b3fd9e88ac1c73706b715e911f0716639ab97db82d1a8c54651888130000000000007500000000","params":["[]","[\"V7HR9voyawk1sQRBKsQ2bY1h9enihwjfmxCut3xyEZdp735aoBtJD5e3\"]","SINGLE"],"id":"95938041-1641731359","chain_name":"chain1"}

error code: -32601
error message:
Method not found
ANYONECANPAY: command not found
haqueadnanul3_gmail_com@instance-3:~$ 
haqueadnanul3_gmail_com@instance-3:~$ 

 

asked Jan 9 by Adnan

1 Answer

0 votes

Apologies, the tutorial assumed you were using multichain-cli in interactive mode. It's been fixed, you should add single quote marks around the last parameter, i.e. 'SINGLE|ANYONECANPAY'

answered Jan 9 by MultiChain
...