-
Notifications
You must be signed in to change notification settings - Fork 2
Get Transactions info
wirfeon edited this page Feb 20, 2021
·
1 revision
- Following parameters required:
- Transaction ID or hash - identifier of transaction to get info about
from xpxchain import models
from xpxchain import client
ENDPOINT = '//localhost:3000'
tx_hash = 'C95B61BF128BF8D7ED12B997197F2CC220BF33A19BBCF10C67B22086BED85ED6'
with client.TransactionHTTP(ENDPOINT) as http:
tx_info = http.get_transaction(tx_hash)
print(tx_info)
- Following parameters required:
- []Transaction ID or hash - identifiers of transaction to get info about
from xpxchain import models
from xpxchain import client
ENDPOINT = '//localhost:3000'
tx_hashes = [
'C95B61BF128BF8D7ED12B997197F2CC220BF33A19BBCF10C67B22086BED85ED6',
'463FDEC912FC4BA3D84FEC31E8293FAE6D142FC271A71E464FDA563F056A6151'
]
with client.TransactionHTTP(ENDPOINT) as http:
tx_info = http.get_transactions(tx_hashes)
print(tx_info)
- Following parameters required:
- Transaction ID or hash - identifier of transaction to get its status
from xpxchain import models
from xpxchain import client
ENDPOINT = '//localhost:3000'
tx_hash = 'C95B61BF128BF8D7ED12B997197F2CC220BF33A19BBCF10C67B22086BED85ED6'
with client.TransactionHTTP(ENDPOINT) as http:
tx_info = http.get_transaction_status(tx_hash)
print(tx_info)
- Following parameters required:
- []Transaction ID or hash - identifier of transaction to get their statuses
from xpxchain import models
from xpxchain import client
ENDPOINT = '//localhost:3000'
tx_hashes = [
'C95B61BF128BF8D7ED12B997197F2CC220BF33A19BBCF10C67B22086BED85ED6',
'463FDEC912FC4BA3D84FEC31E8293FAE6D142FC271A71E464FDA563F056A6151'
]
with client.TransactionHTTP(ENDPOINT) as http:
tx_info = http.get_transaction_statuses(tx_hashes)
print(tx_info)