with Bitquery and Stack Overflow for Teams?
The Bitquery API offers deep insights into blockchain data across multiple chains. With it, you can extract transaction details, smart contract interactions, and wallet addresses' behavior. When paired with Pipedream, you can automate blockchain-related tasks, create triggers based on on-chain events, or integrate blockchain data into other applications or services. Analyzing trends, monitoring wallets, and real-time alerting for transactions become seamless with Bitquery on Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitquery: {
type: "app",
app: "bitquery",
}
},
async run({steps, $}) {
const data = {
"query": `{
EVM(network: eth) {
Blocks(limit: { count: 10 }) {
Block {
Number
Time
}
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://streaming.bitquery.io/graphql`,
headers: {
Authorization: `Bearer ${this.bitquery.$auth.oauth_access_token}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stack_overflow_for_teams: {
type: "app",
app: "stack_overflow_for_teams",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.stackoverflowteams.com/2.3/users`,
headers: {
"x-api-access-token": `${this.stack_overflow_for_teams.$auth.api_access_token}`,
},
params: {
order: `desc`,
team: `${this.stack_overflow_for_teams.$auth.team_slug}`,
},
})
},
})