Class: Fireblocks::API
- Inherits:
-
Object
- Object
- Fireblocks::API
- Defined in:
- lib/fireblocks/api/api.rb,
lib/fireblocks/api/transactions.rb
Overview
Namespace to access Fireblocks api methods
Defined Under Namespace
Classes: Transactions
Class Method Summary collapse
- .create_deposit_address(vault_account_id, asset_id, description: nil) ⇒ Object
- .create_internal_wallet(name:) ⇒ Object
- .create_vault_account(name:) ⇒ Object
- .create_vault_account_asset(vault_account_id, asset_id) ⇒ Object
- .get_deposit_addresses(vault_account_id, asset_id) ⇒ Object
- .get_internal_wallet(wallet_id) ⇒ Object
- .get_internal_wallets ⇒ Object
- .get_supported_assets ⇒ Object
- .get_vault_account(id) ⇒ Object
- .get_vault_account_asset(vault_account_id, asset_id) ⇒ Object
- .get_vault_accounts ⇒ Object
- .update_vault_account(vault_account_id, name:) ⇒ Object
Class Method Details
.create_deposit_address(vault_account_id, asset_id, description: nil) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/fireblocks/api/api.rb', line 34 def create_deposit_address(vault_account_id, asset_id, description: nil) Request.post( body: { description: description }, path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}/addresses" ) end |
.create_internal_wallet(name:) ⇒ Object
55 56 57 |
# File 'lib/fireblocks/api/api.rb', line 55 def create_internal_wallet(name:) Request.post(body: { name: name }, path: '/v1/internal_wallets') end |
.create_vault_account(name:) ⇒ Object
11 12 13 |
# File 'lib/fireblocks/api/api.rb', line 11 def create_vault_account(name:) Request.post(body: { name: name }, path: '/v1/vault/accounts') end |
.create_vault_account_asset(vault_account_id, asset_id) ⇒ Object
30 31 32 |
# File 'lib/fireblocks/api/api.rb', line 30 def create_vault_account_asset(vault_account_id, asset_id) Request.post(path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}") end |
.get_deposit_addresses(vault_account_id, asset_id) ⇒ Object
41 42 43 44 45 |
# File 'lib/fireblocks/api/api.rb', line 41 def get_deposit_addresses(vault_account_id, asset_id) Request.get( path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}/addresses" ) end |
.get_internal_wallet(wallet_id) ⇒ Object
47 48 49 |
# File 'lib/fireblocks/api/api.rb', line 47 def get_internal_wallet(wallet_id) Request.get(path: "/v1/internal_wallets/#{wallet_id}") end |
.get_internal_wallets ⇒ Object
51 52 53 |
# File 'lib/fireblocks/api/api.rb', line 51 def get_internal_wallets Request.get(path: '/v1/internal_wallets') end |
.get_supported_assets ⇒ Object
59 60 61 |
# File 'lib/fireblocks/api/api.rb', line 59 def get_supported_assets Request.get(path: '/v1/supported_assets') end |
.get_vault_account(id) ⇒ Object
15 16 17 |
# File 'lib/fireblocks/api/api.rb', line 15 def get_vault_account(id) Request.get(path: "/v1/vault/accounts/#{id}") end |
.get_vault_account_asset(vault_account_id, asset_id) ⇒ Object
26 27 28 |
# File 'lib/fireblocks/api/api.rb', line 26 def get_vault_account_asset(vault_account_id, asset_id) Request.get(path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}") end |