Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul Covalent (Goldrush) Docs #1007

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl --request GET \
--url https://api.covalenthq.com/v1/moonbeam-moonbase-alpha/block_hash/0x2a9cda3cfd23dffbe064932991568cae601d178717743eabc326222123d7ad44/transactions_v3/ \
--header 'Authorization: Bearer INSERT_API_KEY'
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"data": {
"updated_at": "2024-10-09T01:58:08.816101489Z",
"chain_id": 1287,
"chain_name": "moonbeam-moonbase-alpha",
"items": [
{
"block_signed_at": "2024-10-09T01:51:42Z",
"block_height": 8960094,
"block_hash": "0x2a9cda3cfd23dffbe064932991568cae601d178717743eabc326222123d7ad44",
"tx_hash": "0x4abfef674580260d3c837e1dc5b17b8bf809e620518e40d3731c6c1cfa5346d9",
"tx_offset": 0,
"successful": true,
"miner_address": "0xeda33e2b5ffb97bb8b901b71b87e5791556fd46b",
"from_address": "0xf5e8a439c599205c1ab06b535de46681aed1007a",
"from_address_label": null,
"to_address": "0x21e612506ab4792a5d22466c0b529bb9afe4e42b",
"to_address_label": null,
"value": "0",
"value_quote": null,
"pretty_value_quote": null,
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Dev",
"contract_ticker_symbol": "DEV",
"contract_address": "0x0000000000006d6f6f6e626173652d616c706861",
"supports_erc": [
"erc20"
],
"logo_url": "https://www.datocms-assets.com/86369/1669924204-moonbeam.svg"
},
"gas_offered": 505088,
"gas_spent": 184528,
"gas_price": 1200000000,
"fees_paid": "221433600000000",
"gas_quote": null,
"pretty_gas_quote": null,
"gas_quote_rate": null,
"explorers": [
{
"label": null,
"url": "https://moonbase-blockscout.testnet.moonbeam.network/tx/0x4abfef674580260d3c837e1dc5b17b8bf809e620518e40d3731c6c1cfa5346d9"
}
]
}
],
"pagination": null
},
"error": false,
"error_message": null,
"error_code": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl --request GET \
--url https://api.covalenthq.com/v1/address/0x3B939FeaD1557C741Ff06492FD0127bd287A421e/activity/ \
--header 'Authorization: Bearer INSERT_API_KEY'
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"data": {
"updated_at": "2024-10-09T02:08:22.594362014Z",
"address": "0x3b939fead1557c741ff06492fd0127bd287a421e",
"items": [
{
"name": "matic-mainnet",
"chain_id": "137",
"is_testnet": false,
"label": "Polygon Mainnet",
"category_label": "Polygon",
"logo_url": "https://www.datocms-assets.com/86369/1677870347-property-1-polygon-zkevm-icon-white.svg",
"color_theme": {
"hex": "#8247E5",
"css_rgb": "rgb(130 71 229)"
},
"last_seen_at": "2024-06-26T09:50:16Z"
},
{
"name": "moonbeam-mainnet",
"chain_id": "1284",
"is_testnet": false,
"label": "Moonbeam Mainnet",
"category_label": "Moonbeam",
"logo_url": "https://www.datocms-assets.com/86369/1669924204-moonbeam.svg",
"color_theme": {
"hex": "#54CBC8",
"css_rgb": "rgb(84 203 200)"
},
"last_seen_at": "2024-10-04T01:11:42Z"
}
]
},
"error": false,
"error_message": null,
"error_code": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl --request GET \
--url https://api.covalenthq.com/v1/moonbeam-moonbase-alpha/bulk/transactions/0x3B939FeaD1557C741Ff06492FD0127bd287A421e/ \
--header 'Authorization: Bearer INSERT_API_KEY'
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"data": {
"address": "0x3b939fead1557c741ff06492fd0127bd287a421e",
"updated_at": "2024-10-09T01:12:17.851277100Z",
"next_update_at": "2024-10-09T01:17:17.851280680Z",
"quote_currency": "USD",
"chain_id": 1287,
"chain_name": "moonbeam-moonbase-alpha",
"items": [
{
"block_signed_at": "2021-05-27T18:13:12Z",
"block_height": 6971,
"tx_hash": "0xc94e0072477e2543d17662317d40e4785ac6bb327c2a7483021167684b8584f3",
"from_address": "0xc10dc91c62c4854ffc0997776d495da3d8c79730",
"to_address": null,
"value": "0",
"fees_paid": "1044522000000000",
"gas_quote": null,
"gas_quote_rate": null,
"log_events": [
{
"sender_name": "Mercury",
"sender_contract_ticker_symbol": "MERC",
"sender_address": "0x37822de108affdd5cdcfdaaa2e32756da284db85",
"decoded": {
"name": "Transfer",
"params": [
{
"name": "from",
"value": "0x0000000000000000000000000000000000000000"
},
{
"name": "to",
"value": "0x3b939fead1557c741ff06492fd0127bd287a421e"
},
{
"name": "value",
"value": "100000000000000000000000"
}
]
}
}
]
},
{
"block_signed_at": "2021-05-27T18:13:24Z",
"block_height": 6972,
"tx_hash": "0xc37137133cbb8b0810943a6625a7193b5b18d72b5e21a78103243f482c269e71",
"from_address": "0xc10dc91c62c4854ffc0997776d495da3d8c79730",
"to_address": null,
"value": "0",
"fees_paid": "1044486000000000",
"gas_quote": null,
"gas_quote_rate": null,
"log_events": [
{
"sender_name": "Venus",
"sender_contract_ticker_symbol": "VEN",
"sender_address": "0xcdf746c5c86df2c2772d2d36e227b4c0203cba25",
"decoded": {
"name": "Transfer",
"params": [
{
"name": "from",
"value": "0x0000000000000000000000000000000000000000"
},
{
"name": "to",
"value": "0x3b939fead1557c741ff06492fd0127bd287a421e"
},
{
"name": "value",
"value": "100000000000000000000000"
}
]
}
}
]
}
]
},
"error": false,
"error_message": null,
"error_code": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl --request GET \
--url https://api.covalenthq.com/v1/moonbeam-mainnet/approvals/0x3B939FeaD1557C741Ff06492FD0127bd287A421e/ \
--header 'Authorization: Bearer INSERT_API_KEY'
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"data": {
"address": "0x3b939fead1557c741ff06492fd0127bd287a421e",
"updated_at": "2024-10-09T02:11:10.587740726Z",
"quote_currency": "USD",
"chain_id": 1284,
"chain_name": "moonbeam-mainnet",
"items": [
{
"token_address": "0xffffffff1fcacbd218edc0eba20fc2308c778080",
"token_address_label": "xcDOT",
"ticker_symbol": "xcDOT",
"contract_decimals": 10,
"logo_url": "https://logos.covalenthq.com/tokens/1284/0xffffffff1fcacbd218edc0eba20fc2308c778080.png",
"quote_rate": 4.169,
"balance": "1655341603",
"balance_quote": 0.6901119142907,
"pretty_balance_quote": "$0.69",
"spenders": [
{
"spender_address": "0xbc7e02c4178a7df7d3e564323a5c359dc96c4db4",
"spender_address_label": "Stella stDOT",
"allowance": "UNLIMITED",
"value_at_risk_quote": 0.6901119142907,
"pretty_value_at_risk_quote": "$0.69",
"risk_factor": "LOW RISK"
}
]
},
{
"token_address": "0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b",
"token_address_label": "USD Coin",
"ticker_symbol": "USDC",
"contract_decimals": 6,
"logo_url": "https://logos.covalenthq.com/tokens/1284/0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b.png",
"quote_rate": 0.09,
"balance": "1",
"balance_quote": 0,
"pretty_balance_quote": "$0.00",
"spenders": [
{
"spender_address": "0x70085a09d30d6f8c4ecf6ee10120d1847383bb57",
"spender_address_label": null,
"allowance": "UNLIMITED",
"value_at_risk_quote": 0,
"pretty_value_at_risk_quote": "$0.00",
"risk_factor": "LOW RISK"
}
]
}
]
},
"error": false,
"error_message": null,
"error_code": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl --request GET \
--url https://api.covalenthq.com/v1/moonbeam-moonbase-alpha/transaction_v2/0xbbf16145833d6c906cd2e01254fabe17c59da711df9efacaacf50fc8453a2c60/ \
--header 'Authorization: Bearer INSERT_API_KEY'
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"data": {
"updated_at": "2024-10-09T00:33:57.799418189Z",
"chain_id": 1287,
"chain_name": "moonbeam-moonbase-alpha",
"items": [
{
"block_signed_at": "2024-09-27T22:23:54Z",
"block_height": 8816296,
"block_hash": "0x2f89cd5009b3c69de1eb4edf678a5dfb6c2366cb7da6945783a443133b3df44e",
"tx_hash": "0xbbf16145833d6c906cd2e01254fabe17c59da711df9efacaacf50fc8453a2c60",
"tx_offset": 1,
"successful": true,
"miner_address": "0xd34fedcefbaacbd74bd3d0bb80b3a67e6b2defb7",
"from_address": "0x3b939fead1557c741ff06492fd0127bd287a421e",
"from_address_label": null,
"to_address": "0xffffffff1fcacbd218edc0eba20fc2308c778080",
"to_address_label": null,
"value": "0",
"value_quote": null,
"pretty_value_quote": null,
"gas_metadata": {
"contract_decimals": 18,
"contract_name": "Dev",
"contract_ticker_symbol": "DEV",
"contract_address": "0x0000000000006d6f6f6e626173652d616c706861",
"supports_erc": [
"erc20"
],
"logo_url": "https://www.datocms-assets.com/86369/1669924204-moonbeam.svg"
},
"gas_offered": 169164,
"gas_spent": 110096,
"gas_price": 125000000,
"fees_paid": "13762000000000",
"gas_quote": null,
"pretty_gas_quote": null,
"gas_quote_rate": null,
"explorers": [
{
"label": null,
"url": "https://moonbase-blockscout.testnet.moonbeam.network/tx/0xbbf16145833d6c906cd2e01254fabe17c59da711df9efacaacf50fc8453a2c60"
}
],
"log_events": [
{
"block_signed_at": "2024-09-27T22:23:54Z",
"block_height": 8816296,
"tx_offset": 1,
"log_offset": 1,
"tx_hash": "0xbbf16145833d6c906cd2e01254fabe17c59da711df9efacaacf50fc8453a2c60",
"raw_log_topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000003b939fead1557c741ff06492fd0127bd287a421e",
"0x0000000000000000000000004b8c667590e6a28497ea4be5facb7e9869a64eae"
],
"sender_contract_decimals": 12,
"sender_name": "xcUNIT",
"sender_contract_ticker_symbol": "xcUNIT",
"sender_address": "0xffffffff1fcacbd218edc0eba20fc2308c778080",
"sender_address_label": null,
"sender_logo_url": "https://logos.covalenthq.com/tokens/1287/0xffffffff1fcacbd218edc0eba20fc2308c778080.png",
"supports_erc": [
"erc20"
],
"sender_factory_address": null,
"raw_log_data": "0x000000000000000000000000000000000000000000000000000000e8d4a51000",
"decoded": {
"name": "Transfer",
"signature": "Transfer(indexed address from, indexed address to, uint256 value)",
"params": [
{
"name": "from",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0x3b939fead1557c741ff06492fd0127bd287a421e"
},
{
"name": "to",
"type": "address",
"indexed": true,
"decoded": true,
"value": "0x4b8c667590e6a28497ea4be5facb7e9869a64eae"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"decoded": true,
"value": "1000000000000"
}
]
}
}
]
}
],
"pagination": null
},
"error": false,
"error_message": null,
"error_code": null
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl --request GET \
--url https://api.covalenthq.com/v1/moonbeam-moonbase-alpha/block/8960094/transactions_v3/page/0/ \
--header 'Authorization: Bearer INSERT_API_KEY'
Loading
Loading