Function sentry::routes::channel::get_leaf

source ·
pub async fn get_leaf<C: Locked + 'static>(
    __arg0: Extension<Arc<Application<C>>>,
    __arg1: Extension<ChainOf<Channel>>,
    __arg2: Extension<LeafFor>,
    __arg3: Path<(ChannelId, Address)>
) -> Result<Json<GetLeafResponse>, ResponseError>
Expand description

GET /v5/channel/0xXXX.../get-leaf requests

Routes:

  • GET /v5/channel/:id/get-leaf/spender/:addr
  • GET /v5/channel/:id/get-leaf/earner/:addr

Response: [GetLeafResponse]