If it works with multichain-cli, but not with this third party Javascript library, the most likely explanation is that you are passing the {"34565-302-28256":9} object as a string, instead of a native Javascript object as the library expects (which in the case of Javascript is just the same but without single quotes). When using multichain-cli you need to pass objects as preformatted JSON strings, because that is all the Unix command line offers. But when using a library for the API, the library can let you use the native object format of whichever language you are using.