glupbit/exchange/service

Service information — wallet status, API keys, travel rule.

Types

API key info.

pub type ApiKeyInfo {
  ApiKeyInfo(access_key: String, expire_at: String)
}

Constructors

  • ApiKeyInfo(access_key: String, expire_at: String)

Travel rule verification result.

pub type TravelRuleResult {
  TravelRuleResult(
    deposit_uuid: String,
    verification_result: String,
    deposit_state: String,
  )
}

Constructors

  • TravelRuleResult(
      deposit_uuid: String,
      verification_result: String,
      deposit_state: String,
    )

Travel rule VASP info.

pub type Vasp {
  Vasp(
    vasp_name: String,
    vasp_uuid: String,
    depositable: Bool,
    withdrawable: Bool,
  )
}

Constructors

  • Vasp(
      vasp_name: String,
      vasp_uuid: String,
      depositable: Bool,
      withdrawable: Bool,
    )

Wallet service status for a currency.

pub type WalletStatus {
  WalletStatus(
    currency: String,
    wallet_state: String,
    block_state: option.Option(String),
    block_height: option.Option(Int),
    block_updated_at: option.Option(String),
    block_elapsed_minutes: option.Option(Int),
  )
}

Constructors

Values

pub fn get_wallet_status(
  c: client.AuthClient,
) -> Result(types.ApiResponse(List(WalletStatus)), types.ApiError)

Get wallet deposit/withdrawal service status. GET /status/wallet

pub fn list_api_keys(
  c: client.AuthClient,
) -> Result(types.ApiResponse(List(ApiKeyInfo)), types.ApiError)

List API keys and their expiration dates. GET /api_keys

pub fn list_travelrule_vasps(
  c: client.AuthClient,
) -> Result(types.ApiResponse(List(Vasp)), types.ApiError)

List travel rule VASPs. GET /travel_rule/vasps

pub fn verify_travelrule_by_txid(
  c: client.AuthClient,
  vasp_uuid: String,
  txid: String,
  currency: String,
  net_type: String,
) -> Result(types.ApiResponse(TravelRuleResult), types.ApiError)

Verify travel rule by transaction ID. POST /travel_rule/deposit/txid

pub fn verify_travelrule_by_uuid(
  c: client.AuthClient,
  deposit_uuid: String,
  vasp_uuid: String,
) -> Result(types.ApiResponse(TravelRuleResult), types.ApiError)

Verify travel rule by deposit UUID. POST /travel_rule/deposit/uuid

Search Document