Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The order was "successfully" created in the code with the transaction hash, but not found on https://explorer.binance.org/tx/ #12

Open
tungleqb opened this issue Sep 3, 2021 · 0 comments

Comments

@tungleqb
Copy link

tungleqb commented Sep 3, 2021

I created a new order with simple code:

import asyncio
from binancechain import HTTPClient, Wallet, Transaction, BinanceChainException, Ordertype, Side, Timeinforce, WebSocket
memo = 'xxxx xxxx xxx'
pw = 'abcd'
myChainclient = HTTPClient(testnet=False)
myWallet = Wallet.wallet_from_mnemonic(words=memo, password=pw)
Transaction = Transaction(wallet=myWallet, client=myChainclient)

async def ordproc():
new_order_txid = await Transaction.create_new_order(symbol='BNB_BUSD-DB1', side=Side.BUY,
ordertype=Ordertype.LIMIT, price= 456.2, quantity= 0.002, timeInForce=Timeinforce.GTE)
print(new_order_txid)
event_loop = asyncio.new_event_loop()
asyncio.set_event_loop(event_loop)
event_loop.run_until_complete(ordproc())

########
result: I got a response below:
CHAIN ID Binance-Chain-Tigris
[{'code': 0, 'hash': 'E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC', 'log': '', 'ok': True}]

But I can't found the hash on real Binance Chain main netword with https://explorer.binance.org/tx/E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC
I used mainnet, not testnet.
I checked many times after running for a few hours.

Please show me my mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant