searchrawtransactions "address" (verbose=1 skip=0 count=100 vinextra=0 reverse=false ["filteraddr",...])
Returns raw data for transactions involving the passed address.
Returned transactions are pulled from both the database, and transactions currently in the mempool.
Transactions pulled from the mempool will have the 'confirmations' field set to 0.
Usage of this RPC requires the optional --addrindex flag to be activated, otherwise all responses will simply return with an error stating the address index has not yet been built.
Similarly, until the address index has caught up with the current best height, all requests will return an error response in order to avoid serving stale data.
Arguments:
1. address (string, required) The Bitcoin address to search for
2. verbose (numeric, optional, default=1) Specifies the transaction is returned as a JSON object instead of hex-encoded string
3. skip (numeric, optional, default=0) The number of leading transactions to leave out of the final response
4. count (numeric, optional, default=100) The maximum number of transactions to return
5. vinextra (numeric, optional, default=0) Specify that extra data from previous output will be returned in vin
6. reverse (boolean, optional, default=false) Specifies that the transactions should be returned in reverse chronological order
7. filteraddrs (array of string, optional) Address list. Only inputs or outputs with matching address will be returned
Result (verbose=0):
"value" (string) Hex-encoded serialized transaction
Result (verbose=1):
[{
"hex": "value", (string) Hex-encoded transaction
"txid": "value", (string) The hash of the transaction
"version": n, (numeric) The transaction version
"locktime": n, (numeric) The transaction lock time
"vin": [{ (array of object) The transaction inputs as JSON objects
"coinbase": "value", (string) The hex-encoded bytes of the signature script (coinbase txns only)
"txid": "value", (string) The hash of the origin transaction (non-coinbase txns only)
"vout": n, (numeric) The index of the output being redeemed from the origin transaction (non-coinbase txns only)
"scriptSig": { (object) The signature script used to redeem the origin transaction as a JSON object (non-coinbase txns only)
"asm": "value", (string) Disassembly of the script
"hex": "value", (string) Hex-encoded bytes of the script
},
"prevOut": { (object) Data from the origin transaction output with index vout.
"addresses": ["value",...], (array of string) previous output addresses
"value": n.nnn, (numeric) previous output value
},
"sequence": n, (numeric) The script sequence number
},...],
"vout": [{ (array of object) The transaction outputs as JSON objects
"value": n.nnn, (numeric) The amount in BTC
"n": n, (numeric) The index of this transaction output
"scriptPubKey": { (object) The public key script used to pay coins as a JSON object
"asm": "value", (string) Disassembly of the script
"hex": "value", (string) Hex-encoded bytes of the script
"reqSigs": n, (numeric) The number of required signatures
"type": "value", (string) The type of the script (e.g. 'pubkeyhash')
"addresses": ["value",...], (array of string) The bitcoin addresses associated with this script
},
},...],
"blockhash": "value", (string) Hash of the block the transaction is part of
"confirmations": n, (numeric) Number of confirmations of the block
"time": n, (numeric) Transaction time in seconds since 1 Jan 1970 GMT
"blocktime": n, (numeric) Block time in seconds since the 1 Jan 1970 GMT
},...]