list transactions RPC on chain regardless its'effect on asset or streams

+2 votes
Is there API or any work around to list count of transactions regardless its' effect on node wallet or streams or assets..etc. My use case is: I want to list most recent transactions regardless to its' content and listwallettransactions only list transaction that has effect on node wallet and my use case contains some transactions that didn't contain this prooerty as per below:

getrawtransaction 2d40b89a90114ee39583b37a103854e4a1d506ca69c93006113303004cd22739 1

{
    "hex" : "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0c02dd0e0101062f503253482fffffffff010000000000000000716a4c6e53504b624630440220755becff7e2b9cac31d702e0c1c965a38f40487eec9096dc61742b3af0bd9db70220227ae6a72d83cf3284311405359f333468632fbe13d8528b97658a36eb2f7715032102006a8c25a8ac1e90cb6a8881e59b8829b400bf45b8f2ee28d3fcb32d15a2c6e800000000",
    "txid" : "2d40b89a90114ee39583b37a103854e4a1d506ca69c93006113303004cd22739",
    "version" : 1,
    "locktime" : 0,
    "vin" : [
        {
            "coinbase" : "02dd0e0101062f503253482f",
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 0,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_RETURN 53504b624630440220755becff7e2b9cac31d702e0c1c965a38f40487eec9096dc61742b3af0bd9db70220227ae6a72d83cf3284311405359f333468632fbe13d8528b97658a36eb2f7715032102006a8c25a8ac1e90cb6a8881e59b8829b400bf45b8f2ee28d3fcb32d15a2c6e8",
                "hex" : "6a4c6e53504b624630440220755becff7e2b9cac31d702e0c1c965a38f40487eec9096dc61742b3af0bd9db70220227ae6a72d83cf3284311405359f333468632fbe13d8528b97658a36eb2f7715032102006a8c25a8ac1e90cb6a8881e59b8829b400bf45b8f2ee28d3fcb32d15a2c6e8",
                "type" : "nulldata"
            },
            "data" : [
                "53504b624630440220755becff7e2b9cac31d702e0c1c965a38f40487eec9096dc61742b3af0bd9db70220227ae6a72d83cf3284311405359f333468632fbe13d8528b97658a36eb2f7715032102006a8c25a8ac1e90cb6a8881e59b8829b400bf45b8f2ee28d3fcb32d15a2c6e8"
            ]
        }
    ],
    "blockhash" : "00964ff493764e24b142b22d1b17d16ed9115bf89ad1f8a3f45eca9864bce683",
    "confirmations" : 50,
    "time" : 1591190766,
    "blocktime" : 1591190766
}
asked Jun 4, 2020 by mina

1 Answer

0 votes

Your best bet here would be to access the transactions from the most recent blocks. See APIs like listblocks and getblock, the latter of which has many options regarding the level of detail.

answered Jun 6, 2020 by MultiChain
...