ElementsProject / ElementsProject/elements

RawBlindRawTransaction jrpc2Errors

Open
#1,076 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
416
Avg merge
1d 23h
Merged PRs (30d)
15

Description

I'm trying to call `rawblindrawtransaction` from my jrpc2.0 library.

Elementsd returns the error `-8:Unknown named parameter inputamountblinders`

The raw request I send is:
```json
{"jsonrpc":"2.0","method":"rawblindrawtransaction","params":{"hexstring":"longhex...","ignoreblindfail":true,"inputamount":[100000],"inputamountblinders":["89aaaea292f84f8e2cbc0b2c4fdd0c93226fec6aeb6f9ca422bf31d62da47ada"],"inputasset":["25b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a"],"inputassetblinder":["e3880a1dc357e782987e3df8e0776f102bdb5d41b94d22263da9aae60ba0f4f5"]},"id":14}
```

When I remove inputamountblinders I get the error `-1:JSON value is not an array as expected`

Where the raw request was:
```json
{"jsonrpc":"2.0","method":"rawblindrawtransaction","params":{"hexstring":"longhex...","ignoreblindfail":true,"inputamount":[100000],"inputasset":["25b251070e29ca19043cf33ccd7324e2ddab03ecc4ae0b5e77c4fc0e5cf6c95a"],"inputassetblinder":["9f9d2a667ebf6faa82eafe04aa9426d85b70ae366b752ea6d3449f0baacfade9"]},"id":14}
```

Is the serialization by the jrpc client wrong?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.