Skip to main content

faucet

Function faucet 

Source
pub async fn faucet(
    __arg0: State<AppState>,
    __arg1: SonicJson<FaucetRequest>,
) -> Result<SonicJson<ApiResponse<FaucetResponse>>, ApiError>
Expand description

Credit test funds to a wallet (testnet only)

This endpoint is only available when the faucet feature is enabled and modes.testnet_mode=true.