diff --git a/shyftBlockExplorerUI/src/components/table/accounts/accountRows.js b/shyftBlockExplorerUI/src/components/table/accounts/accountRows.js
index 66a88bc362..286d8fa1bc 100644
--- a/shyftBlockExplorerUI/src/components/table/accounts/accountRows.js
+++ b/shyftBlockExplorerUI/src/components/table/accounts/accountRows.js
@@ -47,11 +47,11 @@ class AccountTable extends Component {
- | Rank |
- Address |
- Balance |
- Percentage |
- TxCount |
+ Rank |
+ Address |
+ Balance |
+ Percentage |
+ TxCount |
{table}
diff --git a/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsRow.js b/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsRow.js
index 84a814e173..1010e1a54a 100644
--- a/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsRow.js
+++ b/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsRow.js
@@ -35,14 +35,14 @@ class AccountTransactionTable extends Component {
- | TxHash |
- Block |
- Age |
- From |
- |
- To |
- Value |
- TxFee |
+ TxHash |
+ Block |
+ Age |
+ From |
+ |
+ To |
+ Value |
+ TxFee |
{table}
diff --git a/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsTable.js b/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsTable.js
index d8ee77b005..b051a28cec 100644
--- a/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsTable.js
+++ b/shyftBlockExplorerUI/src/components/table/accounts/detailAccountsTable.js
@@ -16,21 +16,26 @@ const DetailAccountsTable = (props) => {
genFlag = true
}
return (
-
-
- |
- props.detailTransactionHandler(props.txHash)}>
- {props.txHash}
+ |
+
+ |
+ props.detailTransactionHandler(props.txHash)}>
+ {props.txHash}
+
|
- {props.blockNumber} |
- {props.age} |
- {props.from} |
- { flag ? "IN" : "OUT" } |
- {props.to} |
- {props.value} |
- {props.cost} |
+ {props.blockNumber} |
+ {props.age} |
+ {props.from} |
+
+
+ { flag ? "IN" : "OUT" }
+
+ |
+ {props.to} |
+ {props.value} |
+ {props.cost} |
-
+
)
};
diff --git a/shyftBlockExplorerUI/src/components/table/accounts/table.css b/shyftBlockExplorerUI/src/components/table/accounts/table.css
index 01d7360aa6..231c950c0b 100644
--- a/shyftBlockExplorerUI/src/components/table/accounts/table.css
+++ b/shyftBlockExplorerUI/src/components/table/accounts/table.css
@@ -47,3 +47,4 @@ td {
pointer-events: none;
color: black;
}
+
diff --git a/shyftBlockExplorerUI/src/containers/App.js b/shyftBlockExplorerUI/src/containers/App.js
index 0b43126790..740cf74581 100644
--- a/shyftBlockExplorerUI/src/containers/App.js
+++ b/shyftBlockExplorerUI/src/containers/App.js
@@ -49,6 +49,7 @@ class App extends Component {
internalDetailData: [],
blocksMined: [],
blockTransactions: [],
+ accounts: [],
reqAccount: '',
overlayTriggered: false,
overlayContent: "",
@@ -76,10 +77,11 @@ class App extends Component {
}
};
+
detailAccountHandler = async(addr) => {
try {
const response = await axios.get(`http://localhost:8080/api/get_account_txs/${addr}`)
- await this.setState({ accountDetailData: response.data, reqAccount: addr, overlayTriggered: false })
+ await this.setState({ accountDetailData: response.data, reqAccount: addr, overlayTriggered: false, overlayContent: "account" })
}
catch(error) {
console.log(error)
@@ -107,6 +109,18 @@ class App extends Component {
console.log(error)
}
};
+
+
+ getAccounts = async() => {
+ try {
+ const response = await axios.get(`http://localhost:8080/api/get_all_accounts`)
+ await this.setState({ accounts: response.data, overlayTriggered: false })
+ }
+ catch(error) {
+ console.log(error)
+ }
+ };
+
getBlockTransactions = async(blockNumber) => {