with Bitquery and Typefully?
Schedules a draft for publication at a specific date and time. See the documentation
Schedules an existing draft for publication in the next available time slot. See the documentation
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: {
typefully: {
type: "app",
app: "typefully",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.typefully.com/v1/notifications/`,
headers: {
"x-api-key": `${this.typefully.$auth.api_key}`,
},
params: {
kind: `activity`,
},
})
},
})