Skip to content

Latest commit

 

History

History
108 lines (95 loc) · 1.52 KB

API.adoc

File metadata and controls

108 lines (95 loc) · 1.52 KB

Provider API

JSON-RPC requests

General

latest_upstream_block_height

"method": "call_api",
"params": {
    "api_id": "latest_upstream_block_height"
}

last_block_height

"method": "call_api",
"params": {
    "api_id": "last_block_height",
    "api_params": {
        "transform_id": <transform_id: str>
    }
}

get_block

"method": "call_api",
"params": {
    "api_id": "get_block",
    "api_params": {
        "transform_id": <transform_id: str>
        "height": <height: int>
    }
}

stake_history transform

latest_unstake_state

"method": "call_api",
"params": {
    "api_id": "latest_unstake_state"
}

contract_history transform

contract_internal_transaction

"method": "call_api",
"params": {
    "api_id": "contract_internal_transaction",
    "api_params": {
        "address": "cx....",
        "size": 100 // Latest 100 txs
    }
}

contract_transaction

"method": "call_api",
"params": {
    "api_id": "contract_transaction",
    "api_params": {
        "address": "cx....",
        "size": 100 // Latest 100 txs
    }
}

contract_stats

"method": "call_api",
"params": {
    "api_id": "contract_stats",
    "api_params": {
        "address": "cx...."
    }
}

contract_list

"method": "call_api",
"params": {
    "api_id": "contract_list"
}

max_tx_per_contract

"method": "call_api",
"params": {
    "api_id": "max_tx_per_contract"
}