RPC client for Tendermint

ABCI

abciInfo

Get some info about the application.

Get some info about the application.


/abci_info

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/abci_info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ABCIApi;

import java.io.File;
import java.util.*;

public class ABCIApiExample {

    public static void main(String[] args) {
        
        ABCIApi apiInstance = new ABCIApi();
        try {
            ABCIInfoResponse result = apiInstance.abciInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ABCIApi#abciInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ABCIApi;

public class ABCIApiExample {

    public static void main(String[] args) {
        ABCIApi apiInstance = new ABCIApi();
        try {
            ABCIInfoResponse result = apiInstance.abciInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ABCIApi#abciInfo");
            e.printStackTrace();
        }
    }
}

ABCIApi *apiInstance = [[ABCIApi alloc] init];

// Get some info about the application.
[apiInstance abciInfoWithCompletionHandler: 
              ^(ABCIInfoResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.ABCIApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.abciInfo(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class abciInfoExample
    {
        public void main()
        {

            var apiInstance = new ABCIApi();

            try
            {
                // Get some info about the application.
                ABCIInfoResponse result = apiInstance.abciInfo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ABCIApi.abciInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiABCIApi();

try {
    $result = $api_instance->abciInfo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ABCIApi->abciInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ABCIApi;

my $api_instance = WWW::SwaggerClient::ABCIApi->new();

eval { 
    my $result = $api_instance->abciInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ABCIApi->abciInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ABCIApi()

try: 
    # Get some info about the application.
    api_response = api_instance.abci_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ABCIApi->abciInfo: %s\n" % e)

Parameters

Responses

Status: 200 - Get some info about the application.

Status: 500 - Error


abciQuery

Query the application for some information.

Query the application for some information.


/abci_query

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/abci_query?path=&data=&height=&prove="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ABCIApi;

import java.io.File;
import java.util.*;

public class ABCIApiExample {

    public static void main(String[] args) {
        
        ABCIApi apiInstance = new ABCIApi();
        String path = path_example; // String | Path to the data ("/a/b/c")
        String data = data_example; // String | Data
        BigDecimal height = 1.2; // BigDecimal | Height (0 means latest)
        Boolean prove = true; // Boolean | Include proofs of the transactions inclusion in the block
        try {
            ABCIQueryResponse result = apiInstance.abciQuery(path, data, height, prove);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ABCIApi#abciQuery");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ABCIApi;

public class ABCIApiExample {

    public static void main(String[] args) {
        ABCIApi apiInstance = new ABCIApi();
        String path = path_example; // String | Path to the data ("/a/b/c")
        String data = data_example; // String | Data
        BigDecimal height = 1.2; // BigDecimal | Height (0 means latest)
        Boolean prove = true; // Boolean | Include proofs of the transactions inclusion in the block
        try {
            ABCIQueryResponse result = apiInstance.abciQuery(path, data, height, prove);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ABCIApi#abciQuery");
            e.printStackTrace();
        }
    }
}
String *path = path_example; // Path to the data ("/a/b/c")
String *data = data_example; // Data
BigDecimal *height = 1.2; // Height (0 means latest) (optional) (default to 0)
Boolean *prove = true; // Include proofs of the transactions inclusion in the block (optional) (default to false)

ABCIApi *apiInstance = [[ABCIApi alloc] init];

// Query the application for some information.
[apiInstance abciQueryWith:path
    data:data
    height:height
    prove:prove
              completionHandler: ^(ABCIQueryResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.ABCIApi()
var path = path_example; // {{String}} Path to the data ("/a/b/c")
var data = data_example; // {{String}} Data
var opts = { 
  'height': 1.2, // {{BigDecimal}} Height (0 means latest)
  'prove': true // {{Boolean}} Include proofs of the transactions inclusion in the block
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.abciQuery(path, data, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class abciQueryExample
    {
        public void main()
        {

            var apiInstance = new ABCIApi();
            var path = path_example;  // String | Path to the data ("/a/b/c")
            var data = data_example;  // String | Data
            var height = 1.2;  // BigDecimal | Height (0 means latest) (optional)  (default to 0)
            var prove = true;  // Boolean | Include proofs of the transactions inclusion in the block (optional)  (default to false)

            try
            {
                // Query the application for some information.
                ABCIQueryResponse result = apiInstance.abciQuery(path, data, height, prove);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ABCIApi.abciQuery: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiABCIApi();
$path = path_example; // String | Path to the data ("/a/b/c")
$data = data_example; // String | Data
$height = 1.2; // BigDecimal | Height (0 means latest)
$prove = true; // Boolean | Include proofs of the transactions inclusion in the block

try {
    $result = $api_instance->abciQuery($path, $data, $height, $prove);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ABCIApi->abciQuery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ABCIApi;

my $api_instance = WWW::SwaggerClient::ABCIApi->new();
my $path = path_example; # String | Path to the data ("/a/b/c")
my $data = data_example; # String | Data
my $height = 1.2; # BigDecimal | Height (0 means latest)
my $prove = true; # Boolean | Include proofs of the transactions inclusion in the block

eval { 
    my $result = $api_instance->abciQuery(path => $path, data => $data, height => $height, prove => $prove);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ABCIApi->abciQuery: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ABCIApi()
path = path_example # String | Path to the data ("/a/b/c")
data = data_example # String | Data
height = 1.2 # BigDecimal | Height (0 means latest) (optional) (default to 0)
prove = true # Boolean | Include proofs of the transactions inclusion in the block (optional) (default to false)

try: 
    # Query the application for some information.
    api_response = api_instance.abci_query(path, data, height=height, prove=prove)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ABCIApi->abciQuery: %s\n" % e)

Parameters

Query parameters
Name Description
path*
String
Path to the data ("/a/b/c")
Required
data*
String
Data
Required
height
BigDecimal
Height (0 means latest)
prove
Boolean
Include proofs of the transactions inclusion in the block

Responses

Status: 200 - Response of the submitted query

Status: 500 - Error


Evidence

broadcastEvidence

Broadcast evidence of the misbehavior.

Broadcast evidence of the misbehavior.


/broadcast_evidence

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/broadcast_evidence?evidence="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EvidenceApi;

import java.io.File;
import java.util.*;

public class EvidenceApiExample {

    public static void main(String[] args) {
        
        EvidenceApi apiInstance = new EvidenceApi();
        String evidence = evidence_example; // String | Amino-encoded JSON evidence
        try {
            BroadcastEvidenceResponse result = apiInstance.broadcastEvidence(evidence);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EvidenceApi#broadcastEvidence");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EvidenceApi;

public class EvidenceApiExample {

    public static void main(String[] args) {
        EvidenceApi apiInstance = new EvidenceApi();
        String evidence = evidence_example; // String | Amino-encoded JSON evidence
        try {
            BroadcastEvidenceResponse result = apiInstance.broadcastEvidence(evidence);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EvidenceApi#broadcastEvidence");
            e.printStackTrace();
        }
    }
}
String *evidence = evidence_example; // Amino-encoded JSON evidence

EvidenceApi *apiInstance = [[EvidenceApi alloc] init];

// Broadcast evidence of the misbehavior.
[apiInstance broadcastEvidenceWith:evidence
              completionHandler: ^(BroadcastEvidenceResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.EvidenceApi()
var evidence = evidence_example; // {{String}} Amino-encoded JSON evidence

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.broadcastEvidence(evidence, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class broadcastEvidenceExample
    {
        public void main()
        {

            var apiInstance = new EvidenceApi();
            var evidence = evidence_example;  // String | Amino-encoded JSON evidence

            try
            {
                // Broadcast evidence of the misbehavior.
                BroadcastEvidenceResponse result = apiInstance.broadcastEvidence(evidence);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EvidenceApi.broadcastEvidence: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEvidenceApi();
$evidence = evidence_example; // String | Amino-encoded JSON evidence

try {
    $result = $api_instance->broadcastEvidence($evidence);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EvidenceApi->broadcastEvidence: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EvidenceApi;

my $api_instance = WWW::SwaggerClient::EvidenceApi->new();
my $evidence = evidence_example; # String | Amino-encoded JSON evidence

eval { 
    my $result = $api_instance->broadcastEvidence(evidence => $evidence);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EvidenceApi->broadcastEvidence: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EvidenceApi()
evidence = evidence_example # String | Amino-encoded JSON evidence

try: 
    # Broadcast evidence of the misbehavior.
    api_response = api_instance.broadcast_evidence(evidence)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EvidenceApi->broadcastEvidence: %s\n" % e)

Parameters

Query parameters
Name Description
evidence*
String
Amino-encoded JSON evidence
Required

Responses

Status: 200 - Broadcast evidence of the misbehavior.

Status: 500 - Error


Info

block

Get block at a specified height

Get Block.


/block

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/block?height="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch the latest block.
        try {
            BlockResponse result = apiInstance.block(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#block");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch the latest block.
        try {
            BlockResponse result = apiInstance.block(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#block");
            e.printStackTrace();
        }
    }
}
BigDecimal *height = 1.2; // height to return. If no height is provided, it will fetch the latest block. (optional) (default to 0)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get block at a specified height
[apiInstance blockWith:height
              completionHandler: ^(BlockResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'height': 1.2 // {{BigDecimal}} height to return. If no height is provided, it will fetch the latest block.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.block(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class blockExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var height = 1.2;  // BigDecimal | height to return. If no height is provided, it will fetch the latest block. (optional)  (default to 0)

            try
            {
                // Get block at a specified height
                BlockResponse result = apiInstance.block(height);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.block: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch the latest block.

try {
    $result = $api_instance->block($height);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->block: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $height = 1.2; # BigDecimal | height to return. If no height is provided, it will fetch the latest block.

eval { 
    my $result = $api_instance->block(height => $height);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->block: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
height = 1.2 # BigDecimal | height to return. If no height is provided, it will fetch the latest block. (optional) (default to 0)

try: 
    # Get block at a specified height
    api_response = api_instance.block(height=height)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->block: %s\n" % e)

Parameters

Query parameters
Name Description
height
BigDecimal
height to return. If no height is provided, it will fetch the latest block.

Responses

Status: 200 - Block information.

Status: 500 - Error


blockResults

Get block results at a specified height

Get block_results.


/block_results

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/block_results?height="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch information regarding the latest block.
        try {
            BlockResultsResponse result = apiInstance.blockResults(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#blockResults");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch information regarding the latest block.
        try {
            BlockResultsResponse result = apiInstance.blockResults(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#blockResults");
            e.printStackTrace();
        }
    }
}
BigDecimal *height = 1.2; // height to return. If no height is provided, it will fetch information regarding the latest block. (optional) (default to 0)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get block results at a specified height
[apiInstance blockResultsWith:height
              completionHandler: ^(BlockResultsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'height': 1.2 // {{BigDecimal}} height to return. If no height is provided, it will fetch information regarding the latest block.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.blockResults(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class blockResultsExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var height = 1.2;  // BigDecimal | height to return. If no height is provided, it will fetch information regarding the latest block. (optional)  (default to 0)

            try
            {
                // Get block results at a specified height
                BlockResultsResponse result = apiInstance.blockResults(height);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.blockResults: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch information regarding the latest block.

try {
    $result = $api_instance->blockResults($height);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->blockResults: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $height = 1.2; # BigDecimal | height to return. If no height is provided, it will fetch information regarding the latest block.

eval { 
    my $result = $api_instance->blockResults(height => $height);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->blockResults: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
height = 1.2 # BigDecimal | height to return. If no height is provided, it will fetch information regarding the latest block. (optional) (default to 0)

try: 
    # Get block results at a specified height
    api_response = api_instance.block_results(height=height)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->blockResults: %s\n" % e)

Parameters

Query parameters
Name Description
height
BigDecimal
height to return. If no height is provided, it will fetch information regarding the latest block.

Responses

Status: 200 - Block results.

Status: 500 - Error


blockchain

Get block headers for minHeight <= height <= maxHeight.

Get Blockchain info.


/blockchain

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/blockchain?minHeight=&maxHeight="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal minHeight = 1.2; // BigDecimal | Minimum block height to return
        BigDecimal maxHeight = 1.2; // BigDecimal | Maximum block height to return
        try {
            BlockchainResponse result = apiInstance.blockchain(minHeight, maxHeight);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#blockchain");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal minHeight = 1.2; // BigDecimal | Minimum block height to return
        BigDecimal maxHeight = 1.2; // BigDecimal | Maximum block height to return
        try {
            BlockchainResponse result = apiInstance.blockchain(minHeight, maxHeight);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#blockchain");
            e.printStackTrace();
        }
    }
}
BigDecimal *minHeight = 1.2; // Minimum block height to return (optional)
BigDecimal *maxHeight = 1.2; // Maximum block height to return (optional)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get block headers for minHeight <= height <= maxHeight.
[apiInstance blockchainWith:minHeight
    maxHeight:maxHeight
              completionHandler: ^(BlockchainResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'minHeight': 1.2, // {{BigDecimal}} Minimum block height to return
  'maxHeight': 1.2 // {{BigDecimal}} Maximum block height to return
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.blockchain(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class blockchainExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var minHeight = 1.2;  // BigDecimal | Minimum block height to return (optional) 
            var maxHeight = 1.2;  // BigDecimal | Maximum block height to return (optional) 

            try
            {
                // Get block headers for minHeight <= height <= maxHeight.
                BlockchainResponse result = apiInstance.blockchain(minHeight, maxHeight);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.blockchain: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$minHeight = 1.2; // BigDecimal | Minimum block height to return
$maxHeight = 1.2; // BigDecimal | Maximum block height to return

try {
    $result = $api_instance->blockchain($minHeight, $maxHeight);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->blockchain: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $minHeight = 1.2; # BigDecimal | Minimum block height to return
my $maxHeight = 1.2; # BigDecimal | Maximum block height to return

eval { 
    my $result = $api_instance->blockchain(minHeight => $minHeight, maxHeight => $maxHeight);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->blockchain: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
minHeight = 1.2 # BigDecimal | Minimum block height to return (optional)
maxHeight = 1.2 # BigDecimal | Maximum block height to return (optional)

try: 
    # Get block headers for minHeight <= height <= maxHeight.
    api_response = api_instance.blockchain(minHeight=minHeight, maxHeight=maxHeight)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->blockchain: %s\n" % e)

Parameters

Query parameters
Name Description
minHeight
BigDecimal
Minimum block height to return
maxHeight
BigDecimal
Maximum block height to return

Responses

Status: 200 - Block headers, returned in descending order (highest first).

Status: 500 - Error


commit

Get commit results at a specified height

Get Commit.


/commit

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/commit?height="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.
        try {
            CommitResponse result = apiInstance.commit(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#commit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.
        try {
            CommitResponse result = apiInstance.commit(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#commit");
            e.printStackTrace();
        }
    }
}
BigDecimal *height = 1.2; // height to return. If no height is provided, it will fetch commit information regarding the latest block. (optional) (default to 0)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get commit results at a specified height
[apiInstance commitWith:height
              completionHandler: ^(CommitResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'height': 1.2 // {{BigDecimal}} height to return. If no height is provided, it will fetch commit information regarding the latest block.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.commit(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class commitExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var height = 1.2;  // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block. (optional)  (default to 0)

            try
            {
                // Get commit results at a specified height
                CommitResponse result = apiInstance.commit(height);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.commit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.

try {
    $result = $api_instance->commit($height);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->commit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $height = 1.2; # BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.

eval { 
    my $result = $api_instance->commit(height => $height);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->commit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
height = 1.2 # BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block. (optional) (default to 0)

try: 
    # Get commit results at a specified height
    api_response = api_instance.commit(height=height)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->commit: %s\n" % e)

Parameters

Query parameters
Name Description
height
BigDecimal
height to return. If no height is provided, it will fetch commit information regarding the latest block.

Responses

Status: 200 - Commit results.

Status: 500 - Error


consensusParams

Get consensus parameters

Get consensus parameters.


/consensus_params

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/consensus_params?height="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.
        try {
            ConsensusParamsResponse result = apiInstance.consensusParams(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#consensusParams");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.
        try {
            ConsensusParamsResponse result = apiInstance.consensusParams(height);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#consensusParams");
            e.printStackTrace();
        }
    }
}
BigDecimal *height = 1.2; // height to return. If no height is provided, it will fetch commit information regarding the latest block. (optional) (default to 0)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get consensus parameters
[apiInstance consensusParamsWith:height
              completionHandler: ^(ConsensusParamsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'height': 1.2 // {{BigDecimal}} height to return. If no height is provided, it will fetch commit information regarding the latest block.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.consensusParams(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class consensusParamsExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var height = 1.2;  // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block. (optional)  (default to 0)

            try
            {
                // Get consensus parameters
                ConsensusParamsResponse result = apiInstance.consensusParams(height);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.consensusParams: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.

try {
    $result = $api_instance->consensusParams($height);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->consensusParams: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $height = 1.2; # BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block.

eval { 
    my $result = $api_instance->consensusParams(height => $height);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->consensusParams: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
height = 1.2 # BigDecimal | height to return. If no height is provided, it will fetch commit information regarding the latest block. (optional) (default to 0)

try: 
    # Get consensus parameters
    api_response = api_instance.consensus_params(height=height)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->consensusParams: %s\n" % e)

Parameters

Query parameters
Name Description
height
BigDecimal
height to return. If no height is provided, it will fetch commit information regarding the latest block.

Responses

Status: 200 - consensus parameters results.

Status: 500 - Error


consensusState

Get consensus state

Get consensus state.


/consensus_state

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/consensus_state"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            ConsensusStateResponse result = apiInstance.consensusState();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#consensusState");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            ConsensusStateResponse result = apiInstance.consensusState();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#consensusState");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get consensus state
[apiInstance consensusStateWithCompletionHandler: 
              ^(ConsensusStateResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.consensusState(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class consensusStateExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Get consensus state
                ConsensusStateResponse result = apiInstance.consensusState();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.consensusState: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->consensusState();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->consensusState: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->consensusState();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->consensusState: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Get consensus state
    api_response = api_instance.consensus_state()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->consensusState: %s\n" % e)

Parameters

Responses

Status: 200 - consensus state results.

Status: 500 - Error


dumpConsensusState

Get consensus state

Get consensus state.


/dump_consensus_state

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/dump_consensus_state"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            DumpConsensusResponse result = apiInstance.dumpConsensusState();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#dumpConsensusState");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            DumpConsensusResponse result = apiInstance.dumpConsensusState();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#dumpConsensusState");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get consensus state
[apiInstance dumpConsensusStateWithCompletionHandler: 
              ^(DumpConsensusResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.dumpConsensusState(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class dumpConsensusStateExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Get consensus state
                DumpConsensusResponse result = apiInstance.dumpConsensusState();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.dumpConsensusState: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->dumpConsensusState();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->dumpConsensusState: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->dumpConsensusState();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->dumpConsensusState: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Get consensus state
    api_response = api_instance.dump_consensus_state()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->dumpConsensusState: %s\n" % e)

Parameters

Responses

Status: 200 - consensus state results.

Status: 500 - Error


genesis

Get Genesis

Get genesis.


/genesis

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/genesis"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            GenesisResponse result = apiInstance.genesis();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#genesis");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            GenesisResponse result = apiInstance.genesis();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#genesis");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get Genesis
[apiInstance genesisWithCompletionHandler: 
              ^(GenesisResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.genesis(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class genesisExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Get Genesis
                GenesisResponse result = apiInstance.genesis();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.genesis: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->genesis();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->genesis: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->genesis();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->genesis: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Get Genesis
    api_response = api_instance.genesis()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->genesis: %s\n" % e)

Parameters

Responses

Status: 200 - Genesis results.

Status: 500 - Error


health

Node heartbeat

Get node health. Returns empty result (200 OK) on success, no response - in case of an error.


/health

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/health"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            EmptyResponse result = apiInstance.health();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#health");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            EmptyResponse result = apiInstance.health();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#health");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Node heartbeat
[apiInstance healthWithCompletionHandler: 
              ^(EmptyResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.health(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class healthExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Node heartbeat
                EmptyResponse result = apiInstance.health();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.health: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->health();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->health: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->health();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->health: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Node heartbeat
    api_response = api_instance.health()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->health: %s\n" % e)

Parameters

Responses

Status: 200 - Gets Node Health

Status: 500 - empty error


netInfo

Network information

Get network info.


/net_info

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/net_info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            NetInfoResponse result = apiInstance.netInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#netInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            NetInfoResponse result = apiInstance.netInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#netInfo");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Network information
[apiInstance netInfoWithCompletionHandler: 
              ^(NetInfoResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.netInfo(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class netInfoExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Network information
                NetInfoResponse result = apiInstance.netInfo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.netInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->netInfo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->netInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->netInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->netInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Network information
    api_response = api_instance.net_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->netInfo: %s\n" % e)

Parameters

Responses

Status: 200 - empty answer

Status: 500 - empty error


numUnconfirmedTxs

Get data about unconfirmed transactions

Get data about unconfirmed transactions


/num_unconfirmed_txs

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/num_unconfirmed_txs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            NumUnconfirmedTransactionsResponse result = apiInstance.numUnconfirmedTxs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#numUnconfirmedTxs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            NumUnconfirmedTransactionsResponse result = apiInstance.numUnconfirmedTxs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#numUnconfirmedTxs");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get data about unconfirmed transactions
[apiInstance numUnconfirmedTxsWithCompletionHandler: 
              ^(NumUnconfirmedTransactionsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.numUnconfirmedTxs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class numUnconfirmedTxsExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Get data about unconfirmed transactions
                NumUnconfirmedTransactionsResponse result = apiInstance.numUnconfirmedTxs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.numUnconfirmedTxs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->numUnconfirmedTxs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->numUnconfirmedTxs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->numUnconfirmedTxs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->numUnconfirmedTxs: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Get data about unconfirmed transactions
    api_response = api_instance.num_unconfirmed_txs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->numUnconfirmedTxs: %s\n" % e)

Parameters

Responses

Status: 200 - status about unconfirmed transactions

Status: 500 - Error


status

Node Status

Get Tendermint status including node info, pubkey, latest block hash, app hash, block height and time.


/status

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        try {
            StatusResponse result = apiInstance.status();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#status");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        try {
            StatusResponse result = apiInstance.status();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#status");
            e.printStackTrace();
        }
    }
}

InfoApi *apiInstance = [[InfoApi alloc] init];

// Node Status
[apiInstance statusWithCompletionHandler: 
              ^(StatusResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.status(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class statusExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();

            try
            {
                // Node Status
                StatusResponse result = apiInstance.status();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.status: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();

try {
    $result = $api_instance->status();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->status: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();

eval { 
    my $result = $api_instance->status();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->status: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()

try: 
    # Node Status
    api_response = api_instance.status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->status: %s\n" % e)

Parameters

Responses

Status: 200 - Status of the node

Status: 500 - empty error


tx

Get transactions by hash

Get a trasasction


/tx

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/tx?hash=&prove="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        String hash = hash_example; // String | transaction Hash to retrieve
        Boolean prove = true; // Boolean | Include proofs of the transactions inclusion in the block
        try {
            TxResponse result = apiInstance.tx(hash, prove);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#tx");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        String hash = hash_example; // String | transaction Hash to retrieve
        Boolean prove = true; // Boolean | Include proofs of the transactions inclusion in the block
        try {
            TxResponse result = apiInstance.tx(hash, prove);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#tx");
            e.printStackTrace();
        }
    }
}
String *hash = hash_example; // transaction Hash to retrieve
Boolean *prove = true; // Include proofs of the transactions inclusion in the block (optional) (default to false)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get transactions by hash
[apiInstance txWith:hash
    prove:prove
              completionHandler: ^(TxResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var hash = hash_example; // {{String}} transaction Hash to retrieve
var opts = { 
  'prove': true // {{Boolean}} Include proofs of the transactions inclusion in the block
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tx(hash, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class txExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var hash = hash_example;  // String | transaction Hash to retrieve
            var prove = true;  // Boolean | Include proofs of the transactions inclusion in the block (optional)  (default to false)

            try
            {
                // Get transactions by hash
                TxResponse result = apiInstance.tx(hash, prove);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.tx: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$hash = hash_example; // String | transaction Hash to retrieve
$prove = true; // Boolean | Include proofs of the transactions inclusion in the block

try {
    $result = $api_instance->tx($hash, $prove);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->tx: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $hash = hash_example; # String | transaction Hash to retrieve
my $prove = true; # Boolean | Include proofs of the transactions inclusion in the block

eval { 
    my $result = $api_instance->tx(hash => $hash, prove => $prove);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->tx: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
hash = hash_example # String | transaction Hash to retrieve
prove = true # Boolean | Include proofs of the transactions inclusion in the block (optional) (default to false)

try: 
    # Get transactions by hash
    api_response = api_instance.tx(hash, prove=prove)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->tx: %s\n" % e)

Parameters

Query parameters
Name Description
hash*
String
transaction Hash to retrieve
Required
prove
Boolean
Include proofs of the transactions inclusion in the block

Responses

Status: 200 - Get a transaction`

Status: 500 - Error


txSearch

Search for transactions

Get list of unconfirmed transactions


/tx_search

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/tx_search?query=&prove=&page=&per_page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        String query = query_example; // String | Query
        Boolean prove = true; // Boolean | Include proofs of the transactions inclusion in the block
        BigDecimal page = 1.2; // BigDecimal | Page number (1-based)
        BigDecimal perPage = 1.2; // BigDecimal | Number of entries per page (max: 100)
        try {
            TxSearchResponse result = apiInstance.txSearch(query, prove, page, perPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#txSearch");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        String query = query_example; // String | Query
        Boolean prove = true; // Boolean | Include proofs of the transactions inclusion in the block
        BigDecimal page = 1.2; // BigDecimal | Page number (1-based)
        BigDecimal perPage = 1.2; // BigDecimal | Number of entries per page (max: 100)
        try {
            TxSearchResponse result = apiInstance.txSearch(query, prove, page, perPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#txSearch");
            e.printStackTrace();
        }
    }
}
String *query = query_example; // Query
Boolean *prove = true; // Include proofs of the transactions inclusion in the block (optional) (default to false)
BigDecimal *page = 1.2; // Page number (1-based) (optional) (default to 1)
BigDecimal *perPage = 1.2; // Number of entries per page (max: 100) (optional) (default to 30)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Search for transactions
[apiInstance txSearchWith:query
    prove:prove
    page:page
    perPage:perPage
              completionHandler: ^(TxSearchResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var query = query_example; // {{String}} Query
var opts = { 
  'prove': true, // {{Boolean}} Include proofs of the transactions inclusion in the block
  'page': 1.2, // {{BigDecimal}} Page number (1-based)
  'perPage': 1.2 // {{BigDecimal}} Number of entries per page (max: 100)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.txSearch(query, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class txSearchExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var query = query_example;  // String | Query
            var prove = true;  // Boolean | Include proofs of the transactions inclusion in the block (optional)  (default to false)
            var page = 1.2;  // BigDecimal | Page number (1-based) (optional)  (default to 1)
            var perPage = 1.2;  // BigDecimal | Number of entries per page (max: 100) (optional)  (default to 30)

            try
            {
                // Search for transactions
                TxSearchResponse result = apiInstance.txSearch(query, prove, page, perPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.txSearch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$query = query_example; // String | Query
$prove = true; // Boolean | Include proofs of the transactions inclusion in the block
$page = 1.2; // BigDecimal | Page number (1-based)
$perPage = 1.2; // BigDecimal | Number of entries per page (max: 100)

try {
    $result = $api_instance->txSearch($query, $prove, $page, $perPage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->txSearch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $query = query_example; # String | Query
my $prove = true; # Boolean | Include proofs of the transactions inclusion in the block
my $page = 1.2; # BigDecimal | Page number (1-based)
my $perPage = 1.2; # BigDecimal | Number of entries per page (max: 100)

eval { 
    my $result = $api_instance->txSearch(query => $query, prove => $prove, page => $page, perPage => $perPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->txSearch: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
query = query_example # String | Query
prove = true # Boolean | Include proofs of the transactions inclusion in the block (optional) (default to false)
page = 1.2 # BigDecimal | Page number (1-based) (optional) (default to 1)
perPage = 1.2 # BigDecimal | Number of entries per page (max: 100) (optional) (default to 30)

try: 
    # Search for transactions
    api_response = api_instance.tx_search(query, prove=prove, page=page, perPage=perPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->txSearch: %s\n" % e)

Parameters

Query parameters
Name Description
query*
String
Query
Required
prove
Boolean
Include proofs of the transactions inclusion in the block
page
BigDecimal
Page number (1-based)
per_page
BigDecimal
Number of entries per page (max: 100)

Responses

Status: 200 - List of unconfirmed transactions

Status: 500 - Error


unconfirmedTxs

Get the list of unconfirmed transactions

Get list of unconfirmed transactions


/unconfirmed_txs

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/unconfirmed_txs?limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal limit = 1.2; // BigDecimal | Maximum number of unconfirmed transactions to return
        try {
            UnconfirmedTransactionsResponse result = apiInstance.unconfirmedTxs(limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#unconfirmedTxs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal limit = 1.2; // BigDecimal | Maximum number of unconfirmed transactions to return
        try {
            UnconfirmedTransactionsResponse result = apiInstance.unconfirmedTxs(limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#unconfirmedTxs");
            e.printStackTrace();
        }
    }
}
BigDecimal *limit = 1.2; // Maximum number of unconfirmed transactions to return (optional)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get the list of unconfirmed transactions
[apiInstance unconfirmedTxsWith:limit
              completionHandler: ^(UnconfirmedTransactionsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'limit': 1.2 // {{BigDecimal}} Maximum number of unconfirmed transactions to return
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.unconfirmedTxs(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class unconfirmedTxsExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var limit = 1.2;  // BigDecimal | Maximum number of unconfirmed transactions to return (optional) 

            try
            {
                // Get the list of unconfirmed transactions
                UnconfirmedTransactionsResponse result = apiInstance.unconfirmedTxs(limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.unconfirmedTxs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$limit = 1.2; // BigDecimal | Maximum number of unconfirmed transactions to return

try {
    $result = $api_instance->unconfirmedTxs($limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->unconfirmedTxs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $limit = 1.2; # BigDecimal | Maximum number of unconfirmed transactions to return

eval { 
    my $result = $api_instance->unconfirmedTxs(limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->unconfirmedTxs: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
limit = 1.2 # BigDecimal | Maximum number of unconfirmed transactions to return (optional)

try: 
    # Get the list of unconfirmed transactions
    api_response = api_instance.unconfirmed_txs(limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->unconfirmedTxs: %s\n" % e)

Parameters

Query parameters
Name Description
limit
BigDecimal
Maximum number of unconfirmed transactions to return

Responses

Status: 200 - List of unconfirmed transactions

Status: 500 - Error


validators

Get validator set at a specified height

Get Validators.


/validators

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/validators?height=&page=&per_page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

import java.io.File;
import java.util.*;

public class InfoApiExample {

    public static void main(String[] args) {
        
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
        BigDecimal page = 1.2; // BigDecimal | Page number (1-based)
        BigDecimal perPage = 1.2; // BigDecimal | Number of entries per page (max: 100)
        try {
            ValidatorsResponse result = apiInstance.validators(height, page, perPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#validators");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
        BigDecimal page = 1.2; // BigDecimal | Page number (1-based)
        BigDecimal perPage = 1.2; // BigDecimal | Number of entries per page (max: 100)
        try {
            ValidatorsResponse result = apiInstance.validators(height, page, perPage);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#validators");
            e.printStackTrace();
        }
    }
}
BigDecimal *height = 1.2; // height to return. If no height is provided, it will fetch validator set which corresponds to the latest block. (optional) (default to 0)
BigDecimal *page = 1.2; // Page number (1-based) (optional) (default to 0)
BigDecimal *perPage = 1.2; // Number of entries per page (max: 100) (optional) (default to 30)

InfoApi *apiInstance = [[InfoApi alloc] init];

// Get validator set at a specified height
[apiInstance validatorsWith:height
    page:page
    perPage:perPage
              completionHandler: ^(ValidatorsResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.InfoApi()
var opts = { 
  'height': 1.2, // {{BigDecimal}} height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
  'page': 1.2, // {{BigDecimal}} Page number (1-based)
  'perPage': 1.2 // {{BigDecimal}} Number of entries per page (max: 100)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.validators(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class validatorsExample
    {
        public void main()
        {

            var apiInstance = new InfoApi();
            var height = 1.2;  // BigDecimal | height to return. If no height is provided, it will fetch validator set which corresponds to the latest block. (optional)  (default to 0)
            var page = 1.2;  // BigDecimal | Page number (1-based) (optional)  (default to 0)
            var perPage = 1.2;  // BigDecimal | Number of entries per page (max: 100) (optional)  (default to 30)

            try
            {
                // Get validator set at a specified height
                ValidatorsResponse result = apiInstance.validators(height, page, perPage);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.validators: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInfoApi();
$height = 1.2; // BigDecimal | height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
$page = 1.2; // BigDecimal | Page number (1-based)
$perPage = 1.2; // BigDecimal | Number of entries per page (max: 100)

try {
    $result = $api_instance->validators($height, $page, $perPage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfoApi->validators: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InfoApi;

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $height = 1.2; # BigDecimal | height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
my $page = 1.2; # BigDecimal | Page number (1-based)
my $perPage = 1.2; # BigDecimal | Number of entries per page (max: 100)

eval { 
    my $result = $api_instance->validators(height => $height, page => $page, perPage => $perPage);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->validators: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.InfoApi()
height = 1.2 # BigDecimal | height to return. If no height is provided, it will fetch validator set which corresponds to the latest block. (optional) (default to 0)
page = 1.2 # BigDecimal | Page number (1-based) (optional) (default to 0)
perPage = 1.2 # BigDecimal | Number of entries per page (max: 100) (optional) (default to 30)

try: 
    # Get validator set at a specified height
    api_response = api_instance.validators(height=height, page=page, perPage=perPage)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->validators: %s\n" % e)

Parameters

Query parameters
Name Description
height
BigDecimal
height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
page
BigDecimal
Page number (1-based)
per_page
BigDecimal
Number of entries per page (max: 100)

Responses

Status: 200 - Commit results.

Status: 500 - Error


Tx

broadcastTxAsync

Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.

If you haven't received anything after a couple of blocks, resend it. If the same happens again, send it to some other node. A few reasons why it could happen: 1. Your transaction is not valid 2. node can be offline If you want to be sure that the transaction is included in a block, you can subscribe for the result using JSONRPC via a websocket.


/broadcast_tx_async

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/broadcast_tx_async?tx="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TxApi;

import java.io.File;
import java.util.*;

public class TxApiExample {

    public static void main(String[] args) {
        
        TxApi apiInstance = new TxApi();
        String tx = tx_example; // String | The transaction
        try {
            BroadcastTxResponse result = apiInstance.broadcastTxAsync(tx);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TxApi#broadcastTxAsync");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TxApi;

public class TxApiExample {

    public static void main(String[] args) {
        TxApi apiInstance = new TxApi();
        String tx = tx_example; // String | The transaction
        try {
            BroadcastTxResponse result = apiInstance.broadcastTxAsync(tx);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TxApi#broadcastTxAsync");
            e.printStackTrace();
        }
    }
}
String *tx = tx_example; // The transaction

TxApi *apiInstance = [[TxApi alloc] init];

// Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.
[apiInstance broadcastTxAsyncWith:tx
              completionHandler: ^(BroadcastTxResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.TxApi()
var tx = tx_example; // {{String}} The transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.broadcastTxAsync(tx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class broadcastTxAsyncExample
    {
        public void main()
        {

            var apiInstance = new TxApi();
            var tx = tx_example;  // String | The transaction

            try
            {
                // Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.
                BroadcastTxResponse result = apiInstance.broadcastTxAsync(tx);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TxApi.broadcastTxAsync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTxApi();
$tx = tx_example; // String | The transaction

try {
    $result = $api_instance->broadcastTxAsync($tx);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TxApi->broadcastTxAsync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TxApi;

my $api_instance = WWW::SwaggerClient::TxApi->new();
my $tx = tx_example; # String | The transaction

eval { 
    my $result = $api_instance->broadcastTxAsync(tx => $tx);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TxApi->broadcastTxAsync: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TxApi()
tx = tx_example # String | The transaction

try: 
    # Returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.
    api_response = api_instance.broadcast_tx_async(tx)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TxApi->broadcastTxAsync: %s\n" % e)

Parameters

Query parameters
Name Description
tx*
String
The transaction
Required

Responses

Status: 200 - empty answer

Status: 500 - empty error


broadcastTxCommit

Returns with the responses from CheckTx and DeliverTx.

The transaction will be broadcasted and returns with the response from `CheckTx` and `DeliverTx`. This method will wait for both `CheckTx` and `DeliverTx`, so it is the slowest way to broadcast through RPC but offers the most accurate success/failure response. **CONTRACT** only returns error if mempool.CheckTx() errs or if we timeout waiting for tx to commit. If `CheckTx` or `DeliverTx` fail, no error will be returned, but the returned result will contain a non-OK ABCI code.


/broadcast_tx_commit

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/broadcast_tx_commit?tx="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TxApi;

import java.io.File;
import java.util.*;

public class TxApiExample {

    public static void main(String[] args) {
        
        TxApi apiInstance = new TxApi();
        String tx = tx_example; // String | The transaction
        try {
            BroadcastTxCommitResponse result = apiInstance.broadcastTxCommit(tx);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TxApi#broadcastTxCommit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TxApi;

public class TxApiExample {

    public static void main(String[] args) {
        TxApi apiInstance = new TxApi();
        String tx = tx_example; // String | The transaction
        try {
            BroadcastTxCommitResponse result = apiInstance.broadcastTxCommit(tx);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TxApi#broadcastTxCommit");
            e.printStackTrace();
        }
    }
}
String *tx = tx_example; // The transaction

TxApi *apiInstance = [[TxApi alloc] init];

// Returns with the responses from CheckTx and DeliverTx.
[apiInstance broadcastTxCommitWith:tx
              completionHandler: ^(BroadcastTxCommitResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.TxApi()
var tx = tx_example; // {{String}} The transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.broadcastTxCommit(tx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class broadcastTxCommitExample
    {
        public void main()
        {

            var apiInstance = new TxApi();
            var tx = tx_example;  // String | The transaction

            try
            {
                // Returns with the responses from CheckTx and DeliverTx.
                BroadcastTxCommitResponse result = apiInstance.broadcastTxCommit(tx);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TxApi.broadcastTxCommit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTxApi();
$tx = tx_example; // String | The transaction

try {
    $result = $api_instance->broadcastTxCommit($tx);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TxApi->broadcastTxCommit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TxApi;

my $api_instance = WWW::SwaggerClient::TxApi->new();
my $tx = tx_example; # String | The transaction

eval { 
    my $result = $api_instance->broadcastTxCommit(tx => $tx);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TxApi->broadcastTxCommit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TxApi()
tx = tx_example # String | The transaction

try: 
    # Returns with the responses from CheckTx and DeliverTx.
    api_response = api_instance.broadcast_tx_commit(tx)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TxApi->broadcastTxCommit: %s\n" % e)

Parameters

Query parameters
Name Description
tx*
String
The transaction
Required

Responses

Status: 200 - empty answer

Status: 500 - empty error


broadcastTxSync

Returns with the response from CheckTx. Does not wait for DeliverTx result.

If you haven't received anything after a couple of blocks, resend it. If the same happens again, send it to some other node. A few reasons why it could happen: 1. Your transaction is not valid 2. node can be offline If you want to be sure that the transaction is included in a block, you can subscribe for the result using JSONRPC via a websocket.


/broadcast_tx_sync

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/broadcast_tx_sync?tx="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TxApi;

import java.io.File;
import java.util.*;

public class TxApiExample {

    public static void main(String[] args) {
        
        TxApi apiInstance = new TxApi();
        String tx = tx_example; // String | The transaction
        try {
            BroadcastTxResponse result = apiInstance.broadcastTxSync(tx);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TxApi#broadcastTxSync");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TxApi;

public class TxApiExample {

    public static void main(String[] args) {
        TxApi apiInstance = new TxApi();
        String tx = tx_example; // String | The transaction
        try {
            BroadcastTxResponse result = apiInstance.broadcastTxSync(tx);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TxApi#broadcastTxSync");
            e.printStackTrace();
        }
    }
}
String *tx = tx_example; // The transaction

TxApi *apiInstance = [[TxApi alloc] init];

// Returns with the response from CheckTx. Does not wait for DeliverTx result.
[apiInstance broadcastTxSyncWith:tx
              completionHandler: ^(BroadcastTxResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.TxApi()
var tx = tx_example; // {{String}} The transaction

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.broadcastTxSync(tx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class broadcastTxSyncExample
    {
        public void main()
        {

            var apiInstance = new TxApi();
            var tx = tx_example;  // String | The transaction

            try
            {
                // Returns with the response from CheckTx. Does not wait for DeliverTx result.
                BroadcastTxResponse result = apiInstance.broadcastTxSync(tx);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TxApi.broadcastTxSync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTxApi();
$tx = tx_example; // String | The transaction

try {
    $result = $api_instance->broadcastTxSync($tx);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TxApi->broadcastTxSync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TxApi;

my $api_instance = WWW::SwaggerClient::TxApi->new();
my $tx = tx_example; # String | The transaction

eval { 
    my $result = $api_instance->broadcastTxSync(tx => $tx);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TxApi->broadcastTxSync: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TxApi()
tx = tx_example # String | The transaction

try: 
    # Returns with the response from CheckTx. Does not wait for DeliverTx result.
    api_response = api_instance.broadcast_tx_sync(tx)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TxApi->broadcastTxSync: %s\n" % e)

Parameters

Query parameters
Name Description
tx*
String
The transaction
Required

Responses

Status: 200 - Empty

Status: 500 - Error


Websocket

subscribe

Subscribe for events via WebSocket.

To tell which events you want, you need to provide a query. query is a string, which has a form: "condition AND condition ..." (no OR at the moment). condition has a form: "key operation operand". key is a string with a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed). operation can be "=", "<", "<=", ">", ">=", "CONTAINS" AND "EXISTS". operand can be a string (escaped with single quotes), number, date or time.


/subscribe

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/subscribe?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WebsocketApi;

import java.io.File;
import java.util.*;

public class WebsocketApiExample {

    public static void main(String[] args) {
        
        WebsocketApi apiInstance = new WebsocketApi();
        String query = query_example; // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.

        try {
            EmptyResponse result = apiInstance.subscribe(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebsocketApi#subscribe");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WebsocketApi;

public class WebsocketApiExample {

    public static void main(String[] args) {
        WebsocketApi apiInstance = new WebsocketApi();
        String query = query_example; // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.

        try {
            EmptyResponse result = apiInstance.subscribe(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebsocketApi#subscribe");
            e.printStackTrace();
        }
    }
}
String *query = query_example; // query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


WebsocketApi *apiInstance = [[WebsocketApi alloc] init];

// Subscribe for events via WebSocket.
[apiInstance subscribeWith:query
              completionHandler: ^(EmptyResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.WebsocketApi()
var query = query_example; // {{String}} query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.subscribe(query, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class subscribeExample
    {
        public void main()
        {

            var apiInstance = new WebsocketApi();
            var query = query_example;  // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


            try
            {
                // Subscribe for events via WebSocket.
                EmptyResponse result = apiInstance.subscribe(query);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WebsocketApi.subscribe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiWebsocketApi();
$query = query_example; // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


try {
    $result = $api_instance->subscribe($query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebsocketApi->subscribe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WebsocketApi;

my $api_instance = WWW::SwaggerClient::WebsocketApi->new();
my $query = query_example; # String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


eval { 
    my $result = $api_instance->subscribe(query => $query);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WebsocketApi->subscribe: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.WebsocketApi()
query = query_example # String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


try: 
    # Subscribe for events via WebSocket.
    api_response = api_instance.subscribe(query)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WebsocketApi->subscribe: %s\n" % e)

Parameters

Query parameters
Name Description
query*
String
query is a string, which has a form: "condition AND condition ..." (no OR at the moment). condition has a form: "key operation operand". key is a string with a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed). operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a string (escaped with single quotes), number, date or time.
Required

Responses

Status: 200 - empty answer

Status: 500 - empty error


unsubscribe

Unsubscribe from event on Websocket

```go client := client.NewHTTP("tcp:0.0.0.0:26657", "/websocket") err := client.Start() if err != nil { handle error } defer client.Stop() query := "tm.event = 'Tx' AND tx.height = 3" err = client.Unsubscribe(context.Background(), "test-client", query) if err != nil { handle error } ```


/unsubscribe

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/unsubscribe?query="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WebsocketApi;

import java.io.File;
import java.util.*;

public class WebsocketApiExample {

    public static void main(String[] args) {
        
        WebsocketApi apiInstance = new WebsocketApi();
        String query = query_example; // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.

        try {
            EmptyResponse result = apiInstance.unsubscribe(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebsocketApi#unsubscribe");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WebsocketApi;

public class WebsocketApiExample {

    public static void main(String[] args) {
        WebsocketApi apiInstance = new WebsocketApi();
        String query = query_example; // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.

        try {
            EmptyResponse result = apiInstance.unsubscribe(query);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebsocketApi#unsubscribe");
            e.printStackTrace();
        }
    }
}
String *query = query_example; // query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


WebsocketApi *apiInstance = [[WebsocketApi alloc] init];

// Unsubscribe from event on Websocket
[apiInstance unsubscribeWith:query
              completionHandler: ^(EmptyResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.WebsocketApi()
var query = query_example; // {{String}} query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.unsubscribe(query, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class unsubscribeExample
    {
        public void main()
        {

            var apiInstance = new WebsocketApi();
            var query = query_example;  // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


            try
            {
                // Unsubscribe from event on Websocket
                EmptyResponse result = apiInstance.unsubscribe(query);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WebsocketApi.unsubscribe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiWebsocketApi();
$query = query_example; // String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


try {
    $result = $api_instance->unsubscribe($query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebsocketApi->unsubscribe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WebsocketApi;

my $api_instance = WWW::SwaggerClient::WebsocketApi->new();
my $query = query_example; # String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


eval { 
    my $result = $api_instance->unsubscribe(query => $query);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WebsocketApi->unsubscribe: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.WebsocketApi()
query = query_example # String | query is a string, which has a form: "condition AND condition ..." (no OR at the
moment). condition has a form: "key operation operand". key is a string with
a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed).
operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a
string (escaped with single quotes), number, date or time.


try: 
    # Unsubscribe from event on Websocket
    api_response = api_instance.unsubscribe(query)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WebsocketApi->unsubscribe: %s\n" % e)

Parameters

Query parameters
Name Description
query*
String
query is a string, which has a form: "condition AND condition ..." (no OR at the moment). condition has a form: "key operation operand". key is a string with a restricted set of possible symbols ( \t\n\r\\()"'=>< are not allowed). operation can be "=", "<", "<=", ">", ">=", "CONTAINS". operand can be a string (escaped with single quotes), number, date or time.
Required

Responses

Status: 200 - Answer

Status: 500 - Error


unsubscribeAll

Unsubscribe from all events via WebSocket

Unsubscribe from all events via WebSocket


/unsubscribe_all

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://dataseed1.binance.org/unsubscribe_all"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WebsocketApi;

import java.io.File;
import java.util.*;

public class WebsocketApiExample {

    public static void main(String[] args) {
        
        WebsocketApi apiInstance = new WebsocketApi();
        try {
            EmptyResponse result = apiInstance.unsubscribeAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebsocketApi#unsubscribeAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WebsocketApi;

public class WebsocketApiExample {

    public static void main(String[] args) {
        WebsocketApi apiInstance = new WebsocketApi();
        try {
            EmptyResponse result = apiInstance.unsubscribeAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebsocketApi#unsubscribeAll");
            e.printStackTrace();
        }
    }
}

WebsocketApi *apiInstance = [[WebsocketApi alloc] init];

// Unsubscribe from all events via WebSocket
[apiInstance unsubscribeAllWithCompletionHandler: 
              ^(EmptyResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RpcClientForTendermint = require('rpc_client_for_tendermint');

var api = new RpcClientForTendermint.WebsocketApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.unsubscribeAll(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class unsubscribeAllExample
    {
        public void main()
        {

            var apiInstance = new WebsocketApi();

            try
            {
                // Unsubscribe from all events via WebSocket
                EmptyResponse result = apiInstance.unsubscribeAll();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WebsocketApi.unsubscribeAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiWebsocketApi();

try {
    $result = $api_instance->unsubscribeAll();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebsocketApi->unsubscribeAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WebsocketApi;

my $api_instance = WWW::SwaggerClient::WebsocketApi->new();

eval { 
    my $result = $api_instance->unsubscribeAll();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WebsocketApi->unsubscribeAll: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.WebsocketApi()

try: 
    # Unsubscribe from all events via WebSocket
    api_response = api_instance.unsubscribe_all()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WebsocketApi->unsubscribeAll: %s\n" % e)

Parameters

Responses

Status: 200 - empty answer

Status: 500 - empty error