Skip to content

Latest commit

 

History

History
143 lines (95 loc) · 4.12 KB

File metadata and controls

143 lines (95 loc) · 4.12 KB

bind_api.api.StagingApi

Load the API package

import 'package:bind_api/api.dart';

All URIs are relative to https://api.thebind.uk/v1

Method HTTP request Description
adjustFiatWalletBalance POST /staging/fiat/wallet/adjust/ Change balance of a fiat wallet
fillCryptoWallet POST /staging/crypto/wallet/fill/ Put some testnet assets in a crypto wallet of a current user
fireblocksPoolBalances GET /staging/fireblocks_pool/balances/ Get pool balances

adjustFiatWalletBalance

adjustFiatWalletBalance(adjustFiatWalletBalanceRequest)

Change balance of a fiat wallet

Change balance of a fiat wallet

Example

import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';

final api = BindApi().getStagingApi();
final AdjustFiatWalletBalanceRequest adjustFiatWalletBalanceRequest = ; // AdjustFiatWalletBalanceRequest | 

try {
    api.adjustFiatWalletBalance(adjustFiatWalletBalanceRequest);
} catch on DioError (e) {
    print('Exception when calling StagingApi->adjustFiatWalletBalance: $e\n');
}

Parameters

Name Type Description Notes
adjustFiatWalletBalanceRequest AdjustFiatWalletBalanceRequest [optional]

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fillCryptoWallet

fillCryptoWallet()

Put some testnet assets in a crypto wallet of a current user

Assets come in little amounts because it is hard to find generous testnet faucets

Example

import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';

final api = BindApi().getStagingApi();

try {
    api.fillCryptoWallet();
} catch on DioError (e) {
    print('Exception when calling StagingApi->fillCryptoWallet: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fireblocksPoolBalances

fireblocksPoolBalances()

Get pool balances

Get fireblocks main and withdraw pools balances

Example

import 'package:bind_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';

final api = BindApi().getStagingApi();

try {
    api.fireblocksPoolBalances();
} catch on DioError (e) {
    print('Exception when calling StagingApi->fireblocksPoolBalances: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]