ballerinax/chaingateway Ballerina library

1.5.1

Overview

This is a generated connector for Chaingateway API v1.0 OpenAPI specification.

This is the REST API to build the bridge between Ethereum and the real world. All of the integrations communicates with chaingateway.io through this API.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

Quickstart

To use the Chaingateway connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

Import the ballerinax/chaingateway module into the Ballerina project.

Copy
import ballerinax/chaingateway;

Step 2: Create a new connector instance

You can initialize the client as follows. You can now provide the API key obtained from the Chaingateway.io in the configuration.

Copy
chaingateway:ApiKeysConfig config = {
    authorization: "<API_KEY>"
}
chaingateway:Client baseClient = check new Client(config);

Step 3: Invoke connector operation

  1. You can use this function to get gas price of Ethereum.
    Copy
    chaingateway:GetGasPrice gasPrice = check baseClient->getGasPrice("json");
  2. Use bal run command to compile and run the Ballerina program

Import

import ballerinax/chaingateway;Copy

Metadata

Released date: 10 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 

Current verison: 0


Weekly downloads


Source repository


Keywords

Finance/Cryptocurrency
Cost/Freemium

Contributors

Other versions

See more...