RPC Reference
The reference of every RPC method supported by flow:
Subscriptions supported by the Flow service:
Stream every incoming bids on Flow.
Request:
{"jsonrpc": "2.0", "method": "eth_subscribe", "params": ["mkl_bids"]}
Stream:
{
"jsonrpc": "2.0",
"method": "eth_subscription"
"params": {
"subscription": "<subscription id>",
"result": {
"amount": 0.2, // eth amount
"txs": string[], // transaction hash
}
}
}
Stream every incoming transaction on Flow.
Request:
{"jsonrpc": "2.0", "method": "eth_subscribe", "params": ["mkl_transactions"]}
Stream:
{
"jsonrpc": "2.0",
"method": "eth_subscription"
"params": {
"subscription": "<subscription id>",
"result": {
"hash": string,
"unsignedTx": "0x" // hex-encoded unsigned transaction
"unsignedTxFrom": "0x" // the transaction sender
}
}
}
Receive transaction from winning bids.
Request:
{"jsonrpc": "2.0", "method": "eth_subscribe", "params": ["mkl_delivery"]}
Stream:
{
"jsonrpc": "2.0",
"method": "eth_subscription"
"params": {
"subscription": "<subscription id>",
"result": {
"bidId": string, // id of the winning bid
"signedTxs": string[] // the signed transactions
}
}
}
Last modified 5d ago