apiV1GetAccountGet
Returns the account name and balance of given address.
/api/v1/GetAccount
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"//api/v1/GetAccount?account="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String account = account_example; // String |
try {
AccountResult result = apiInstance.apiV1GetAccountGet(account);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#apiV1GetAccountGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountApi;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String account = account_example; // String |
try {
AccountResult result = apiInstance.apiV1GetAccountGet(account);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#apiV1GetAccountGet");
e.printStackTrace();
}
}
}
String *account = account_example; // (optional)
AccountApi *apiInstance = [[AccountApi alloc] init];
[apiInstance apiV1GetAccountGetWith:account
completionHandler: ^(AccountResult output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PhantasmaApi = require('phantasma_api');
var api = new PhantasmaApi.AccountApi()
var opts = {
'account': account_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiV1GetAccountGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiV1GetAccountGetExample
{
public void main()
{
var apiInstance = new AccountApi();
var account = account_example; // String | (optional)
try
{
AccountResult result = apiInstance.apiV1GetAccountGet(account);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.apiV1GetAccountGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccountApi();
$account = account_example; // String |
try {
$result = $api_instance->apiV1GetAccountGet($account);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->apiV1GetAccountGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $account = account_example; # String |
eval {
my $result = $api_instance->apiV1GetAccountGet(account => $account);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountApi->apiV1GetAccountGet: $@\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.AccountApi()
account = account_example # String | (optional)
try:
api_response = api_instance.api_v1_get_account_get(account=account)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->apiV1GetAccountGet: %s\n" % e)
Parameters
Name | Description |
---|---|
account |
String
|