Ethereum: How do you push a transaction to the Bitcoin Cash Network? [closed]

Direction of transaction in Bitcoin — Casso Net: Handmade

As a second currency, the currency of the market capitalization, the ethereum became the center of the deentalized attachments (DAPPS) and the intelyteual contract. The topic is not less, not all this dapp can be distributed with the network of the bite (BCH), which becomes the full -heartedness of the Alternate Bitcoin. In this state, we dissatisfied with the transaction from Ethereum in Bitcoin -xy Net with Api Blocktrail.

Make a blockrail?

Blocktrail – this is a popular platform for the scorching and reproaching management, in that time on the Ethereum blockchain. The Great Api, the derails can interact with their dappo with the various networks, the Binance Smart Chain (BSC) and BCH. In this case, we will go on the BSC, because it is one of the most prospective alternative cryptocurrencies for bitcoins.

API Blocktrail

Blocktrail immersed a strong set of API, which allows the stretching to be distributed with their own attachments of the blockchain. Exhabbed “Blocktrail.com/APIprovides access to the dangers, included transaction and analytics of data.

  • The Acting Undoculated Block

  • ADRESS KOLKOLKOBCSDK(Intellectual Binance) or Koshelek Ethereum

  • Ended PowerBlocktrail.com/API/V2/Ransactments

Handbook for Chaga for Shag

Here is a sub -ledge on the predation of transaction with ethereum in BSC with the Blockrail API:

1.

  • SEEPE STATE-PAILY PEOP CLUVISH : Submit the new closed key (Private_bytes) and the ridiculous general key (Public_key). You can use such instruments as jaintools or for the creation of their help with the librariesecdsa ‘in python.

3.

4.

5.

  • You can use such a library as “Hashlib”, to generate the hash -fununity.

7.

Primer code

Here’s a python code, which shows how to pursue a transaction from ethereum in BSC:

“ Python

JSON IMport

That’s the client in the blocking

Ethereum: How do you push a transaction to the Bitcoin Cash Network? [closed]

Bloc’s ucerel data API

Blocktrail_token = “Your_api_token”

Client_id = “Your_Client_id”

Secree_key = “Your_secret_key”

Sub -shutter to the BCSDK or Koshlka Ethereum Kosh

BCSDK_Wallet_address = “0xyour_bcsdk_wallet_address”

Ethereum_wallet_address = “0xyour_ethereumwallet_address”

Create a new closed key (Private_bytes)

PRIVATE_BYTES = BCSDK_WALLT_ADDRESS.Ecode ()

Spoiled the open key (Public_Key), using the closed key

PUBLIC_KEY = Ethereum_Wallet_address.encode ()

Create a new transaction

Transact_inputs = [

{“Collection”: 10, “From”: “Address Koshka Ethereum”, “To”: BCSDK_WALLETE_ADDRESS},

]

Transact_outupts = []

Transaction_hash_function = Hashlib.ha256

Undercut the transaction in the API BLOCTRY

Blocktrail_Client = Client (Blocktrail_token, Client_id, Secry_key)

Push_transation_result = blocktrail_client.

influence influence energy cryptocurrency mining

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *