ethexe-rpc-client 2.0.0-pre.1

JSON-RPC client APIs for ethexe
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) Gear Technologies Inc.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

use ethexe_common::Address;
use jsonrpsee::proc_macros::rpc;

#[rpc(client)]
pub trait Dev {
    /// This call is infallible and always return the protocol Router address.
    #[method(name = "routerAddress")]
    async fn router_address(&self) -> jsonrpsee::core::RpcResult<Address>;
}