The Overledger API by Quant Network allows developers to interact with multiple blockchain networks. It facilitates the creation, reading, and execution of smart contracts and transactions across different blockchains. This API simplifies the complex nature of blockchain interoperability, enabling multi-chain applications (MApps) through a single gateway.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
overledger: {
type: "app",
app: "overledger",
}
},
async run({steps, $}) {
const data = {
"location": {
"technology": "Ethereum",
"network": "Ethereum Sepolia Testnet"
}
}
return await axios($, {
method: "post",
url: `https://api.sandbox.overledger.dev/v2/autoexecution/search/block/latest`,
headers: {
Authorization: `Bearer ${this.overledger.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Automated Multi-chain Financial Reporting: Build a workflow on Pipedream that triggers monthly, pulling transaction data from various blockchains via the Overledger API. Integrate this data with Google Sheets or a similar app on Pipedream to generate consolidated financial reports.
Cross-Blockchain Event Monitoring: Set up a Pipedream workflow to monitor specific events (like transactions or smart contract interactions) across multiple blockchains using Overledger. This can trigger notifications via Slack or email when predefined conditions are met, such as unusual transaction volumes or large transfers.
Decentralized Application (DApp) Management: Develop a workflow in Pipedream that utilizes Overledger to deploy and manage smart contracts across different blockchains. The workflow could, for instance, automatically update or verify contracts on Ethereum and Binance Smart Chain when a GitHub repository is updated, using a combination of Overledger and GitHub triggers on Pipedream.
Executes a signed transaction by sending it to a blockchain node via Overledger. See the documentation
Prepares a smart contract transaction for signing on the Overledger platform. See the documentation
Reads data from a specified smart contract on the Overledger network.
Sign a transaction using Overledger - Part 2 of Overledger Pattern. See documentation
Overledger uses OAuth authentication. When you connect your Overledger account, Pipedream will open a popup window where you can sign into Overledger and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Overledger API.
Pipedream requests the following authorization scopes when you connect your account:
overledger/read.scope
POST
https://auth.overledger.dev/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
&
scope={{oauth.comma_separated_scopes}}
POST
https://auth.overledger.dev/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials