post https://api.tatum.io/v3/offchain/bcash/transfer
10 credits per API call.
Send BCH (Bitcoin Cash) from a virtual account to the blockchain. This will create Tatum internal withdrawal request with ID. If every system works as expected, withdrawal request is marked as complete and transaction id is assigned to it.
- If Bitcoin Cash server connection is unavailable, withdrawal request is cancelled.
- If blockchain transfer is successful, but is it not possible to reach Tatum, transaction id of blockchain transaction is returned and withdrawal request must be completed manually, otherwise all other withdrawals will be pending.
- Using mnemonic - all of the addresses, that are generated from the mnemonic are scanned for the incoming deposits which are used as a source of the transaction. Assets, which are not used in a transaction are moved to the system address wih the derivation index 0. Address with index 0 cannot be assigned automatically to any account and is used for custodial wallet use cases. For non-custodial wallets, field attr should be present and it should be address with the index 1 of the connected wallet.
- Using keyPair - addresses which are used as a source of the transaction are entered manually
This method is a helper method, which internally wraps these steps:
- Store withdrawal - create a ledger transaction, which debits the assets on the sender account.
- Perform blockchain transaction
- Complete withdrawal - move the withdrawal to the completed state, when all of the previous steps were successful.