class Fireblocks::API
Namespace to access Fireblocks
api methods
Public Class Methods
create_deposit_address(vault_account_id, asset_id, description: nil)
click to toggle source
# 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:)
click to toggle source
# 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:)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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()
click to toggle source
# File lib/fireblocks/api/api.rb, line 51 def get_internal_wallets Request.get(path: '/v1/internal_wallets') end
get_supported_assets()
click to toggle source
# File lib/fireblocks/api/api.rb, line 59 def get_supported_assets Request.get(path: '/v1/supported_assets') end
get_vault_account(id)
click to toggle source
# 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)
click to toggle source
# 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
get_vault_accounts()
click to toggle source
# File lib/fireblocks/api/api.rb, line 7 def get_vault_accounts Request.get(path: '/v1/vault/accounts') end
update_vault_account(vault_account_id, name:)
click to toggle source
# File lib/fireblocks/api/api.rb, line 19 def update_vault_account(vault_account_id, name:) Request.put( body: { name: name }, path: "/v1/vault/accounts/#{vault_account_id}" ) end