Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
66 lines
2.1 KiB
Bash
Executable File
66 lines
2.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Check transaction details across different chains
|
|
# Usage: ./check-transaction.sh <tx_hash>
|
|
|
|
set -euo pipefail
|
|
|
|
TX_HASH="${1:-0x789a8f3957f793b00f00e6907157c15156d1fab35a70db9476ef5ddcdce7c044}"
|
|
|
|
# Colors
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
info() { echo -e "${BLUE}[INFO]${NC} $1"; }
|
|
success() { echo -e "${GREEN}[✓]${NC} $1"; }
|
|
warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
|
|
error() { echo -e "${RED}[ERROR]${NC} $1"; }
|
|
|
|
echo "Transaction Hash: $TX_HASH"
|
|
echo ""
|
|
|
|
# Check ChainID 138
|
|
info "Checking ChainID 138..."
|
|
TX_138=$(curl -s -X POST https://rpc-http-pub.d-bis.org \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionByHash\",\"params\":[\"$TX_HASH\"],\"id\":1}" | jq -r '.result // null')
|
|
|
|
if [[ "$TX_138" != "null" && -n "$TX_138" ]]; then
|
|
success "Found on ChainID 138!"
|
|
echo "$TX_138" | jq '{from, to, value, blockNumber, blockHash}'
|
|
else
|
|
warn "Not found on ChainID 138"
|
|
fi
|
|
|
|
# Check receipt on ChainID 138
|
|
RECEIPT_138=$(curl -s -X POST https://rpc-http-pub.d-bis.org \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionReceipt\",\"params\":[\"$TX_HASH\"],\"id\":1}" | jq -r '.result // null')
|
|
|
|
if [[ "$RECEIPT_138" != "null" && -n "$RECEIPT_138" ]]; then
|
|
success "Receipt found on ChainID 138!"
|
|
echo "$RECEIPT_138" | jq '{status, blockNumber, gasUsed, contractAddress}'
|
|
fi
|
|
|
|
echo ""
|
|
|
|
# Check Ethereum Mainnet
|
|
info "Checking Ethereum Mainnet..."
|
|
TX_MAINNET=$(curl -s -X POST https://eth.llamarpc.com \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionByHash\",\"params\":[\"$TX_HASH\"],\"id\":1}" | jq -r '.result // null')
|
|
|
|
if [[ "$TX_MAINNET" != "null" && -n "$TX_MAINNET" ]]; then
|
|
success "Found on Ethereum Mainnet!"
|
|
echo "$TX_MAINNET" | jq '{from, to, value, blockNumber, blockHash}'
|
|
else
|
|
warn "Not found on Ethereum Mainnet"
|
|
fi
|
|
|
|
echo ""
|
|
info "Etherscan link: https://etherscan.io/tx/$TX_HASH"
|
|
info "Blockscout (ChainID 138): https://explorer.d-bis.org/tx/$TX_HASH"
|
|
|