diff --git a/src/modules/[chain]/account/[address].vue b/src/modules/[chain]/account/[address].vue index 269d8ca6..f9295ce5 100644 --- a/src/modules/[chain]/account/[address].vue +++ b/src/modules/[chain]/account/[address].vue @@ -32,6 +32,7 @@ const txs = ref({} as TxResponse[]); const delegations = ref([] as Delegation[]); const rewards = ref({} as DelegatorRewards); const balances = ref([] as Coin[]); +const recentReceived = ref([] as TxResponse[]); const unbonding = ref([] as UnbondingResponses[]); const unbondingTotal = ref(0); const chart = {}; @@ -110,6 +111,12 @@ function loadAccount(address: string) { }); }); }); + + const receivedQuery = `?&pagination.reverse=true&events=coin_received.receiver='${address}'&pagination.limit=5`; + blockchain.rpc.getTxs(receivedQuery, {}).then((x) => { + console.log(x); + recentReceived.value = x.tx_responses; + }); } function updateEvent() { @@ -536,6 +543,50 @@ function updateEvent() { + +
| {{ $t('account.height') }} | +{{ $t('account.hash') }} | +{{ $t('account.amount') }} | +{{ $t('account.time') }} | +||||||
|---|---|---|---|---|---|---|---|---|---|
{{ $t('account.no_transactions') }} | |||||||||
|
+ |
+
+ |
+
+
+ {{ v.tx.body.messages.map(x => format.formatTokens(x.amount)).join(", ") }}
+
+ |
+ {{ format.toLocaleDate(v.timestamp) }} ({{ format.toDay(v.timestamp, 'from') }}) | +||||||