New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

2 min read

Method getcontract Ontology (ONT)
connect with WS protocol

getcontract

info-circle-fill

Fetches the contract details for the contract using given contract hash.

Parameters

Hash - string

contract hash

Request

wscat -c wss://ont.getblock.io/YOUR-API-KEY/mainnet/ 
# wait for connection and send the request body 
{'Action': 'getcontract', 'Version': '1.0.0', 'Id': 1, 'Hash': 'b0ea7e9e379c64efb5976f8d12d63398d9de10d5'}

Response

{
    "Action": "getcontract",
    "Desc": "SUCCESS",
    "Error": 0,
    "Id": 1,
    "Result": {
        "Author": "Ontology",
        "Code": "0114c56b05322e302e306a00527ac42241554542416b456176537574435a386d685371376752355775733361415456516a6168204f6e746f6c6f67792e52756e74696d652e426173653538546f416464726573736a51527ac4194f6e746f6c6f6779204c6f79616c204d656d626572204e46546a52527ac4054c4f59414c6a53527ac40742616c616e63656a54527ac4074f776e65724f666a55527ac407417070726f76656a56527ac407546f6b656e49446a57527ac40b546f74616c537570706c796a58527ac40b496e697469616c697a65646a59527ac40854656d706c6174656a5a527ac40e4f776e6572546f6b656e4c6973746a5b527ac40a4173736574436f756e746a5c527ac4094d6178537570706c796a5d527ac40c5472616e73666572466c61676a5e527ac4681953797374656d2e53746f726167652e476574436f6e746578746a5f527ac4682d53797374656d2e457865637574696f6e456e67696e652e476574457865637574696e67536372697074486173686a60527ac46c013cc56b6a00527ac46a51527ac46a52527ac46a51c30673796d626f6c7d9c7c75641500006a00c3067506000000006e6c75666203006a51c3046e616d657d9c7c75641500006a00c3068d06000000006e6c75666203006a51c30962616c616e63654f667d9c7c756435006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a54527ac46a54c3516a00c306a506000000006e6c75666203006a51c3076f776e65724f667d9c7c756435006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a55527ac46a55c3516a00c3060807000000006e6c75666203006a51c3087472616e736665727d9c7c756442006a52c3c0527d9e7c75640a00006c75666203006a52c300c36a56527ac46a52c351c36a55527ac46a55c36a56c3526a00c3067807000000006e6c75666203006a51c30d7472616e736665724d756c74697d9c7c756418006a52c3516a00c306a909000000006e6c75666203006a51c307617070726f76657d9c7c756442006a52c3c0527d9e7c75640a00006c75666203006a52c300c36a56527ac46a52c351c36a55527ac46a55c36a56c3526a00c306450a000000006e6c75666203006a51c30d74616b654f776e6572736869707d9c7c756442006a52c3c0527d9e7c75640a00006c75666203006a52c300c36a56527ac46a52c351c36a55527ac46a55c36a56c3526a00c306440b000000006e6c75666203006a51c304696e69747d9c7c75641500006a00c306ba0d000000006e6c75666203006a51c30f6d696772617465436f6e74726163747d9c7c756483006a52c3c0577d9e7c75640a00006c75666203006a52c300c36a57527ac46a52c351c36a58527ac46a52c352c36a59527ac46a52c353c36a5a527ac46a52c354c36a5b527ac46a52c355c36a5c527ac46a52c356c36a5d527ac46a5dc36a5cc36a5bc36a5ac36a59c36a58c36a57c3576a00c3063913000000006e6c75666203006a51c30b746f74616c537570706c797d9c7c75641500006a00c306dc11000000006e6c75666203006a51c30b676574417070726f7665647d9c7c756435006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a55527ac46a55c3516a00c306ec12000000006e6c75666203006a51c3187175657279546f6b656e49447342794f776e6572416464727d9c7c756435006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a54527ac46a54c3516a00c3066211000000006e6c75666203006a51c30e7175657279546f6b656e427949447d9c7c756435006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a5e527ac46a5ec3516a00c3060f12000000006e6c75666203006a51c3096d696e74546f6b656e7d9c7c756442006a52c3c0527d9e7c75640a00006c75666203006a52c300c36a5f527ac46a52c351c36a60527ac46a60c36a5fc3526a00c3062214000000006e6c75666203006a51c30f7570646174654d6178537570706c797d9c7c756437006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a0111527ac46a0111c3516a00c3069b10000000006e6c75666203006a51c3127570646174655472616e73666572466c61677d9c7c756437006a52c3c0517d9e7c75640a00006c75666203006a52c300c36a0112527ac46a0112c3516a00c3060511000000006e6c75666203006a51c30e717572794173736574436f756e747d9c7c75641500006a00c3068515000000006e6c7566620300006c756656c56b6a00527ac46a51527ac46203006a00c353c36c756656c56b6a00527ac46a51527ac46203006a00c352c36c756659c56b6a00527ac46a51527ac46a52527ac46203006a52c3c001147d9e7c75640a00006c75666203006a52c36a00c354c3526a00c306930d000000006e6a54527ac46a54c36a00c35fc3681253797374656d2e53746f726167652e47657400936c756659c56b6a00527ac46a51527ac46a52527ac46203006a52c36a00c355c3526a00c306930d000000006e6a54527ac46a54c36a00c35fc3681253797374656d2e53746f726167652e4765746a55527ac46a55c3916417000f6f776e65724f66206661696c656421f06203006a55c36c75660111c56b6a00527ac46a51527ac46a52527ac46a53527ac46203006a00c35ec36a00c35fc3681253797374656d2e53746f726167652e4765746a54527ac46a54c391f16a53c3516a00c3060807000000006e6a56527ac46a56c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a52c3c001147d9e7c75641d001561646472657373206c656e677468206572726f7221f06203006a53c36a00c355c3526a00c306930d000000006e6a57527ac46a57c36a00c35fc3681253797374656d2e53746f726167652e4765746a58527ac46a58c36a00c354c3526a00c306930d000000006e6a59527ac46a59c36a00c35fc3681253797374656d2e53746f726167652e4765746a5a527ac46a5ac3517da27c756427006a5ac351946a59c36a00c35fc3681253797374656d2e53746f726167652e5075746216001166726f6d42616c616e6365206572726f72f06a52c36a57c36a00c35fc3681253797374656d2e53746f726167652e5075746a52c36a00c354c3526a00c306930d000000006e6a59527ac46a52c3516a00c306a506000000006e51936a59c36a00c35fc3681253797374656d2e53746f726167652e5075746a53c36a52c36a58c3536a00c306b218000000006e756a53c36a00c356c3526a00c306930d000000006e6a00c35fc3681553797374656d2e53746f726167652e44656c657465087472616e736665726a58c36a52c36a53c354c176c9681553797374656d2e52756e74696d652e4e6f74696679516c75665bc56b6a00527ac46a51527ac46a52527ac4620300006a53527ac46a52c36a54527ac46a54c3c06a55527ac46a53c36a55c39f6465006a54c36a53c3c36a56527ac46a53c351936a53527ac46a56c351c36a56c300c3526a00c3067807000000006e007d9c7c75642e00267472616e736665724d756c7469206661696c6564202d207472616e73666572206572726f7221f06203006297ff516c75665bc56b6a00527ac46a51527ac46a52527ac46a53527ac46203006a00c35ec36a00c35fc3681253797374656d2e53746f726167652e4765746a54527ac46a54c391f16a53c3516a00c3060807000000006e6a56527ac46a56c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a52c3c001147d9e7c75641d001561646472657373206c656e677468206572726f7221f06203006a52c36a53c36a00c356c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e50757408617070726f76616c6a56c36a52c36a53c354c176c9681553797374656d2e52756e74696d652e4e6f74696679516c75660112c56b6a00527ac46a51527ac46a52527ac46a53527ac46203006a00c35ec36a00c35fc3681253797374656d2e53746f726167652e4765746a54527ac46a54c391f16a52c3c001147d9e7c756417000f746f4163637420696c6c6567616c21f06203006a53c3516a00c3060807000000006e6a56527ac46a56c391640a00006c75666203006a53c36a00c356c3526a00c306930d000000006e6a57527ac46a57c36a00c35fc3681253797374656d2e53746f726167652e4765746a58527ac46a56c3681b53797374656d2e52756e74696d652e436865636b5769746e65737376632400756a58c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a57c36a00c35fc3681553797374656d2e53746f726167652e44656c6574656a53c36a00c355c3526a00c306930d000000006e6a59527ac46a52c36a59c36a00c35fc3681253797374656d2e53746f726167652e5075746a53c36a52c36a56c3536a00c306b218000000006e756a56c3516a00c306a506000000006e6a5a527ac46a52c3516a00c306a506000000006e6a5b527ac46a5ac3517da27c7576641000756a5bc36a5bc351937d9f7c75646a006a5ac351946a56c36a00c354c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746a5bc351936a52c36a00c354c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e507574620300087472616e736665726a56c36a52c36a53c354c176c9681553797374656d2e52756e74696d652e4e6f74696679516c756659c56b6a00527ac46a51527ac46a52527ac46a53527ac46203006a52c3015f7e6a53c37e6c75665bc56b6a00527ac46a51527ac46203006a00c351c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a00c359c36a00c35fc3681253797374656d2e53746f726167652e4765746a52527ac46a52c36454002e6964696f742061646d696e2c20796f75206861766520696e697469616c697a65642074686520636f6e747261637451c176c9681553797374656d2e52756e74696d652e4e6f74696679006c7566623302516a00c359c36a00c35fc3681253797374656d2e53746f726167652e507574516a00c35ec36a00c35fc3681253797374656d2e53746f726167652e50757451194f6e746f6c6f6779204c6f79616c204d656d626572204e46543968747470733a2f2f6170702e6f6e742e696f2f6e66742f4f6e746f6c6f67795f6c6f79616c5f6d656d6265725f4e46545f506c75732e706e674cdf496e206f7264657220746f207265776172642074686f73652077686f20706172746963697061746520696e204f6e746f6c6f67792773206576656e747320616e6420636f6e7472696275746520746f206f7572207765656b6c792064697363757373696f6e732c20776520617265206c61756e6368696e672061206c6f79616c74792070726f6772616d2120456e6761676520776974682074686520636f6d6d756e69747920616e642072656365697665204e4654732e20436f6c6c65637420656e6f756768204e46547320746f2077696e204f4e4720726577617264732154c176c96a53527ac46a53c3681853797374656d2e52756e74696d652e53657269616c697a65516a00c35ac3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e50757402e803516a00c35dc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e50757421496e697469616c697a656420636f6e7472616374207375636365737366756c6c7951c176c9681553797374656d2e52756e74696d652e4e6f74696679516c756658c56b6a00527ac46a51527ac46a52527ac46203006a00c351c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a52c3516a00c35dc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e507574516c756657c56b6a00527ac46a51527ac46a52527ac46203006a00c351c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a52c36a00c35ec36a00c35fc3681253797374656d2e53746f726167652e507574516c75665ac56b6a00527ac46a51527ac46a52527ac46203006a52c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a54527ac46a54c391640d0000c176c96c75666203006a54c3681a53797374656d2e52756e74696d652e446573657269616c697a656c756656c56b6a00527ac46a51527ac46203006a00c358c36a00c35fc3681253797374656d2e53746f726167652e47657400936c756660c56b6a00527ac46a51527ac46a52527ac46203006a52c36a00c357c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a54527ac46a54c391640d0000c176c96c75666203006a54c3681a53797374656d2e52756e74696d652e446573657269616c697a656a55527ac46a55c3024944c36a56527ac46a55c303494458c36a57527ac46a55c3044e616d65c36a58527ac46a55c305496d616765c36a59527ac46a55c30b4465736372697074696f6ec36a5a527ac46a56c36a58c36a57c36a59c36a5ac355c176c96c756658c56b6a00527ac46a51527ac46a52527ac46203006a52c36a00c356c3526a00c306930d000000006e6a54527ac46a54c36a00c35fc3681253797374656d2e53746f726167652e4765746c75665fc56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46a55527ac46a56527ac46a57527ac46a58527ac46203006a00c351c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a58c36a57c36a56c36a55c36a54c36a53c36a52c368194f6e746f6c6f67792e436f6e74726163742e4d6967726174656a59527ac46a59c3f11d4d69677261746520436f6e7472616374207375636365737366756c6c796a00c351c3681653797374656d2e52756e74696d652e47657454696d6553c176c9681553797374656d2e52756e74696d652e4e6f74696679516c75665fc56b6a00527ac46a51527ac46a52527ac46a53527ac46203006a00c351c3681b53797374656d2e52756e74696d652e436865636b5769746e657373f16a53c36a00c35cc3526a00c306930d000000006e6a55527ac46a55c36a00c35fc3681253797374656d2e53746f726167652e4765746a56527ac46a53c3517d9c7c75644100516a00c35dc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a57527ac46a56c36a57c37d9f7c75f16203006a53c36a00c35ac3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a58527ac46a58c3f16a58c3681a53797374656d2e52756e74696d652e446573657269616c697a656a59527ac46a59c353c36a59c352c36a59c351c36a59c300c36a52c3556a00c306cf15000000006e756a56c351936a55c36a00c35fc3681253797374656d2e53746f726167652e507574516c756658c56b6a00527ac46a51527ac4620300516a00c35cc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a53527ac46a53c351c176c96c75660118c56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46a55527ac46a56527ac46203006a00c358c36a00c35fc3681253797374656d2e53746f726167652e4765746a57527ac46a57c351936a58527ac46a58c36a00c358c36a00c35fc3681253797374656d2e53746f726167652e507574c7766a58c37c0249447bc4766a53c37c034944587bc4766a54c37c044e616d657bc4766a55c37c05496d6167657bc4766a56c37c0b4465736372697074696f6e7bc46a59527ac46a58c36a00c355c3526a00c306930d000000006e6a5b527ac46a52c36a5bc36a00c35fc3681253797374656d2e53746f726167652e5075746a59c3681853797374656d2e52756e74696d652e53657269616c697a656a58c36a00c357c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746a52c36a00c354c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a5c527ac46a5cc351936a52c36a00c354c3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746a52c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a5d527ac46a5dc3916454006a58c351c176c9681853797374656d2e52756e74696d652e53657269616c697a656a52c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746278006a5dc3681a53797374656d2e52756e74696d652e446573657269616c697a656a5e527ac46a5ec36a58c3c86a5ec3681853797374656d2e52756e74696d652e53657269616c697a656a52c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746a56c36a55c36a54c36a53c36a58c36a52c30f6d696e74546f6b656e416374696f6e57c1681553797374656d2e52756e74696d652e4e6f74696679516c75660117c56b6a00527ac46a51527ac46a52527ac46a53527ac46a54527ac46203006a52c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a56527ac46a56c3681a53797374656d2e52756e74696d652e446573657269616c697a656a57527ac400c176c96a58527ac4006a59527ac46a57c36a5a527ac46a5ac3c06a5b527ac46a59c36a5bc39f6433006a5ac36a59c3c36a5c527ac46a59c351936a59527ac46a54c36a5cc37d9e7c75640d006a58c36a5cc3c862030062c9ff6a58c3681853797374656d2e52756e74696d652e53657269616c697a656a52c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746a53c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e4765746a5d527ac46a5dc3916454006a54c351c176c9681853797374656d2e52756e74696d652e53657269616c697a656a53c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e5075746278006a5dc3681a53797374656d2e52756e74696d652e446573657269616c697a656a5e527ac46a5ec36a54c3c86a5ec3681853797374656d2e52756e74696d652e53657269616c697a656a53c36a00c35bc3526a00c306930d000000006e6a00c35fc3681253797374656d2e53746f726167652e507574516c7566",
        "CodeVersion": "2.0",
        "Description": "In order to reward those who participate in Ontology's events and contribute to our weekly discussions, we are launching a loyalty program! Engage with the community and receive NFTs.",
        "Email": "contact@ont.io",
        "Name": "Ontology Loyal Member NFT Plus (LOYAL Plus)",
        "VmType": 1
    },
    "Version": "1.0.0"
}
banner icon

Start Building with GetBlock RPCs for Free