Skip to main content

getspecialtxes

getspecialtxes "blockhash" ( type count skip verbosity )

Returns an array of special transactions found in the specified block

If verbosity is 0, returns tx hash for each transaction. If verbosity is 1, returns hex-encoded data for each transaction. If verbosity is 2, returns an Object with information for each transaction.

yerbas-cli getspecialtxes "00000000000fd08c2fb661d2fcb0d49abb3a91e5f27082ce64feed3b4dede2e2"

Arguments

ArgumentTypeDescription
"blockhash"(string)The block hash
type(numeric)Filter special txes by type, -1 means all
count(numeric)The number of transactions to return
skip(numeric)The number of transactions to skip
verbosity(numeric)0 for hashes, 1 for hex-encoded data, and 2
Arguments:
1. "blockhash" (string, required) The block hash
2. type (numeric, optional, default=-1) Filter special txes by type, -1 means all types
3. count (numeric, optional, default=10) The number of transactions to return
4. skip (numeric, optional, default=0) The number of transactions to skip
5. verbosity (numeric, optional, default=0) 0 for hashes, 1 for hex-encoded data, and 2 for json object

Output

ResultTypeDescription
"txid"(string)The transaction id
Result (for verbosity = 0):
[
"txid" : "xxxx", (string) The transaction id
]

Result (for verbosity = 1):
[
"data", (string) A string that is serialized, hex-encoded data for the transaction
]

Result (for verbosity = 2):
[ (array of Objects) The transactions in the format of the getrawtransaction RPC.
...,
]

Examples

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspecialtxes", "params": ["00000000000fd08c2fb661d2fcb0d49abb3a91e5f27082ce64feed3b4dede2e2"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/