Skip to main content

create

Function create 

Source
pub async fn create(
    ctx: &Ctx,
    who: &Identity,
    dest_name: &str,
    req: &Request,
) -> ApiResult<(ChallengeRow, (i32, i32))>
Expand description

Create a challenge. With acceptByToken, the opponent’s token accepts it in the same transaction and the game starts at once.