Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpclient: GetBlockVerboseTx argument verbosity numeric #1230

Open
romanornr opened this issue Jul 28, 2018 · 0 comments
Open

rpclient: GetBlockVerboseTx argument verbosity numeric #1230

romanornr opened this issue Jul 28, 2018 · 0 comments

Comments

@romanornr
Copy link

romanornr commented Jul 28, 2018

I tried GetBlockVerboseTx(blockhash)

I can't put in a second argument so I get the error that I am missing a verbosity number 0, 1 or 2.


If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
If verbosity is 1, returns an Object with information about block <hash>.
If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. 

Arguments:
1. "blockhash"          (string, required) The block hash
2. verbosity              (numeric, optional, default=1) 0 for hex encoded data, 1 for a json object, and 2 for json object with transaction data

Result (for verbosity = 0):
"data"             (string) A string that is serialized, hex-encoded data for block 'hash'.```

Unsure if I do something wrong. (Using Core 0.15 with RPC as backend)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant