We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"symbol": "BTC", | |
"direction": "outbound", | |
"path": [ | |
{ | |
"depth": 1, | |
"block": 654328, | |
"tx_time": "2020-10-26 05:55:30", | |
"amount": 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"symbol": "ETH", | |
"token_id": 0, | |
"token_type": "", | |
"token": "0x0000000000000000000000000000000000000000", | |
"direction": "inbound", | |
"path": [ | |
{ | |
"depth": 1, | |
"block": 11128247, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.23; | |
contract CrudApp { | |
struct country{ | |
string name; | |
string leader; | |
uint256 population; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ethereum(network: ethereum) { | |
dexTrades(options: {limit: 10, desc: ["block.height", "tradeIndex"]}, | |
protocol: {is: "Uniswap v2"}, | |
buyCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}, | |
sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}) { | |
block { | |
height | |
timestamp { | |
iso8601 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const query = ` | |
query{ | |
bitcoin{ | |
blocks{ | |
count | |
} | |
} | |
} | |
`; | |
const url = "https://graphql.bitquery.io/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'uri' | |
require 'json' | |
uri = URI.parse("https://graphql.bitquery.io/") | |
header = {'Content-Type': 'application/json'; 'X-API-KEY': 'YOUR API KEY'} | |
query = "{ bitcoin { blocks { count } } }" | |
# Create the HTTP objects | |
http = Net::HTTP.new(uri.host, uri.port) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ethereum(network: ethereum) { | |
dexTrades(options: {asc: "date.date"}, | |
buyOrSellCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}) { | |
date { | |
date(format: "%Y-%m") | |
} | |
amount | |
currency { | |
symbol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ethereum(network: ethereum) { | |
dexTrades(options: {limit: 10, desc: "trades"}, protocol: | |
{is: "Uniswap v2"}) { | |
protocol | |
buyCurrency { | |
symbol | |
address | |
} | |
buyAmount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ethereum(network: ethereum) { | |
dexTrades(options: {limit: 100, desc: "trades"}) { | |
protocol | |
started: minimum(of: date) | |
trades: count | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
ethereum { | |
smartContractEvents(options: {desc: "block.height", limit: 10}, | |
smartContractEvent: {is: "FlashLoan"}, | |
smartContractAddress: | |
{is: "0x398eC7346DcD622eDc5ae82352F02bE94C62d119"}) { | |
block { | |
height | |
timestamp { | |
iso8601 |