[api] [refactor] deposit and withdrawal methods now continue with a transaction property