GetNotificationByContractHash

Gets the notification by the contract hash

Parameters

Name Type Description
ContractHash string The contract script hash
Limit int Limit. It is optional
Skip int Skip. It is optional

Example

curl --location --request POST '127.0.0.1:1926' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "params": {"ContractHash":"0xd2a4cff31913016155e38e474a2c06d08be276cf"},
    "method": "GetNotificationByContractHash"
}'

Output

{
    "id": 1,
    "result": {
        "result": [
            {
                "Vmstate": "HALT",
                "_id": "60f7fe975a26ad67090d7b69",
                "blockhash": "0x614a807a3e545df0cb5c96d4d387e620e3e34d441f849b9a4033e0b4f906805d",
                "contract": "0xd2a4cff31913016155e38e474a2c06d08be276cf",
                "eventname": "Transfer",
                "index": 1,
                "state": {
                    "type": "Array",
                    "value": [
                        {
                            "type": "Any",
                            "value": null
                        },
                        {
                            "type": "ByteString",
                            "value": "krOcd6pg8ptXwXPO2Rfxf9Mhpus="
                        },
                        {
                            "type": "Integer",
                            "value": "3000000000000000"
                        }
                    ]
                },
                "timestamp": 1468595301000,
                "txid": "0x0000000000000000000000000000000000000000000000000000000000000000"
            },
            {
                "Vmstate": "HALT",
                "_id": "60f7fe975a26ad67090d7b70",
                "blockhash": "0x614a807a3e545df0cb5c96d4d387e620e3e34d441f849b9a4033e0b4f906805d",
                "contract": "0xd2a4cff31913016155e38e474a2c06d08be276cf",
                "eventname": "Transfer",
                "index": 0,
                "state": {
                    "type": "Array",
                    "value": [
                        {
                            "type": "Any",
                            "value": null
                        },
                        {
                            "type": "ByteString",
                            "value": "AZelPVEEY0csq+FRLl/HJ9cW+Qs="
                        },
                        {
                            "type": "Integer",
                            "value": "50000000"
                        }
                    ]
                },
                "timestamp": 1468595301000,
                "txid": "0x0000000000000000000000000000000000000000000000000000000000000000"
            }
        ],
        "totalCount": 485028
    },
    "error": null
}