Thanks again.
I was trying to avoid turning this into a javascript helpdesk, but one additional question.
I need to add the ETH address value to every one of the tokenInfo strings, but just can’t figure out how.
Every item has a different ETH address to add.
So I’m looking from this:
[
{
"address": "0x85c472b13c20460d44aec35346f3441959f6dd33",
"ETH": {
"price": {
"rate": 3195.1098860615193,
"diff": -6.87,
"diff7d": -19.16,
"ts": 1631531762,
"marketCapUsd": 375442502251.81396,
"availableSupply": 117505348.999,
"volume24h": 17305270902.642925,
"diff30d": -3.005162245409764,
"volDiff1": -2.727215391286208,
"volDiff7": 8.460140704535405,
"volDiff30": 0.7670256816714414
},
"balance": 7.214738026712414,
"rawBalance": "7214738026712414138"
},
"countTxs": 316,
"tokens": [
{
"tokenInfo": {
"address": "0x0e49144b8b8d228eb7d266f15b2e140fea72a54e",
"decimals": "0",
"name": "Abstract Store",
"owner": "0x",
"symbol": "DAVIS",
"totalSupply": "100",
"lastUpdated": 1628121185,
"issuancesCount": 0,
"holdersCount": 1,
"ethTransfersCount": 0,
"price": false
},
"balance": 1,
"totalIn": 0,
"totalOut": 0,
"rawBalance": "1"
},
To this, for every single one of the tokenInfo strings in the item(s):
[
{
"address": "0x85c472b13c20460d44aec35346f3441959f6dd33",
"ETH": {
"price": {
"rate": 3195.1098860615193,
"diff": -6.87,
"diff7d": -19.16,
"ts": 1631531762,
"marketCapUsd": 375442502251.81396,
"availableSupply": 117505348.999,
"volume24h": 17305270902.642925,
"diff30d": -3.005162245409764,
"volDiff1": -2.727215391286208,
"volDiff7": 8.460140704535405,
"volDiff30": 0.7670256816714414
},
"balance": 7.214738026712414,
"rawBalance": "7214738026712414138"
},
"countTxs": 316,
"tokens": [
{
"tokenInfo": {
"ETHaddress": "0x85c472b13c20460d44aec35346f3441959f6dd33",
"address": "0x0e49144b8b8d228eb7d266f15b2e140fea72a54e",
"decimals": "0",
"name": "Abstract Store",
"owner": "0x",
"symbol": "DAVIS",
"totalSupply": "100",
"lastUpdated": 1628121185,
"issuancesCount": 0,
"holdersCount": 1,
"ethTransfersCount": 0,
"price": false
},
"balance": 1,
"totalIn": 0,
"totalOut": 0,
"rawBalance": "1"
},