Withdrawal on mev-commit chain should be done in two steps:

1

Unstake Funds

Unstake the funds from the provider registry.

> curl -X POST "http://localhost:13523/v1/provider/unstake"
2

Withdraw Stake

Withdraw the stake from the provider registry.

After 24 hours following the unstake operation, you can withdraw the funds from the provider registry.

> curl -X POST "http://localhost:13523/v1/provider/withdraw_stake" | jq
{
    "amount": "1000000000000000000"
}