addressesAddressDelete
Deletes the given subwallet from the container
Note that you cannot delete the 'primary' address, the first address created in the wallet.
/addresses/{address}
Usage and SDK Samples
curl -X DELETE -H "X-API-KEY: [[apiKey]]" "http://127.0.0.1:8070/addresses/{address}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AddressesApi;
import java.io.File;
import java.util.*;
public class AddressesApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
AddressesApi apiInstance = new AddressesApi();
String address = address_example; // String | The address to use for this operation. Should be a valid, 99 character TRTL address.
try {
apiInstance.addressesAddressDelete(address);
} catch (ApiException e) {
System.err.println("Exception when calling AddressesApi#addressesAddressDelete");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AddressesApi;
public class AddressesApiExample {
public static void main(String[] args) {
AddressesApi apiInstance = new AddressesApi();
String address = address_example; // String | The address to use for this operation. Should be a valid, 99 character TRTL address.
try {
apiInstance.addressesAddressDelete(address);
} catch (ApiException e) {
System.err.println("Exception when calling AddressesApi#addressesAddressDelete");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
String *address = address_example; // The address to use for this operation. Should be a valid, 99 character TRTL address.
AddressesApi *apiInstance = [[AddressesApi alloc] init];
// Deletes the given subwallet from the container
[apiInstance addressesAddressDeleteWith:address
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WalletApi = require('wallet_api');
var defaultClient = WalletApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['X-API-KEY'] = "Token"
var api = new WalletApi.AddressesApi()
var address = address_example; // {String} The address to use for this operation. Should be a valid, 99 character TRTL address.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.addressesAddressDelete(address, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addressesAddressDeleteExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
var apiInstance = new AddressesApi();
var address = address_example; // String | The address to use for this operation. Should be a valid, 99 character TRTL address.
try
{
// Deletes the given subwallet from the container
apiInstance.addressesAddressDelete(address);
}
catch (Exception e)
{
Debug.Print("Exception when calling AddressesApi.addressesAddressDelete: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$api_instance = new Swagger\Client\Api\AddressesApi();
$address = address_example; // String | The address to use for this operation. Should be a valid, 99 character TRTL address.
try {
$api_instance->addressesAddressDelete($address);
} catch (Exception $e) {
echo 'Exception when calling AddressesApi->addressesAddressDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AddressesApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
my $api_instance = WWW::SwaggerClient::AddressesApi->new();
my $address = address_example; # String | The address to use for this operation. Should be a valid, 99 character TRTL address.
eval {
$api_instance->addressesAddressDelete(address => $address);
};
if ($@) {
warn "Exception when calling AddressesApi->addressesAddressDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.AddressesApi()
address = address_example # String | The address to use for this operation. Should be a valid, 99 character TRTL address.
try:
# Deletes the given subwallet from the container
api_instance.addresses_address_delete(address)
except ApiException as e:
print("Exception when calling AddressesApi->addressesAddressDelete: %s\n" % e)
Parameters
Name | Description |
---|---|
address* |
String
The address to use for this operation. Should be a valid, 99 character TRTL address.
Required
|