Documentation ¶
Index ¶
- Constants
- func APIKeyFlag(v *viper.Viper, f *pflag.FlagSet)
- func APIURLFlag(v *viper.Viper, f *pflag.FlagSet)
- func Flags(v *viper.Viper, f *pflag.FlagSet)
- func GetAPIKey(v *viper.Viper) string
- func GetAPIURL(v *viper.Viper) string
- func GetRSAPrivateKey(v *viper.Viper) string
- func RSAPrivateKeyFlag(v *viper.Viper, f *pflag.FlagSet)
- type Client
- func (c *Client) AddExternalWalletAsset(ctx context.Context, walletID, assetID string, ...) (*client.ExternalWalletAsset, error)
- func (c *Client) CancelTransaction(ctx context.Context, txID string) error
- func (c *Client) CreateExternalWallet(ctx context.Context, msg *client.CreateExternalWalletMsg) (*client.ExternalWallet, error)
- func (c *Client) CreateInternalWallet(ctx context.Context, msg *client.CreateInternalWalletMsg) (*client.UnmanagedWallet, error)
- func (c *Client) CreateTransaction(ctx context.Context, msg *client.CreateTransactionMsg) (*client.CreateTransactionRespMsg, error)
- func (c *Client) CreateVaultAccount(ctx context.Context, msg *client.CreateVaultAccountMsg) (*client.VaultAccount, error)
- func (c *Client) CreateVaultAccountAsset(ctx context.Context, vaultID, assetID string) (*client.CreateVaultAssetResponse, error)
- func (c *Client) DeleteExternalWallet(ctx context.Context, walletID string) error
- func (c *Client) DeleteExternalWalletAsset(ctx context.Context, walletID, assetID string) error
- func (c *Client) GetContract(ctx context.Context, contractID string) (*client.UnmanagedContract, error)
- func (c *Client) GetExternalWallet(ctx context.Context, walletID string) (*client.ExternalWallet, error)
- func (c *Client) GetExternalWalletAsset(ctx context.Context, walletID, assetID string) (*client.ExternalWalletAsset, error)
- func (c *Client) GetInternalWallet(ctx context.Context, walletID string) (*client.UnmanagedWallet, error)
- func (c *Client) GetTransaction(ctx context.Context, txID string) (*client.TransactionMsg, error)
- func (c *Client) GetVaultAccount(ctx context.Context, vaultAccountID string) (*client.VaultAccount, error)
- func (c *Client) GetVaultAccountAssetBalance(ctx context.Context, vaultID, assetID string) (*client.VaultAsset, error)
- func (c *Client) HideVaultAccount(ctx context.Context, vaultAccountID string) error
- func (c *Client) Init(ctx context.Context) error
- func (c *Client) ListAssets(ctx context.Context) ([]*client.AssetTypeResponse, error)
- func (c *Client) ListContracts(ctx context.Context) ([]*client.UnmanagedContract, error)
- func (c *Client) ListExternalWallets(ctx context.Context) ([]*client.ExternalWallet, error)
- func (c *Client) ListInternalWallets(ctx context.Context) ([]*client.UnmanagedWallet, error)
- func (c *Client) ListTransactions(ctx context.Context) ([]*client.TransactionMsg, error)
- func (c *Client) ListUsers(ctx context.Context) ([]*client.UserMsg, error)
- func (c *Client) ListVaultAccountAssetAddresses(ctx context.Context, vaultID, assetID string) ([]*client.VaultAccountAssetAddress, error)
- func (c *Client) ListVaultAccountsPaged(ctx context.Context) (*client.VaultAccountsWithPageInfoMsg, error)
- func (c *Client) SetAutoFuelVaultAccount(ctx context.Context, vaultAccountID string, status bool) error
- func (c *Client) UnhideVaultAccount(ctx context.Context, vaultAccountID string) error
- func (c *Client) UpdateVaultAccount(ctx context.Context, vaultAccountID string, msg *client.UpdateVaultAccountMsg) error
- type Config
- type ErrorMsg
Constants ¶
View Source
const ( APIURLEnv = "FIREBLOCKS_API_URL" APIURLDefault = "https://api.fireblocks.io" )
View Source
const (
APIKeyEnv = "FIREBLOCKS_API_KEY"
)
View Source
const (
RSAPrivateKeyEnv = "FIREBLOCKS_RSA_PRIVATE_KEY"
)
Variables ¶
This section is empty.
Functions ¶
func APIKeyFlag ¶
APIKeyFlag register flag for Authentication apiKey
func APIURLFlag ¶
APIURLFlag register flag for Authentication apiURL
func GetRSAPrivateKey ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddExternalWalletAsset ¶
func (c *Client) AddExternalWalletAsset(ctx context.Context, walletID, assetID string, msg *client.AddExternalWalletAssetMsg) (*client.ExternalWalletAsset, error)
func (*Client) CancelTransaction ¶
func (*Client) CreateExternalWallet ¶
func (c *Client) CreateExternalWallet(ctx context.Context, msg *client.CreateExternalWalletMsg) (*client.ExternalWallet, error)
func (*Client) CreateInternalWallet ¶
func (c *Client) CreateInternalWallet(ctx context.Context, msg *client.CreateInternalWalletMsg) (*client.UnmanagedWallet, error)
func (*Client) CreateTransaction ¶
func (c *Client) CreateTransaction(ctx context.Context, msg *client.CreateTransactionMsg) (*client.CreateTransactionRespMsg, error)
func (*Client) CreateVaultAccount ¶
func (c *Client) CreateVaultAccount(ctx context.Context, msg *client.CreateVaultAccountMsg) (*client.VaultAccount, error)
func (*Client) CreateVaultAccountAsset ¶
func (*Client) DeleteExternalWallet ¶
func (*Client) DeleteExternalWalletAsset ¶
func (*Client) GetContract ¶
func (*Client) GetExternalWallet ¶
func (*Client) GetExternalWalletAsset ¶
func (*Client) GetInternalWallet ¶
func (*Client) GetTransaction ¶
func (*Client) GetVaultAccount ¶
func (*Client) GetVaultAccountAssetBalance ¶
func (*Client) HideVaultAccount ¶
func (*Client) ListAssets ¶
func (*Client) ListContracts ¶
func (*Client) ListExternalWallets ¶
func (*Client) ListInternalWallets ¶
func (*Client) ListTransactions ¶
func (*Client) ListVaultAccountAssetAddresses ¶
func (*Client) ListVaultAccountsPaged ¶
func (*Client) SetAutoFuelVaultAccount ¶
func (*Client) UnhideVaultAccount ¶
func (*Client) UpdateVaultAccount ¶
type Config ¶
type Config struct {
APIKey, RSAPrivateKey, APIURL string
}
func NewConfigFromViper ¶
func (*Config) SetDefault ¶
Click to show internal directories.
Click to hide internal directories.