Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type Account
- func (o *Account) GetAddress() string
- func (o *Account) GetAddressOk() (*string, bool)
- func (o *Account) GetExplorerLink() string
- func (o *Account) GetExplorerLinkOk() (*string, bool)
- func (o *Account) GetLogoURI() string
- func (o *Account) GetLogoURIOk() (*string, bool)
- func (o *Account) GetMetadata() map[string]string
- func (o *Account) GetMetadataOk() (*map[string]string, bool)
- func (o *Account) GetName() string
- func (o *Account) GetNameOk() (*string, bool)
- func (o *Account) HasExplorerLink() bool
- func (o *Account) HasLogoURI() bool
- func (o *Account) HasName() bool
- func (o Account) MarshalJSON() ([]byte, error)
- func (o *Account) SetAddress(v string)
- func (o *Account) SetExplorerLink(v string)
- func (o *Account) SetLogoURI(v string)
- func (o *Account) SetMetadata(v map[string]string)
- func (o *Account) SetName(v string)
- func (o Account) ToMap() (map[string]interface{}, error)
- func (o *Account) UnmarshalJSON(data []byte) (err error)
- type AccountSum
- func (o *AccountSum) GetAddress() string
- func (o *AccountSum) GetAddressOk() (*string, bool)
- func (o *AccountSum) GetApprovedSum() string
- func (o *AccountSum) GetApprovedSumOk() (*string, bool)
- func (o *AccountSum) GetValueAtRiskSum() string
- func (o *AccountSum) GetValueAtRiskSumOk() (*string, bool)
- func (o AccountSum) MarshalJSON() ([]byte, error)
- func (o *AccountSum) SetAddress(v string)
- func (o *AccountSum) SetApprovedSum(v string)
- func (o *AccountSum) SetValueAtRiskSum(v string)
- func (o AccountSum) ToMap() (map[string]interface{}, error)
- func (o *AccountSum) UnmarshalJSON(data []byte) (err error)
- type Action
- func (o *Action) GetFrom() TokenAmount
- func (o *Action) GetFromAccount() Account
- func (o *Action) GetFromAccountOk() (*Account, bool)
- func (o *Action) GetFromOk() (*TokenAmount, bool)
- func (o *Action) GetSlippage() float32
- func (o *Action) GetSlippageOk() (*float32, bool)
- func (o *Action) GetTo() TokenAmount
- func (o *Action) GetToAccount() Account
- func (o *Action) GetToAccountOk() (*Account, bool)
- func (o *Action) GetToOk() (*TokenAmount, bool)
- func (o Action) MarshalJSON() ([]byte, error)
- func (o *Action) SetFrom(v TokenAmount)
- func (o *Action) SetFromAccount(v Account)
- func (o *Action) SetSlippage(v float32)
- func (o *Action) SetTo(v TokenAmount)
- func (o *Action) SetToAccount(v Account)
- func (o Action) ToMap() (map[string]interface{}, error)
- func (o *Action) UnmarshalJSON(data []byte) (err error)
- type AllApprovalsResponse
- func (o *AllApprovalsResponse) GetApprovals() []TokenApprovalData
- func (o *AllApprovalsResponse) GetApprovalsOk() ([]TokenApprovalData, bool)
- func (o *AllApprovalsResponse) GetHasMissingApprovals() []string
- func (o *AllApprovalsResponse) GetHasMissingApprovalsOk() ([]string, bool)
- func (o *AllApprovalsResponse) GetPortfolioViewSum() PortfolioViewSum
- func (o *AllApprovalsResponse) GetPortfolioViewSumOk() (*PortfolioViewSum, bool)
- func (o *AllApprovalsResponse) HasHasMissingApprovals() bool
- func (o AllApprovalsResponse) MarshalJSON() ([]byte, error)
- func (o *AllApprovalsResponse) SetApprovals(v []TokenApprovalData)
- func (o *AllApprovalsResponse) SetHasMissingApprovals(v []string)
- func (o *AllApprovalsResponse) SetPortfolioViewSum(v PortfolioViewSum)
- func (o AllApprovalsResponse) ToMap() (map[string]interface{}, error)
- func (o *AllApprovalsResponse) UnmarshalJSON(data []byte) (err error)
- type ApiDeleteTokenApprovalRequest
- type ApiGetAllApprovalsRequest
- func (r ApiGetAllApprovalsRequest) AccountAddresses(accountAddresses []string) ApiGetAllApprovalsRequest
- func (r ApiGetAllApprovalsRequest) ChainIDs(chainIDs []string) ApiGetAllApprovalsRequest
- func (r ApiGetAllApprovalsRequest) Execute() (*AllApprovalsResponse, *http.Response, error)
- func (r ApiGetAllApprovalsRequest) SpenderAddresses(spenderAddresses []string) ApiGetAllApprovalsRequest
- func (r ApiGetAllApprovalsRequest) TokenAddresses(tokenAddresses []string) ApiGetAllApprovalsRequest
- type ApiGetBalancesRequest
- func (r ApiGetBalancesRequest) AccountAddress(accountAddress string) ApiGetBalancesRequest
- func (r ApiGetBalancesRequest) ChainIDs(chainIDs []string) ApiGetBalancesRequest
- func (r ApiGetBalancesRequest) Execute() (*BalancesResponse, *http.Response, error)
- func (r ApiGetBalancesRequest) TokenAddress(tokenAddress string) ApiGetBalancesRequest
- type ApiGetChainsRequest
- func (r ApiGetChainsRequest) ChainID(chainID string) ApiGetChainsRequest
- func (r ApiGetChainsRequest) ChainName(chainName string) ApiGetChainsRequest
- func (r ApiGetChainsRequest) Execute() (*Chains, *http.Response, error)
- func (r ApiGetChainsRequest) NetworkType(networkType NetworkType) ApiGetChainsRequest
- type ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) AllowBridges(allowBridges []string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) AllowExchanges(allowExchanges []string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) DenyBridges(denyBridges []string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) DenyExchanges(denyExchanges []string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) Execute() (*RoutesResponse, *http.Response, error)
- func (r ApiGetRoutesRequest) FromAddress(fromAddress string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) FromAmount(fromAmount string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) FromChain(fromChain string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) FromToken(fromToken string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) Slippage(slippage float32) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) ToAddress(toAddress string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) ToChain(toChain string) ApiGetRoutesRequest
- func (r ApiGetRoutesRequest) ToToken(toToken string) ApiGetRoutesRequest
- type ApiGetStatusRequest
- func (r ApiGetStatusRequest) Execute() (*StatusResponse, *http.Response, error)
- func (r ApiGetStatusRequest) FromChain(fromChain string) ApiGetStatusRequest
- func (r ApiGetStatusRequest) TargetID(targetID string) ApiGetStatusRequest
- func (r ApiGetStatusRequest) ToChain(toChain string) ApiGetStatusRequest
- func (r ApiGetStatusRequest) TransactionID(transactionID string) ApiGetStatusRequest
- type ApiGetSupportedChainsForBalancesRequest
- func (r ApiGetSupportedChainsForBalancesRequest) ChainID(chainID string) ApiGetSupportedChainsForBalancesRequest
- func (r ApiGetSupportedChainsForBalancesRequest) ChainName(chainName string) ApiGetSupportedChainsForBalancesRequest
- func (r ApiGetSupportedChainsForBalancesRequest) Execute() (*Chains, *http.Response, error)
- func (r ApiGetSupportedChainsForBalancesRequest) NetworkType(networkType NetworkType) ApiGetSupportedChainsForBalancesRequest
- type ApiGetSupportedChainsRequest
- func (r ApiGetSupportedChainsRequest) ChainID(chainID string) ApiGetSupportedChainsRequest
- func (r ApiGetSupportedChainsRequest) ChainName(chainName string) ApiGetSupportedChainsRequest
- func (r ApiGetSupportedChainsRequest) Execute() (*Chains, *http.Response, error)
- func (r ApiGetSupportedChainsRequest) NetworkType(networkType NetworkType) ApiGetSupportedChainsRequest
- type ApiGetTokenApprovalRequest
- func (r ApiGetTokenApprovalRequest) AccountAddress(accountAddress string) ApiGetTokenApprovalRequest
- func (r ApiGetTokenApprovalRequest) ChainID(chainID string) ApiGetTokenApprovalRequest
- func (r ApiGetTokenApprovalRequest) Execute() (*TokenApprovalData, *http.Response, error)
- func (r ApiGetTokenApprovalRequest) SpenderAddress(spenderAddress string) ApiGetTokenApprovalRequest
- func (r ApiGetTokenApprovalRequest) TokenAddress(tokenAddress string) ApiGetTokenApprovalRequest
- type ApiGetTokenTagsRequest
- type ApiGetTokensRequest
- func (r ApiGetTokensRequest) ChainID(chainID string) ApiGetTokensRequest
- func (r ApiGetTokensRequest) Execute() (*TokenList, *http.Response, error)
- func (r ApiGetTokensRequest) TagLimit(tagLimit []string) ApiGetTokensRequest
- func (r ApiGetTokensRequest) TokenAddress(tokenAddress string) ApiGetTokensRequest
- func (r ApiGetTokensRequest) TokenSymbol(tokenSymbol string) ApiGetTokensRequest
- type ApiGetTransactionsRequest
- func (r ApiGetTransactionsRequest) AccountAddress(accountAddress string) ApiGetTransactionsRequest
- func (r ApiGetTransactionsRequest) ChainID(chainID string) ApiGetTransactionsRequest
- func (r ApiGetTransactionsRequest) Execute() (*TransactionsResponse, *http.Response, error)
- func (r ApiGetTransactionsRequest) Limit(limit int32) ApiGetTransactionsRequest
- func (r ApiGetTransactionsRequest) Page(page string) ApiGetTransactionsRequest
- type ApiModifyTokenApprovalRequest
- type ApprovalsAPIService
- func (a *ApprovalsAPIService) DeleteTokenApproval(ctx context.Context) ApiDeleteTokenApprovalRequest
- func (a *ApprovalsAPIService) DeleteTokenApprovalExecute(r ApiDeleteTokenApprovalRequest) (*TokenApprovalResponse, *http.Response, error)
- func (a *ApprovalsAPIService) GetAllApprovals(ctx context.Context) ApiGetAllApprovalsRequest
- func (a *ApprovalsAPIService) GetAllApprovalsExecute(r ApiGetAllApprovalsRequest) (*AllApprovalsResponse, *http.Response, error)
- func (a *ApprovalsAPIService) GetSupportedChains(ctx context.Context) ApiGetSupportedChainsRequest
- func (a *ApprovalsAPIService) GetSupportedChainsExecute(r ApiGetSupportedChainsRequest) (*Chains, *http.Response, error)
- func (a *ApprovalsAPIService) GetTokenApproval(ctx context.Context) ApiGetTokenApprovalRequest
- func (a *ApprovalsAPIService) GetTokenApprovalExecute(r ApiGetTokenApprovalRequest) (*TokenApprovalData, *http.Response, error)
- func (a *ApprovalsAPIService) ModifyTokenApproval(ctx context.Context) ApiModifyTokenApprovalRequest
- func (a *ApprovalsAPIService) ModifyTokenApprovalExecute(r ApiModifyTokenApprovalRequest) (*TokenApprovalResponse, *http.Response, error)
- type BalancesAPIService
- func (a *BalancesAPIService) GetBalances(ctx context.Context) ApiGetBalancesRequest
- func (a *BalancesAPIService) GetBalancesExecute(r ApiGetBalancesRequest) (*BalancesResponse, *http.Response, error)
- func (a *BalancesAPIService) GetSupportedChainsForBalances(ctx context.Context) ApiGetSupportedChainsForBalancesRequest
- func (a *BalancesAPIService) GetSupportedChainsForBalancesExecute(r ApiGetSupportedChainsForBalancesRequest) (*Chains, *http.Response, error)
- type BalancesResponse
- func (o *BalancesResponse) GetAccount() string
- func (o *BalancesResponse) GetAccountOk() (*string, bool)
- func (o *BalancesResponse) GetBalances() []ChainBalance
- func (o *BalancesResponse) GetBalancesOk() ([]ChainBalance, bool)
- func (o *BalancesResponse) GetHasMissingBalances() []string
- func (o *BalancesResponse) GetHasMissingBalancesOk() ([]string, bool)
- func (o *BalancesResponse) HasAccount() bool
- func (o *BalancesResponse) HasHasMissingBalances() bool
- func (o BalancesResponse) MarshalJSON() ([]byte, error)
- func (o *BalancesResponse) SetAccount(v string)
- func (o *BalancesResponse) SetBalances(v []ChainBalance)
- func (o *BalancesResponse) SetHasMissingBalances(v []string)
- func (o BalancesResponse) ToMap() (map[string]interface{}, error)
- func (o *BalancesResponse) UnmarshalJSON(data []byte) (err error)
- type BasicAuth
- type Chain
- func (o *Chain) GetBlockConfirmations() int32
- func (o *Chain) GetBlockConfirmationsOk() (*int32, bool)
- func (o *Chain) GetBlockExplorerUrls() []string
- func (o *Chain) GetBlockExplorerUrlsOk() ([]string, bool)
- func (o *Chain) GetBlockTime() int32
- func (o *Chain) GetBlockTimeOk() (*int32, bool)
- func (o *Chain) GetChainID() string
- func (o *Chain) GetChainIDOk() (*string, bool)
- func (o *Chain) GetChainIconURI() string
- func (o *Chain) GetChainIconURIOk() (*string, bool)
- func (o *Chain) GetChainName() string
- func (o *Chain) GetChainNameOk() (*string, bool)
- func (o *Chain) GetNativeCurrency() NativeCurrency
- func (o *Chain) GetNativeCurrencyOk() (*NativeCurrency, bool)
- func (o *Chain) GetNetworkType() NetworkType
- func (o *Chain) GetNetworkTypeOk() (*NetworkType, bool)
- func (o *Chain) GetRpc() []string
- func (o *Chain) GetRpcOk() ([]string, bool)
- func (o *Chain) HasBlockConfirmations() bool
- func (o *Chain) HasBlockExplorerUrls() bool
- func (o *Chain) HasBlockTime() bool
- func (o *Chain) HasChainIconURI() bool
- func (o *Chain) HasNativeCurrency() bool
- func (o *Chain) HasNetworkType() bool
- func (o Chain) MarshalJSON() ([]byte, error)
- func (o *Chain) SetBlockConfirmations(v int32)
- func (o *Chain) SetBlockExplorerUrls(v []string)
- func (o *Chain) SetBlockTime(v int32)
- func (o *Chain) SetChainID(v string)
- func (o *Chain) SetChainIconURI(v string)
- func (o *Chain) SetChainName(v string)
- func (o *Chain) SetNativeCurrency(v NativeCurrency)
- func (o *Chain) SetNetworkType(v NetworkType)
- func (o *Chain) SetRpc(v []string)
- func (o Chain) ToMap() (map[string]interface{}, error)
- func (o *Chain) UnmarshalJSON(data []byte) (err error)
- type ChainBalance
- func (o *ChainBalance) GetChainID() string
- func (o *ChainBalance) GetChainIDOk() (*string, bool)
- func (o *ChainBalance) GetTokenBalances() []TokenAmount
- func (o *ChainBalance) GetTokenBalancesOk() ([]TokenAmount, bool)
- func (o ChainBalance) MarshalJSON() ([]byte, error)
- func (o *ChainBalance) SetChainID(v string)
- func (o *ChainBalance) SetTokenBalances(v []TokenAmount)
- func (o ChainBalance) ToMap() (map[string]interface{}, error)
- func (o *ChainBalance) UnmarshalJSON(data []byte) (err error)
- type ChainSum
- func (o *ChainSum) GetApprovedSum() string
- func (o *ChainSum) GetApprovedSumOk() (*string, bool)
- func (o *ChainSum) GetChainId() string
- func (o *ChainSum) GetChainIdOk() (*string, bool)
- func (o *ChainSum) GetValueAtRiskSum() string
- func (o *ChainSum) GetValueAtRiskSumOk() (*string, bool)
- func (o ChainSum) MarshalJSON() ([]byte, error)
- func (o *ChainSum) SetApprovedSum(v string)
- func (o *ChainSum) SetChainId(v string)
- func (o *ChainSum) SetValueAtRiskSum(v string)
- func (o ChainSum) ToMap() (map[string]interface{}, error)
- func (o *ChainSum) UnmarshalJSON(data []byte) (err error)
- type Chains
- type ChainsAPIService
- type Configuration
- type Error
- func (o *Error) GetCode() int32
- func (o *Error) GetCodeOk() (*int32, bool)
- func (o *Error) GetMessage() string
- func (o *Error) GetMessageOk() (*string, bool)
- func (o *Error) GetStatus() int32
- func (o *Error) GetStatusOk() (*int32, bool)
- func (o *Error) GetTimestamp() time.Time
- func (o *Error) GetTimestampOk() (*time.Time, bool)
- func (o *Error) GetType() string
- func (o *Error) GetTypeOk() (*string, bool)
- func (o Error) MarshalJSON() ([]byte, error)
- func (o *Error) SetCode(v int32)
- func (o *Error) SetMessage(v string)
- func (o *Error) SetStatus(v int32)
- func (o *Error) SetTimestamp(v time.Time)
- func (o *Error) SetType(v string)
- func (o Error) ToMap() (map[string]interface{}, error)
- func (o *Error) UnmarshalJSON(data []byte) (err error)
- type Estimate
- func (o *Estimate) GetApprovalAddress() string
- func (o *Estimate) GetApprovalAddressOk() (*string, bool)
- func (o *Estimate) GetExecutionDuration() int32
- func (o *Estimate) GetExecutionDurationOk() (*int32, bool)
- func (o *Estimate) GetFeeCosts() []FeeCost
- func (o *Estimate) GetFeeCostsOk() ([]FeeCost, bool)
- func (o *Estimate) GetFromAmount() string
- func (o *Estimate) GetFromAmountOk() (*string, bool)
- func (o *Estimate) GetFromAmountUSD() string
- func (o *Estimate) GetFromAmountUSDOk() (*string, bool)
- func (o *Estimate) GetGasCosts() []GasCost
- func (o *Estimate) GetGasCostsOk() ([]GasCost, bool)
- func (o *Estimate) GetIntegrationDetails() IntegrationDetails
- func (o *Estimate) GetIntegrationDetailsOk() (*IntegrationDetails, bool)
- func (o *Estimate) GetToAmount() string
- func (o *Estimate) GetToAmountMin() string
- func (o *Estimate) GetToAmountMinOk() (*string, bool)
- func (o *Estimate) GetToAmountOk() (*string, bool)
- func (o *Estimate) GetToAmountUSD() string
- func (o *Estimate) GetToAmountUSDOk() (*string, bool)
- func (o *Estimate) HasExecutionDuration() bool
- func (o *Estimate) HasFromAmountUSD() bool
- func (o *Estimate) HasToAmountMin() bool
- func (o *Estimate) HasToAmountUSD() bool
- func (o Estimate) MarshalJSON() ([]byte, error)
- func (o *Estimate) SetApprovalAddress(v string)
- func (o *Estimate) SetExecutionDuration(v int32)
- func (o *Estimate) SetFeeCosts(v []FeeCost)
- func (o *Estimate) SetFromAmount(v string)
- func (o *Estimate) SetFromAmountUSD(v string)
- func (o *Estimate) SetGasCosts(v []GasCost)
- func (o *Estimate) SetIntegrationDetails(v IntegrationDetails)
- func (o *Estimate) SetToAmount(v string)
- func (o *Estimate) SetToAmountMin(v string)
- func (o *Estimate) SetToAmountUSD(v string)
- func (o Estimate) ToMap() (map[string]interface{}, error)
- func (o *Estimate) UnmarshalJSON(data []byte) (err error)
- type ExchangeAPIService
- func (a *ExchangeAPIService) GetRoutes(ctx context.Context) ApiGetRoutesRequest
- func (a *ExchangeAPIService) GetRoutesExecute(r ApiGetRoutesRequest) (*RoutesResponse, *http.Response, error)
- func (a *ExchangeAPIService) GetStatus(ctx context.Context) ApiGetStatusRequest
- func (a *ExchangeAPIService) GetStatusExecute(r ApiGetStatusRequest) (*StatusResponse, *http.Response, error)
- type Extensions
- func (o *Extensions) GetHomepage() string
- func (o *Extensions) GetHomepageOk() (*string, bool)
- func (o *Extensions) GetUnknown() bool
- func (o *Extensions) GetUnknownOk() (*bool, bool)
- func (o *Extensions) GetVerified() bool
- func (o *Extensions) GetVerifiedOk() (*bool, bool)
- func (o *Extensions) HasHomepage() bool
- func (o *Extensions) HasUnknown() bool
- func (o *Extensions) HasVerified() bool
- func (o Extensions) MarshalJSON() ([]byte, error)
- func (o *Extensions) SetHomepage(v string)
- func (o *Extensions) SetUnknown(v bool)
- func (o *Extensions) SetVerified(v bool)
- func (o Extensions) ToMap() (map[string]interface{}, error)
- type FeeCost
- func (o *FeeCost) GetDescription() string
- func (o *FeeCost) GetDescriptionOk() (*string, bool)
- func (o *FeeCost) GetIncluded() bool
- func (o *FeeCost) GetIncludedOk() (*bool, bool)
- func (o *FeeCost) GetName() string
- func (o *FeeCost) GetNameOk() (*string, bool)
- func (o *FeeCost) GetToken() TokenAmount
- func (o *FeeCost) GetTokenOk() (*TokenAmount, bool)
- func (o FeeCost) MarshalJSON() ([]byte, error)
- func (o *FeeCost) SetDescription(v string)
- func (o *FeeCost) SetIncluded(v bool)
- func (o *FeeCost) SetName(v string)
- func (o *FeeCost) SetToken(v TokenAmount)
- func (o FeeCost) ToMap() (map[string]interface{}, error)
- func (o *FeeCost) UnmarshalJSON(data []byte) (err error)
- type GasCost
- func (o *GasCost) GetLimit() string
- func (o *GasCost) GetLimitOk() (*string, bool)
- func (o *GasCost) GetToken() TokenAmount
- func (o *GasCost) GetTokenOk() (*TokenAmount, bool)
- func (o GasCost) MarshalJSON() ([]byte, error)
- func (o *GasCost) SetLimit(v string)
- func (o *GasCost) SetToken(v TokenAmount)
- func (o GasCost) ToMap() (map[string]interface{}, error)
- func (o *GasCost) UnmarshalJSON(data []byte) (err error)
- type GasDetails
- func (o *GasDetails) GetBaseFee() string
- func (o *GasDetails) GetBaseFeeOk() (*string, bool)
- func (o *GasDetails) GetGas() int32
- func (o *GasDetails) GetGasOk() (*int32, bool)
- func (o *GasDetails) GetGasPrice() string
- func (o *GasDetails) GetGasPriceOk() (*string, bool)
- func (o *GasDetails) GetGasUSD() float64
- func (o *GasDetails) GetGasUSDOk() (*float64, bool)
- func (o *GasDetails) GetGasUsed() int32
- func (o *GasDetails) GetGasUsedOk() (*int32, bool)
- func (o *GasDetails) GetPriorityFee() string
- func (o *GasDetails) GetPriorityFeeOk() (*string, bool)
- func (o *GasDetails) GetToken() Token
- func (o *GasDetails) GetTokenOk() (*Token, bool)
- func (o *GasDetails) HasGasUSD() bool
- func (o GasDetails) MarshalJSON() ([]byte, error)
- func (o *GasDetails) SetBaseFee(v string)
- func (o *GasDetails) SetGas(v int32)
- func (o *GasDetails) SetGasPrice(v string)
- func (o *GasDetails) SetGasUSD(v float64)
- func (o *GasDetails) SetGasUsed(v int32)
- func (o *GasDetails) SetPriorityFee(v string)
- func (o *GasDetails) SetToken(v Token)
- func (o GasDetails) ToMap() (map[string]interface{}, error)
- func (o *GasDetails) UnmarshalJSON(data []byte) (err error)
- type GenericOpenAPIError
- type IncludedStep
- func (o *IncludedStep) GetAction() Action
- func (o *IncludedStep) GetActionOk() (*Action, bool)
- func (o *IncludedStep) GetEstimate() Estimate
- func (o *IncludedStep) GetEstimateOk() (*Estimate, bool)
- func (o *IncludedStep) GetIntegrationDetails() IntegrationDetails
- func (o *IncludedStep) GetIntegrationDetailsOk() (*IntegrationDetails, bool)
- func (o *IncludedStep) GetType() string
- func (o *IncludedStep) GetTypeOk() (*string, bool)
- func (o IncludedStep) MarshalJSON() ([]byte, error)
- func (o *IncludedStep) SetAction(v Action)
- func (o *IncludedStep) SetEstimate(v Estimate)
- func (o *IncludedStep) SetIntegrationDetails(v IntegrationDetails)
- func (o *IncludedStep) SetType(v string)
- func (o IncludedStep) ToMap() (map[string]interface{}, error)
- func (o *IncludedStep) UnmarshalJSON(data []byte) (err error)
- type IncludedSteps
- type IntegrationDetails
- func (o *IntegrationDetails) GetKey() string
- func (o *IntegrationDetails) GetKeyOk() (*string, bool)
- func (o *IntegrationDetails) GetLogoURI() string
- func (o *IntegrationDetails) GetLogoURIOk() (*string, bool)
- func (o *IntegrationDetails) GetName() string
- func (o *IntegrationDetails) GetNameOk() (*string, bool)
- func (o *IntegrationDetails) GetType() string
- func (o *IntegrationDetails) GetTypeOk() (*string, bool)
- func (o IntegrationDetails) MarshalJSON() ([]byte, error)
- func (o *IntegrationDetails) SetKey(v string)
- func (o *IntegrationDetails) SetLogoURI(v string)
- func (o *IntegrationDetails) SetName(v string)
- func (o *IntegrationDetails) SetType(v string)
- func (o IntegrationDetails) ToMap() (map[string]interface{}, error)
- func (o *IntegrationDetails) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type NativeCurrency
- func (o *NativeCurrency) GetDecimals() int32
- func (o *NativeCurrency) GetDecimalsOk() (*int32, bool)
- func (o *NativeCurrency) GetIcon() string
- func (o *NativeCurrency) GetIconOk() (*string, bool)
- func (o *NativeCurrency) GetName() string
- func (o *NativeCurrency) GetNameOk() (*string, bool)
- func (o *NativeCurrency) GetSymbol() string
- func (o *NativeCurrency) GetSymbolOk() (*string, bool)
- func (o *NativeCurrency) HasIcon() bool
- func (o NativeCurrency) MarshalJSON() ([]byte, error)
- func (o *NativeCurrency) SetDecimals(v int32)
- func (o *NativeCurrency) SetIcon(v string)
- func (o *NativeCurrency) SetName(v string)
- func (o *NativeCurrency) SetSymbol(v string)
- func (o NativeCurrency) ToMap() (map[string]interface{}, error)
- func (o *NativeCurrency) UnmarshalJSON(data []byte) (err error)
- type NetworkType
- type NullableAccount
- type NullableAccountSum
- type NullableAction
- type NullableAllApprovalsResponse
- func (v NullableAllApprovalsResponse) Get() *AllApprovalsResponse
- func (v NullableAllApprovalsResponse) IsSet() bool
- func (v NullableAllApprovalsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableAllApprovalsResponse) Set(val *AllApprovalsResponse)
- func (v *NullableAllApprovalsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableAllApprovalsResponse) Unset()
- type NullableBalancesResponse
- func (v NullableBalancesResponse) Get() *BalancesResponse
- func (v NullableBalancesResponse) IsSet() bool
- func (v NullableBalancesResponse) MarshalJSON() ([]byte, error)
- func (v *NullableBalancesResponse) Set(val *BalancesResponse)
- func (v *NullableBalancesResponse) UnmarshalJSON(src []byte) error
- func (v *NullableBalancesResponse) Unset()
- type NullableBool
- type NullableChain
- type NullableChainBalance
- func (v NullableChainBalance) Get() *ChainBalance
- func (v NullableChainBalance) IsSet() bool
- func (v NullableChainBalance) MarshalJSON() ([]byte, error)
- func (v *NullableChainBalance) Set(val *ChainBalance)
- func (v *NullableChainBalance) UnmarshalJSON(src []byte) error
- func (v *NullableChainBalance) Unset()
- type NullableChainSum
- type NullableChains
- type NullableError
- type NullableEstimate
- type NullableExtensions
- type NullableFeeCost
- type NullableFloat32
- type NullableFloat64
- type NullableGasCost
- type NullableGasDetails
- type NullableIncludedStep
- func (v NullableIncludedStep) Get() *IncludedStep
- func (v NullableIncludedStep) IsSet() bool
- func (v NullableIncludedStep) MarshalJSON() ([]byte, error)
- func (v *NullableIncludedStep) Set(val *IncludedStep)
- func (v *NullableIncludedStep) UnmarshalJSON(src []byte) error
- func (v *NullableIncludedStep) Unset()
- type NullableIncludedSteps
- func (v NullableIncludedSteps) Get() IncludedSteps
- func (v NullableIncludedSteps) IsSet() bool
- func (v NullableIncludedSteps) MarshalJSON() ([]byte, error)
- func (v *NullableIncludedSteps) Set(val IncludedSteps)
- func (v *NullableIncludedSteps) UnmarshalJSON(src []byte) error
- func (v *NullableIncludedSteps) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableIntegrationDetails
- func (v NullableIntegrationDetails) Get() *IntegrationDetails
- func (v NullableIntegrationDetails) IsSet() bool
- func (v NullableIntegrationDetails) MarshalJSON() ([]byte, error)
- func (v *NullableIntegrationDetails) Set(val *IntegrationDetails)
- func (v *NullableIntegrationDetails) UnmarshalJSON(src []byte) error
- func (v *NullableIntegrationDetails) Unset()
- type NullableNativeCurrency
- func (v NullableNativeCurrency) Get() *NativeCurrency
- func (v NullableNativeCurrency) IsSet() bool
- func (v NullableNativeCurrency) MarshalJSON() ([]byte, error)
- func (v *NullableNativeCurrency) Set(val *NativeCurrency)
- func (v *NullableNativeCurrency) UnmarshalJSON(src []byte) error
- func (v *NullableNativeCurrency) Unset()
- type NullableNetworkType
- func (v NullableNetworkType) Get() *NetworkType
- func (v NullableNetworkType) IsSet() bool
- func (v NullableNetworkType) MarshalJSON() ([]byte, error)
- func (v *NullableNetworkType) Set(val *NetworkType)
- func (v *NullableNetworkType) UnmarshalJSON(src []byte) error
- func (v *NullableNetworkType) Unset()
- type NullablePortfolioViewSum
- func (v NullablePortfolioViewSum) Get() *PortfolioViewSum
- func (v NullablePortfolioViewSum) IsSet() bool
- func (v NullablePortfolioViewSum) MarshalJSON() ([]byte, error)
- func (v *NullablePortfolioViewSum) Set(val *PortfolioViewSum)
- func (v *NullablePortfolioViewSum) UnmarshalJSON(src []byte) error
- func (v *NullablePortfolioViewSum) Unset()
- type NullablePortfolioViewSumSums
- func (v NullablePortfolioViewSumSums) Get() *PortfolioViewSumSums
- func (v NullablePortfolioViewSumSums) IsSet() bool
- func (v NullablePortfolioViewSumSums) MarshalJSON() ([]byte, error)
- func (v *NullablePortfolioViewSumSums) Set(val *PortfolioViewSumSums)
- func (v *NullablePortfolioViewSumSums) UnmarshalJSON(src []byte) error
- func (v *NullablePortfolioViewSumSums) Unset()
- type NullableRoute
- type NullableRoutes
- type NullableRoutesResponse
- func (v NullableRoutesResponse) Get() *RoutesResponse
- func (v NullableRoutesResponse) IsSet() bool
- func (v NullableRoutesResponse) MarshalJSON() ([]byte, error)
- func (v *NullableRoutesResponse) Set(val *RoutesResponse)
- func (v *NullableRoutesResponse) UnmarshalJSON(src []byte) error
- func (v *NullableRoutesResponse) Unset()
- type NullableStatusChainDetail
- func (v NullableStatusChainDetail) Get() *StatusChainDetail
- func (v NullableStatusChainDetail) IsSet() bool
- func (v NullableStatusChainDetail) MarshalJSON() ([]byte, error)
- func (v *NullableStatusChainDetail) Set(val *StatusChainDetail)
- func (v *NullableStatusChainDetail) UnmarshalJSON(src []byte) error
- func (v *NullableStatusChainDetail) Unset()
- type NullableStatusEnum
- type NullableStatusResponse
- func (v NullableStatusResponse) Get() *StatusResponse
- func (v NullableStatusResponse) IsSet() bool
- func (v NullableStatusResponse) MarshalJSON() ([]byte, error)
- func (v *NullableStatusResponse) Set(val *StatusResponse)
- func (v *NullableStatusResponse) UnmarshalJSON(src []byte) error
- func (v *NullableStatusResponse) Unset()
- type NullableString
- type NullableTags
- type NullableTime
- type NullableToken
- type NullableTokenAmount
- func (v NullableTokenAmount) Get() *TokenAmount
- func (v NullableTokenAmount) IsSet() bool
- func (v NullableTokenAmount) MarshalJSON() ([]byte, error)
- func (v *NullableTokenAmount) Set(val *TokenAmount)
- func (v *NullableTokenAmount) UnmarshalJSON(src []byte) error
- func (v *NullableTokenAmount) Unset()
- type NullableTokenApprovalData
- func (v NullableTokenApprovalData) Get() *TokenApprovalData
- func (v NullableTokenApprovalData) IsSet() bool
- func (v NullableTokenApprovalData) MarshalJSON() ([]byte, error)
- func (v *NullableTokenApprovalData) Set(val *TokenApprovalData)
- func (v *NullableTokenApprovalData) UnmarshalJSON(src []byte) error
- func (v *NullableTokenApprovalData) Unset()
- type NullableTokenApprovalDeletion
- func (v NullableTokenApprovalDeletion) Get() *TokenApprovalDeletion
- func (v NullableTokenApprovalDeletion) IsSet() bool
- func (v NullableTokenApprovalDeletion) MarshalJSON() ([]byte, error)
- func (v *NullableTokenApprovalDeletion) Set(val *TokenApprovalDeletion)
- func (v *NullableTokenApprovalDeletion) UnmarshalJSON(src []byte) error
- func (v *NullableTokenApprovalDeletion) Unset()
- type NullableTokenApprovalModification
- func (v NullableTokenApprovalModification) Get() *TokenApprovalModification
- func (v NullableTokenApprovalModification) IsSet() bool
- func (v NullableTokenApprovalModification) MarshalJSON() ([]byte, error)
- func (v *NullableTokenApprovalModification) Set(val *TokenApprovalModification)
- func (v *NullableTokenApprovalModification) UnmarshalJSON(src []byte) error
- func (v *NullableTokenApprovalModification) Unset()
- type NullableTokenApprovalResponse
- func (v NullableTokenApprovalResponse) Get() *TokenApprovalResponse
- func (v NullableTokenApprovalResponse) IsSet() bool
- func (v NullableTokenApprovalResponse) MarshalJSON() ([]byte, error)
- func (v *NullableTokenApprovalResponse) Set(val *TokenApprovalResponse)
- func (v *NullableTokenApprovalResponse) UnmarshalJSON(src []byte) error
- func (v *NullableTokenApprovalResponse) Unset()
- type NullableTokenList
- type NullableTokens
- type NullableTransaction
- func (v NullableTransaction) Get() *Transaction
- func (v NullableTransaction) IsSet() bool
- func (v NullableTransaction) MarshalJSON() ([]byte, error)
- func (v *NullableTransaction) Set(val *Transaction)
- func (v *NullableTransaction) UnmarshalJSON(src []byte) error
- func (v *NullableTransaction) Unset()
- type NullableTransactionRequest
- func (v NullableTransactionRequest) Get() *TransactionRequest
- func (v NullableTransactionRequest) IsSet() bool
- func (v NullableTransactionRequest) MarshalJSON() ([]byte, error)
- func (v *NullableTransactionRequest) Set(val *TransactionRequest)
- func (v *NullableTransactionRequest) UnmarshalJSON(src []byte) error
- func (v *NullableTransactionRequest) Unset()
- type NullableTransactionStatus
- func (v NullableTransactionStatus) Get() *TransactionStatus
- func (v NullableTransactionStatus) IsSet() bool
- func (v NullableTransactionStatus) MarshalJSON() ([]byte, error)
- func (v *NullableTransactionStatus) Set(val *TransactionStatus)
- func (v *NullableTransactionStatus) UnmarshalJSON(src []byte) error
- func (v *NullableTransactionStatus) Unset()
- type NullableTransactionType
- func (v NullableTransactionType) Get() *TransactionType
- func (v NullableTransactionType) IsSet() bool
- func (v NullableTransactionType) MarshalJSON() ([]byte, error)
- func (v *NullableTransactionType) Set(val *TransactionType)
- func (v *NullableTransactionType) UnmarshalJSON(src []byte) error
- func (v *NullableTransactionType) Unset()
- type NullableTransactionsResponse
- func (v NullableTransactionsResponse) Get() *TransactionsResponse
- func (v NullableTransactionsResponse) IsSet() bool
- func (v NullableTransactionsResponse) MarshalJSON() ([]byte, error)
- func (v *NullableTransactionsResponse) Set(val *TransactionsResponse)
- func (v *NullableTransactionsResponse) UnmarshalJSON(src []byte) error
- func (v *NullableTransactionsResponse) Unset()
- type NullableTransfer
- type NullableTransferType
- func (v NullableTransferType) Get() *TransferType
- func (v NullableTransferType) IsSet() bool
- func (v NullableTransferType) MarshalJSON() ([]byte, error)
- func (v *NullableTransferType) Set(val *TransferType)
- func (v *NullableTransferType) UnmarshalJSON(src []byte) error
- func (v *NullableTransferType) Unset()
- type PortfolioViewSum
- func (o *PortfolioViewSum) GetSums() PortfolioViewSumSums
- func (o *PortfolioViewSum) GetSumsOk() (*PortfolioViewSumSums, bool)
- func (o *PortfolioViewSum) HasSums() bool
- func (o PortfolioViewSum) MarshalJSON() ([]byte, error)
- func (o *PortfolioViewSum) SetSums(v PortfolioViewSumSums)
- func (o PortfolioViewSum) ToMap() (map[string]interface{}, error)
- type PortfolioViewSumSums
- func (o *PortfolioViewSumSums) GetAccounts() []AccountSum
- func (o *PortfolioViewSumSums) GetAccountsOk() ([]AccountSum, bool)
- func (o *PortfolioViewSumSums) GetChains() []ChainSum
- func (o *PortfolioViewSumSums) GetChainsOk() ([]ChainSum, bool)
- func (o *PortfolioViewSumSums) HasAccounts() bool
- func (o *PortfolioViewSumSums) HasChains() bool
- func (o PortfolioViewSumSums) MarshalJSON() ([]byte, error)
- func (o *PortfolioViewSumSums) SetAccounts(v []AccountSum)
- func (o *PortfolioViewSumSums) SetChains(v []ChainSum)
- func (o PortfolioViewSumSums) ToMap() (map[string]interface{}, error)
- type Route
- func (o *Route) GetExtensions() map[string]string
- func (o *Route) GetExtensionsOk() (*map[string]string, bool)
- func (o *Route) GetFrom() TokenAmount
- func (o *Route) GetFromOk() (*TokenAmount, bool)
- func (o *Route) GetSlippage() float32
- func (o *Route) GetSlippageOk() (*float32, bool)
- func (o *Route) GetSteps() IncludedSteps
- func (o *Route) GetStepsOk() (*IncludedSteps, bool)
- func (o *Route) GetTargetID() string
- func (o *Route) GetTargetIDOk() (*string, bool)
- func (o *Route) GetTo() TokenAmount
- func (o *Route) GetToOk() (*TokenAmount, bool)
- func (o *Route) GetTransactionRequest() TransactionRequest
- func (o *Route) GetTransactionRequestOk() (*TransactionRequest, bool)
- func (o *Route) HasExtensions() bool
- func (o *Route) HasSlippage() bool
- func (o Route) MarshalJSON() ([]byte, error)
- func (o *Route) SetExtensions(v map[string]string)
- func (o *Route) SetFrom(v TokenAmount)
- func (o *Route) SetSlippage(v float32)
- func (o *Route) SetSteps(v IncludedSteps)
- func (o *Route) SetTargetID(v string)
- func (o *Route) SetTo(v TokenAmount)
- func (o *Route) SetTransactionRequest(v TransactionRequest)
- func (o Route) ToMap() (map[string]interface{}, error)
- func (o *Route) UnmarshalJSON(data []byte) (err error)
- type Routes
- type RoutesResponse
- func (o *RoutesResponse) GetRoutes() Routes
- func (o *RoutesResponse) GetRoutesOk() (*Routes, bool)
- func (o RoutesResponse) MarshalJSON() ([]byte, error)
- func (o *RoutesResponse) SetRoutes(v Routes)
- func (o RoutesResponse) ToMap() (map[string]interface{}, error)
- func (o *RoutesResponse) UnmarshalJSON(data []byte) (err error)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type StatusChainDetail
- func (o *StatusChainDetail) GetChainID() string
- func (o *StatusChainDetail) GetChainIDOk() (*string, bool)
- func (o *StatusChainDetail) GetExplorerLink() string
- func (o *StatusChainDetail) GetExplorerLinkOk() (*string, bool)
- func (o *StatusChainDetail) GetExtensions() map[string]map[string]interface{}
- func (o *StatusChainDetail) GetExtensionsOk() (map[string]map[string]interface{}, bool)
- func (o *StatusChainDetail) GetStatus() StatusEnum
- func (o *StatusChainDetail) GetStatusOk() (*StatusEnum, bool)
- func (o *StatusChainDetail) GetTxHash() string
- func (o *StatusChainDetail) GetTxHashOk() (*string, bool)
- func (o *StatusChainDetail) HasExtensions() bool
- func (o StatusChainDetail) MarshalJSON() ([]byte, error)
- func (o *StatusChainDetail) SetChainID(v string)
- func (o *StatusChainDetail) SetExplorerLink(v string)
- func (o *StatusChainDetail) SetExtensions(v map[string]map[string]interface{})
- func (o *StatusChainDetail) SetStatus(v StatusEnum)
- func (o *StatusChainDetail) SetTxHash(v string)
- func (o StatusChainDetail) ToMap() (map[string]interface{}, error)
- func (o *StatusChainDetail) UnmarshalJSON(data []byte) (err error)
- type StatusEnum
- type StatusResponse
- func (o *StatusResponse) GetSource() StatusChainDetail
- func (o *StatusResponse) GetSourceOk() (*StatusChainDetail, bool)
- func (o *StatusResponse) GetStatus() StatusEnum
- func (o *StatusResponse) GetStatusOk() (*StatusEnum, bool)
- func (o *StatusResponse) GetTarget() StatusChainDetail
- func (o *StatusResponse) GetTargetOk() (*StatusChainDetail, bool)
- func (o *StatusResponse) HasTarget() bool
- func (o StatusResponse) MarshalJSON() ([]byte, error)
- func (o *StatusResponse) SetSource(v StatusChainDetail)
- func (o *StatusResponse) SetStatus(v StatusEnum)
- func (o *StatusResponse) SetTarget(v StatusChainDetail)
- func (o StatusResponse) ToMap() (map[string]interface{}, error)
- func (o *StatusResponse) UnmarshalJSON(data []byte) (err error)
- type Tags
- type Token
- func (o *Token) GetAddress() string
- func (o *Token) GetAddressOk() (*string, bool)
- func (o *Token) GetChainID() string
- func (o *Token) GetChainIDOk() (*string, bool)
- func (o *Token) GetDecimals() int32
- func (o *Token) GetDecimalsOk() (*int32, bool)
- func (o *Token) GetExtensions() Extensions
- func (o *Token) GetExtensionsOk() (*Extensions, bool)
- func (o *Token) GetLogoURI() string
- func (o *Token) GetLogoURIOk() (*string, bool)
- func (o *Token) GetName() string
- func (o *Token) GetNameOk() (*string, bool)
- func (o *Token) GetPriceUSD() float64
- func (o *Token) GetPriceUSDOk() (*float64, bool)
- func (o *Token) GetSymbol() string
- func (o *Token) GetSymbolOk() (*string, bool)
- func (o *Token) GetTags() Tags
- func (o *Token) GetTagsOk() (*Tags, bool)
- func (o *Token) HasPriceUSD() bool
- func (o Token) MarshalJSON() ([]byte, error)
- func (o *Token) SetAddress(v string)
- func (o *Token) SetChainID(v string)
- func (o *Token) SetDecimals(v int32)
- func (o *Token) SetExtensions(v Extensions)
- func (o *Token) SetLogoURI(v string)
- func (o *Token) SetName(v string)
- func (o *Token) SetPriceUSD(v float64)
- func (o *Token) SetSymbol(v string)
- func (o *Token) SetTags(v Tags)
- func (o Token) ToMap() (map[string]interface{}, error)
- func (o *Token) UnmarshalJSON(data []byte) (err error)
- type TokenAmount
- func (o *TokenAmount) GetAmount() string
- func (o *TokenAmount) GetAmountOk() (*string, bool)
- func (o *TokenAmount) GetAmountUSD() float32
- func (o *TokenAmount) GetAmountUSDOk() (*float32, bool)
- func (o *TokenAmount) GetToken() Token
- func (o *TokenAmount) GetTokenOk() (*Token, bool)
- func (o *TokenAmount) HasAmountUSD() bool
- func (o TokenAmount) MarshalJSON() ([]byte, error)
- func (o *TokenAmount) SetAmount(v string)
- func (o *TokenAmount) SetAmountUSD(v float32)
- func (o *TokenAmount) SetToken(v Token)
- func (o TokenAmount) ToMap() (map[string]interface{}, error)
- func (o *TokenAmount) UnmarshalJSON(data []byte) (err error)
- type TokenApprovalData
- func (o *TokenApprovalData) GetAccountAddress() string
- func (o *TokenApprovalData) GetAccountAddressOk() (*string, bool)
- func (o *TokenApprovalData) GetAmount() string
- func (o *TokenApprovalData) GetAmountOk() (*string, bool)
- func (o *TokenApprovalData) GetAmountUSD() string
- func (o *TokenApprovalData) GetAmountUSDOk() (*string, bool)
- func (o *TokenApprovalData) GetChainId() string
- func (o *TokenApprovalData) GetChainIdOk() (*string, bool)
- func (o *TokenApprovalData) GetSpenderAddress() string
- func (o *TokenApprovalData) GetSpenderAddressOk() (*string, bool)
- func (o *TokenApprovalData) GetSpenderName() string
- func (o *TokenApprovalData) GetSpenderNameOk() (*string, bool)
- func (o *TokenApprovalData) GetToken() Token
- func (o *TokenApprovalData) GetTokenOk() (*Token, bool)
- func (o *TokenApprovalData) GetValueAtRisk() string
- func (o *TokenApprovalData) GetValueAtRiskOk() (*string, bool)
- func (o *TokenApprovalData) GetValueAtRiskUSD() string
- func (o *TokenApprovalData) GetValueAtRiskUSDOk() (*string, bool)
- func (o *TokenApprovalData) HasAmountUSD() bool
- func (o *TokenApprovalData) HasSpenderName() bool
- func (o *TokenApprovalData) HasValueAtRiskUSD() bool
- func (o TokenApprovalData) MarshalJSON() ([]byte, error)
- func (o *TokenApprovalData) SetAccountAddress(v string)
- func (o *TokenApprovalData) SetAmount(v string)
- func (o *TokenApprovalData) SetAmountUSD(v string)
- func (o *TokenApprovalData) SetChainId(v string)
- func (o *TokenApprovalData) SetSpenderAddress(v string)
- func (o *TokenApprovalData) SetSpenderName(v string)
- func (o *TokenApprovalData) SetToken(v Token)
- func (o *TokenApprovalData) SetValueAtRisk(v string)
- func (o *TokenApprovalData) SetValueAtRiskUSD(v string)
- func (o TokenApprovalData) ToMap() (map[string]interface{}, error)
- func (o *TokenApprovalData) UnmarshalJSON(data []byte) (err error)
- type TokenApprovalDeletion
- func (o *TokenApprovalDeletion) GetAccountAddress() string
- func (o *TokenApprovalDeletion) GetAccountAddressOk() (*string, bool)
- func (o *TokenApprovalDeletion) GetChainID() string
- func (o *TokenApprovalDeletion) GetChainIDOk() (*string, bool)
- func (o *TokenApprovalDeletion) GetSpenderAddress() string
- func (o *TokenApprovalDeletion) GetSpenderAddressOk() (*string, bool)
- func (o *TokenApprovalDeletion) GetTokenAddress() string
- func (o *TokenApprovalDeletion) GetTokenAddressOk() (*string, bool)
- func (o TokenApprovalDeletion) MarshalJSON() ([]byte, error)
- func (o *TokenApprovalDeletion) SetAccountAddress(v string)
- func (o *TokenApprovalDeletion) SetChainID(v string)
- func (o *TokenApprovalDeletion) SetSpenderAddress(v string)
- func (o *TokenApprovalDeletion) SetTokenAddress(v string)
- func (o TokenApprovalDeletion) ToMap() (map[string]interface{}, error)
- func (o *TokenApprovalDeletion) UnmarshalJSON(data []byte) (err error)
- type TokenApprovalModification
- func (o *TokenApprovalModification) GetAccountAddress() string
- func (o *TokenApprovalModification) GetAccountAddressOk() (*string, bool)
- func (o *TokenApprovalModification) GetChainID() string
- func (o *TokenApprovalModification) GetChainIDOk() (*string, bool)
- func (o *TokenApprovalModification) GetSpenderAddress() string
- func (o *TokenApprovalModification) GetSpenderAddressOk() (*string, bool)
- func (o *TokenApprovalModification) GetToApprovedAmount() string
- func (o *TokenApprovalModification) GetToApprovedAmountOk() (*string, bool)
- func (o *TokenApprovalModification) GetTokenAddress() string
- func (o *TokenApprovalModification) GetTokenAddressOk() (*string, bool)
- func (o TokenApprovalModification) MarshalJSON() ([]byte, error)
- func (o *TokenApprovalModification) SetAccountAddress(v string)
- func (o *TokenApprovalModification) SetChainID(v string)
- func (o *TokenApprovalModification) SetSpenderAddress(v string)
- func (o *TokenApprovalModification) SetToApprovedAmount(v string)
- func (o *TokenApprovalModification) SetTokenAddress(v string)
- func (o TokenApprovalModification) ToMap() (map[string]interface{}, error)
- func (o *TokenApprovalModification) UnmarshalJSON(data []byte) (err error)
- type TokenApprovalResponse
- func (o *TokenApprovalResponse) GetAccountAddress() string
- func (o *TokenApprovalResponse) GetAccountAddressOk() (*string, bool)
- func (o *TokenApprovalResponse) GetChainID() string
- func (o *TokenApprovalResponse) GetChainIDOk() (*string, bool)
- func (o *TokenApprovalResponse) GetFromApprovedAmount() string
- func (o *TokenApprovalResponse) GetFromApprovedAmountOk() (*string, bool)
- func (o *TokenApprovalResponse) GetSpenderAddress() string
- func (o *TokenApprovalResponse) GetSpenderAddressOk() (*string, bool)
- func (o *TokenApprovalResponse) GetToApprovedAmount() string
- func (o *TokenApprovalResponse) GetToApprovedAmountOk() (*string, bool)
- func (o *TokenApprovalResponse) GetToken() Token
- func (o *TokenApprovalResponse) GetTokenOk() (*Token, bool)
- func (o *TokenApprovalResponse) GetTransactionRequest() TransactionRequest
- func (o *TokenApprovalResponse) GetTransactionRequestOk() (*TransactionRequest, bool)
- func (o TokenApprovalResponse) MarshalJSON() ([]byte, error)
- func (o *TokenApprovalResponse) SetAccountAddress(v string)
- func (o *TokenApprovalResponse) SetChainID(v string)
- func (o *TokenApprovalResponse) SetFromApprovedAmount(v string)
- func (o *TokenApprovalResponse) SetSpenderAddress(v string)
- func (o *TokenApprovalResponse) SetToApprovedAmount(v string)
- func (o *TokenApprovalResponse) SetToken(v Token)
- func (o *TokenApprovalResponse) SetTransactionRequest(v TransactionRequest)
- func (o TokenApprovalResponse) ToMap() (map[string]interface{}, error)
- func (o *TokenApprovalResponse) UnmarshalJSON(data []byte) (err error)
- type TokenList
- type Tokens
- type TokensAPIService
- func (a *TokensAPIService) GetTokenTags(ctx context.Context) ApiGetTokenTagsRequest
- func (a *TokensAPIService) GetTokenTagsExecute(r ApiGetTokenTagsRequest) (*Tags, *http.Response, error)
- func (a *TokensAPIService) GetTokens(ctx context.Context) ApiGetTokensRequest
- func (a *TokensAPIService) GetTokensExecute(r ApiGetTokensRequest) (*TokenList, *http.Response, error)
- type Transaction
- func (o *Transaction) GetBlockHash() string
- func (o *Transaction) GetBlockHashOk() (*string, bool)
- func (o *Transaction) GetBlockNumber() int32
- func (o *Transaction) GetBlockNumberOk() (*int32, bool)
- func (o *Transaction) GetChainID() string
- func (o *Transaction) GetChainIDOk() (*string, bool)
- func (o *Transaction) GetExplorerLink() string
- func (o *Transaction) GetExplorerLinkOk() (*string, bool)
- func (o *Transaction) GetFromAccount() Account
- func (o *Transaction) GetFromAccountOk() (*Account, bool)
- func (o *Transaction) GetGasDetails() GasDetails
- func (o *Transaction) GetGasDetailsOk() (*GasDetails, bool)
- func (o *Transaction) GetStatus() TransactionStatus
- func (o *Transaction) GetStatusOk() (*TransactionStatus, bool)
- func (o *Transaction) GetTenderly() string
- func (o *Transaction) GetTenderlyOk() (*string, bool)
- func (o *Transaction) GetTimestamp() time.Time
- func (o *Transaction) GetTimestampOk() (*time.Time, bool)
- func (o *Transaction) GetToAccount() Account
- func (o *Transaction) GetToAccountOk() (*Account, bool)
- func (o *Transaction) GetTokenAmount() TokenAmount
- func (o *Transaction) GetTokenAmountOk() (*TokenAmount, bool)
- func (o *Transaction) GetTransfers() []Transfer
- func (o *Transaction) GetTransfersOk() ([]Transfer, bool)
- func (o *Transaction) GetTxHash() string
- func (o *Transaction) GetTxHashOk() (*string, bool)
- func (o *Transaction) GetType() TransactionType
- func (o *Transaction) GetTypeOk() (*TransactionType, bool)
- func (o *Transaction) HasTenderly() bool
- func (o Transaction) MarshalJSON() ([]byte, error)
- func (o *Transaction) SetBlockHash(v string)
- func (o *Transaction) SetBlockNumber(v int32)
- func (o *Transaction) SetChainID(v string)
- func (o *Transaction) SetExplorerLink(v string)
- func (o *Transaction) SetFromAccount(v Account)
- func (o *Transaction) SetGasDetails(v GasDetails)
- func (o *Transaction) SetStatus(v TransactionStatus)
- func (o *Transaction) SetTenderly(v string)
- func (o *Transaction) SetTimestamp(v time.Time)
- func (o *Transaction) SetToAccount(v Account)
- func (o *Transaction) SetTokenAmount(v TokenAmount)
- func (o *Transaction) SetTransfers(v []Transfer)
- func (o *Transaction) SetTxHash(v string)
- func (o *Transaction) SetType(v TransactionType)
- func (o Transaction) ToMap() (map[string]interface{}, error)
- func (o *Transaction) UnmarshalJSON(data []byte) (err error)
- type TransactionRequest
- func (o *TransactionRequest) GetChainID() string
- func (o *TransactionRequest) GetChainIDOk() (*string, bool)
- func (o *TransactionRequest) GetData() string
- func (o *TransactionRequest) GetDataOk() (*string, bool)
- func (o *TransactionRequest) GetFrom() string
- func (o *TransactionRequest) GetFromOk() (*string, bool)
- func (o *TransactionRequest) GetGasLimit() int32
- func (o *TransactionRequest) GetGasLimitOk() (*int32, bool)
- func (o *TransactionRequest) GetTo() string
- func (o *TransactionRequest) GetToOk() (*string, bool)
- func (o *TransactionRequest) GetValue() string
- func (o *TransactionRequest) GetValueOk() (*string, bool)
- func (o TransactionRequest) MarshalJSON() ([]byte, error)
- func (o *TransactionRequest) SetChainID(v string)
- func (o *TransactionRequest) SetData(v string)
- func (o *TransactionRequest) SetFrom(v string)
- func (o *TransactionRequest) SetGasLimit(v int32)
- func (o *TransactionRequest) SetTo(v string)
- func (o *TransactionRequest) SetValue(v string)
- func (o TransactionRequest) ToMap() (map[string]interface{}, error)
- func (o *TransactionRequest) UnmarshalJSON(data []byte) (err error)
- type TransactionStatus
- type TransactionType
- type TransactionsAPIService
- type TransactionsResponse
- func (o *TransactionsResponse) GetItems() []Transaction
- func (o *TransactionsResponse) GetItemsOk() ([]Transaction, bool)
- func (o *TransactionsResponse) GetNextPage() string
- func (o *TransactionsResponse) GetNextPageOk() (*string, bool)
- func (o TransactionsResponse) MarshalJSON() ([]byte, error)
- func (o *TransactionsResponse) SetItems(v []Transaction)
- func (o *TransactionsResponse) SetNextPage(v string)
- func (o TransactionsResponse) ToMap() (map[string]interface{}, error)
- func (o *TransactionsResponse) UnmarshalJSON(data []byte) (err error)
- type Transfer
- func (o *Transfer) GetFromAccount() Account
- func (o *Transfer) GetFromAccountOk() (*Account, bool)
- func (o *Transfer) GetToAccount() Account
- func (o *Transfer) GetToAccountOk() (*Account, bool)
- func (o *Transfer) GetTokenAmount() TokenAmount
- func (o *Transfer) GetTokenAmountOk() (*TokenAmount, bool)
- func (o *Transfer) GetType() TransferType
- func (o *Transfer) GetTypeOk() (*TransferType, bool)
- func (o Transfer) MarshalJSON() ([]byte, error)
- func (o *Transfer) SetFromAccount(v Account)
- func (o *Transfer) SetToAccount(v Account)
- func (o *Transfer) SetTokenAmount(v TokenAmount)
- func (o *Transfer) SetType(v TransferType)
- func (o Transfer) ToMap() (map[string]interface{}, error)
- func (o *Transfer) UnmarshalJSON(data []byte) (err error)
- type TransferType
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKeys takes a string apikey as authentication for the request ContextAPIKeys = contextKey("apiKeys") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
var AllowedNetworkTypeEnumValues = []NetworkType{
"mainnet",
"testnet",
}
All allowed values of NetworkType enum
var AllowedStatusEnumEnumValues = []StatusEnum{
"NOT_FOUND",
"PENDING",
"BRIDGING",
"DONE",
"FAILED",
"NEED_GAS",
}
All allowed values of StatusEnum enum
var AllowedTransactionStatusEnumValues = []TransactionStatus{
"Confirmed",
"Error",
}
All allowed values of TransactionStatus enum
var AllowedTransactionTypeEnumValues = []TransactionType{
"Swap",
"Approve",
"Transfer",
"ContractCall",
"Unknown",
"ContractCreate",
}
All allowed values of TransactionType enum
var AllowedTransferTypeEnumValues = []TransferType{
"Native",
"ERC20",
"ERC721",
"ERC20_APPROVE",
}
All allowed values of TransferType enum
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { ApprovalsAPI *ApprovalsAPIService BalancesAPI *BalancesAPIService ChainsAPI *ChainsAPIService ExchangeAPI *ExchangeAPIService TokensAPI *TokensAPIService TransactionsAPI *TransactionsAPIService // contains filtered or unexported fields }
APIClient manages communication with the Blockdaemon DeFi API API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type Account ¶
type Account struct { // Human-readable name for the account. Name *string `json:"name,omitempty"` // URI for the account's logo or icon. LogoURI *string `json:"logoURI,omitempty"` // The address of an account. Address string `json:"address"` // A link to a block explorer for a transaction or address. ExplorerLink *string `json:"explorerLink,omitempty"` // Any additional metadata sourced from platforms like OpenLabelInitiative, ENS, etc. Metadata map[string]string `json:"metadata"` }
Account Information about an account, including its address and metadata.
func NewAccount ¶
NewAccount instantiates a new Account object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewAccountWithDefaults ¶
func NewAccountWithDefaults() *Account
NewAccountWithDefaults instantiates a new Account object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Account) GetAddress ¶
GetAddress returns the Address field value
func (*Account) GetAddressOk ¶
GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.
func (*Account) GetExplorerLink ¶
GetExplorerLink returns the ExplorerLink field value if set, zero value otherwise.
func (*Account) GetExplorerLinkOk ¶
GetExplorerLinkOk returns a tuple with the ExplorerLink field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Account) GetLogoURI ¶
GetLogoURI returns the LogoURI field value if set, zero value otherwise.
func (*Account) GetLogoURIOk ¶
GetLogoURIOk returns a tuple with the LogoURI field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Account) GetMetadata ¶
GetMetadata returns the Metadata field value
func (*Account) GetMetadataOk ¶
GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.
func (*Account) GetNameOk ¶
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Account) HasExplorerLink ¶
HasExplorerLink returns a boolean if a field has been set.
func (*Account) HasLogoURI ¶
HasLogoURI returns a boolean if a field has been set.
func (Account) MarshalJSON ¶
func (*Account) SetExplorerLink ¶
SetExplorerLink gets a reference to the given string and assigns it to the ExplorerLink field.
func (*Account) SetLogoURI ¶
SetLogoURI gets a reference to the given string and assigns it to the LogoURI field.
func (*Account) SetMetadata ¶
SetMetadata sets field value
func (*Account) SetName ¶
SetName gets a reference to the given string and assigns it to the Name field.
func (*Account) UnmarshalJSON ¶
type AccountSum ¶
type AccountSum struct { // The address of an account. Address string `json:"address"` // The amount of a token represented as a string. ApprovedSum string `json:"approvedSum" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a string. ValueAtRiskSum string `json:"valueAtRiskSum" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` }
AccountSum The sum of approved values for an account across all tokens.
func NewAccountSum ¶
func NewAccountSum(address string, approvedSum string, valueAtRiskSum string) *AccountSum
NewAccountSum instantiates a new AccountSum object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewAccountSumWithDefaults ¶
func NewAccountSumWithDefaults() *AccountSum
NewAccountSumWithDefaults instantiates a new AccountSum object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*AccountSum) GetAddress ¶
func (o *AccountSum) GetAddress() string
GetAddress returns the Address field value
func (*AccountSum) GetAddressOk ¶
func (o *AccountSum) GetAddressOk() (*string, bool)
GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.
func (*AccountSum) GetApprovedSum ¶
func (o *AccountSum) GetApprovedSum() string
GetApprovedSum returns the ApprovedSum field value
func (*AccountSum) GetApprovedSumOk ¶
func (o *AccountSum) GetApprovedSumOk() (*string, bool)
GetApprovedSumOk returns a tuple with the ApprovedSum field value and a boolean to check if the value has been set.
func (*AccountSum) GetValueAtRiskSum ¶
func (o *AccountSum) GetValueAtRiskSum() string
GetValueAtRiskSum returns the ValueAtRiskSum field value
func (*AccountSum) GetValueAtRiskSumOk ¶
func (o *AccountSum) GetValueAtRiskSumOk() (*string, bool)
GetValueAtRiskSumOk returns a tuple with the ValueAtRiskSum field value and a boolean to check if the value has been set.
func (AccountSum) MarshalJSON ¶
func (o AccountSum) MarshalJSON() ([]byte, error)
func (*AccountSum) SetAddress ¶
func (o *AccountSum) SetAddress(v string)
SetAddress sets field value
func (*AccountSum) SetApprovedSum ¶
func (o *AccountSum) SetApprovedSum(v string)
SetApprovedSum sets field value
func (*AccountSum) SetValueAtRiskSum ¶
func (o *AccountSum) SetValueAtRiskSum(v string)
SetValueAtRiskSum sets field value
func (AccountSum) ToMap ¶
func (o AccountSum) ToMap() (map[string]interface{}, error)
func (*AccountSum) UnmarshalJSON ¶
func (o *AccountSum) UnmarshalJSON(data []byte) (err error)
type Action ¶
type Action struct { From TokenAmount `json:"from"` To TokenAmount `json:"to"` // The maximum allowed price slippage for a transaction, expressed as a fraction of 100. Slippage float32 `json:"slippage"` FromAccount Account `json:"fromAccount"` ToAccount Account `json:"toAccount"` }
Action Details about an action performed in a step of a route.
func NewAction ¶
func NewAction(from TokenAmount, to TokenAmount, slippage float32, fromAccount Account, toAccount Account) *Action
NewAction instantiates a new Action object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewActionWithDefaults ¶
func NewActionWithDefaults() *Action
NewActionWithDefaults instantiates a new Action object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Action) GetFrom ¶
func (o *Action) GetFrom() TokenAmount
GetFrom returns the From field value
func (*Action) GetFromAccount ¶
GetFromAccount returns the FromAccount field value
func (*Action) GetFromAccountOk ¶
GetFromAccountOk returns a tuple with the FromAccount field value and a boolean to check if the value has been set.
func (*Action) GetFromOk ¶
func (o *Action) GetFromOk() (*TokenAmount, bool)
GetFromOk returns a tuple with the From field value and a boolean to check if the value has been set.
func (*Action) GetSlippage ¶
GetSlippage returns the Slippage field value
func (*Action) GetSlippageOk ¶
GetSlippageOk returns a tuple with the Slippage field value and a boolean to check if the value has been set.
func (*Action) GetToAccount ¶
GetToAccount returns the ToAccount field value
func (*Action) GetToAccountOk ¶
GetToAccountOk returns a tuple with the ToAccount field value and a boolean to check if the value has been set.
func (*Action) GetToOk ¶
func (o *Action) GetToOk() (*TokenAmount, bool)
GetToOk returns a tuple with the To field value and a boolean to check if the value has been set.
func (Action) MarshalJSON ¶
func (*Action) SetFromAccount ¶
SetFromAccount sets field value
func (*Action) SetToAccount ¶
SetToAccount sets field value
func (*Action) UnmarshalJSON ¶
type AllApprovalsResponse ¶
type AllApprovalsResponse struct { // List of token approval data for the requested chains and accounts. Approvals []TokenApprovalData `json:"approvals"` PortfolioViewSum PortfolioViewSum `json:"portfolioViewSum"` // Array of chain IDs for which balances are missing HasMissingApprovals []string `json:"hasMissingApprovals,omitempty"` }
AllApprovalsResponse A response containing token approvals and combined sums for accounts and chains.
func NewAllApprovalsResponse ¶
func NewAllApprovalsResponse(approvals []TokenApprovalData, portfolioViewSum PortfolioViewSum) *AllApprovalsResponse
NewAllApprovalsResponse instantiates a new AllApprovalsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewAllApprovalsResponseWithDefaults ¶
func NewAllApprovalsResponseWithDefaults() *AllApprovalsResponse
NewAllApprovalsResponseWithDefaults instantiates a new AllApprovalsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*AllApprovalsResponse) GetApprovals ¶
func (o *AllApprovalsResponse) GetApprovals() []TokenApprovalData
GetApprovals returns the Approvals field value
func (*AllApprovalsResponse) GetApprovalsOk ¶
func (o *AllApprovalsResponse) GetApprovalsOk() ([]TokenApprovalData, bool)
GetApprovalsOk returns a tuple with the Approvals field value and a boolean to check if the value has been set.
func (*AllApprovalsResponse) GetHasMissingApprovals ¶
func (o *AllApprovalsResponse) GetHasMissingApprovals() []string
GetHasMissingApprovals returns the HasMissingApprovals field value if set, zero value otherwise.
func (*AllApprovalsResponse) GetHasMissingApprovalsOk ¶
func (o *AllApprovalsResponse) GetHasMissingApprovalsOk() ([]string, bool)
GetHasMissingApprovalsOk returns a tuple with the HasMissingApprovals field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AllApprovalsResponse) GetPortfolioViewSum ¶
func (o *AllApprovalsResponse) GetPortfolioViewSum() PortfolioViewSum
GetPortfolioViewSum returns the PortfolioViewSum field value
func (*AllApprovalsResponse) GetPortfolioViewSumOk ¶
func (o *AllApprovalsResponse) GetPortfolioViewSumOk() (*PortfolioViewSum, bool)
GetPortfolioViewSumOk returns a tuple with the PortfolioViewSum field value and a boolean to check if the value has been set.
func (*AllApprovalsResponse) HasHasMissingApprovals ¶
func (o *AllApprovalsResponse) HasHasMissingApprovals() bool
HasHasMissingApprovals returns a boolean if a field has been set.
func (AllApprovalsResponse) MarshalJSON ¶
func (o AllApprovalsResponse) MarshalJSON() ([]byte, error)
func (*AllApprovalsResponse) SetApprovals ¶
func (o *AllApprovalsResponse) SetApprovals(v []TokenApprovalData)
SetApprovals sets field value
func (*AllApprovalsResponse) SetHasMissingApprovals ¶
func (o *AllApprovalsResponse) SetHasMissingApprovals(v []string)
SetHasMissingApprovals gets a reference to the given []string and assigns it to the HasMissingApprovals field.
func (*AllApprovalsResponse) SetPortfolioViewSum ¶
func (o *AllApprovalsResponse) SetPortfolioViewSum(v PortfolioViewSum)
SetPortfolioViewSum sets field value
func (AllApprovalsResponse) ToMap ¶
func (o AllApprovalsResponse) ToMap() (map[string]interface{}, error)
func (*AllApprovalsResponse) UnmarshalJSON ¶
func (o *AllApprovalsResponse) UnmarshalJSON(data []byte) (err error)
type ApiDeleteTokenApprovalRequest ¶
type ApiDeleteTokenApprovalRequest struct { ApiService *ApprovalsAPIService // contains filtered or unexported fields }
func (ApiDeleteTokenApprovalRequest) Execute ¶
func (r ApiDeleteTokenApprovalRequest) Execute() (*TokenApprovalResponse, *http.Response, error)
func (ApiDeleteTokenApprovalRequest) TokenApprovalDeletion ¶
func (r ApiDeleteTokenApprovalRequest) TokenApprovalDeletion(tokenApprovalDeletion TokenApprovalDeletion) ApiDeleteTokenApprovalRequest
The request body for a delete approval
type ApiGetAllApprovalsRequest ¶
type ApiGetAllApprovalsRequest struct { ApiService *ApprovalsAPIService // contains filtered or unexported fields }
func (ApiGetAllApprovalsRequest) AccountAddresses ¶
func (r ApiGetAllApprovalsRequest) AccountAddresses(accountAddresses []string) ApiGetAllApprovalsRequest
A list of account addresses to query.
func (ApiGetAllApprovalsRequest) ChainIDs ¶
func (r ApiGetAllApprovalsRequest) ChainIDs(chainIDs []string) ApiGetAllApprovalsRequest
A list of CAIP-2 identifiers for blockchains.
func (ApiGetAllApprovalsRequest) Execute ¶
func (r ApiGetAllApprovalsRequest) Execute() (*AllApprovalsResponse, *http.Response, error)
func (ApiGetAllApprovalsRequest) SpenderAddresses ¶
func (r ApiGetAllApprovalsRequest) SpenderAddresses(spenderAddresses []string) ApiGetAllApprovalsRequest
A list of spender addresses to query. If omitted, all supported spenders will be queried.
func (ApiGetAllApprovalsRequest) TokenAddresses ¶
func (r ApiGetAllApprovalsRequest) TokenAddresses(tokenAddresses []string) ApiGetAllApprovalsRequest
A list of token contract addresses to query. If omitted, all supported tokens will be queried.
type ApiGetBalancesRequest ¶
type ApiGetBalancesRequest struct { ApiService *BalancesAPIService // contains filtered or unexported fields }
func (ApiGetBalancesRequest) AccountAddress ¶
func (r ApiGetBalancesRequest) AccountAddress(accountAddress string) ApiGetBalancesRequest
The address of an account.
func (ApiGetBalancesRequest) ChainIDs ¶
func (r ApiGetBalancesRequest) ChainIDs(chainIDs []string) ApiGetBalancesRequest
A list of CAIP-2 identifiers for blockchains.
func (ApiGetBalancesRequest) Execute ¶
func (r ApiGetBalancesRequest) Execute() (*BalancesResponse, *http.Response, error)
func (ApiGetBalancesRequest) TokenAddress ¶
func (r ApiGetBalancesRequest) TokenAddress(tokenAddress string) ApiGetBalancesRequest
The address of an token contract to query. If omitted, all supported tokens will be queried.
type ApiGetChainsRequest ¶
type ApiGetChainsRequest struct { ApiService *ChainsAPIService // contains filtered or unexported fields }
func (ApiGetChainsRequest) ChainID ¶
func (r ApiGetChainsRequest) ChainID(chainID string) ApiGetChainsRequest
The CAIP-2 identifier for a blockchain.
func (ApiGetChainsRequest) ChainName ¶
func (r ApiGetChainsRequest) ChainName(chainName string) ApiGetChainsRequest
The name of a blockchain.
func (ApiGetChainsRequest) Execute ¶
func (r ApiGetChainsRequest) Execute() (*Chains, *http.Response, error)
func (ApiGetChainsRequest) NetworkType ¶
func (r ApiGetChainsRequest) NetworkType(networkType NetworkType) ApiGetChainsRequest
The type of network (mainnet, testnet, or devnet).
type ApiGetRoutesRequest ¶
type ApiGetRoutesRequest struct { ApiService *ExchangeAPIService // contains filtered or unexported fields }
func (ApiGetRoutesRequest) AllowBridges ¶
func (r ApiGetRoutesRequest) AllowBridges(allowBridges []string) ApiGetRoutesRequest
A list of bridges that are allowed for the transaction.
func (ApiGetRoutesRequest) AllowExchanges ¶
func (r ApiGetRoutesRequest) AllowExchanges(allowExchanges []string) ApiGetRoutesRequest
A list of exchanges that are allowed for the transaction.
func (ApiGetRoutesRequest) DenyBridges ¶
func (r ApiGetRoutesRequest) DenyBridges(denyBridges []string) ApiGetRoutesRequest
A list of bridges that are not allowed for the transaction.
func (ApiGetRoutesRequest) DenyExchanges ¶
func (r ApiGetRoutesRequest) DenyExchanges(denyExchanges []string) ApiGetRoutesRequest
A list of exchanges that are not allowed for the transaction.
func (ApiGetRoutesRequest) Execute ¶
func (r ApiGetRoutesRequest) Execute() (*RoutesResponse, *http.Response, error)
func (ApiGetRoutesRequest) FromAddress ¶
func (r ApiGetRoutesRequest) FromAddress(fromAddress string) ApiGetRoutesRequest
The address of the wallet sending the tokens.
func (ApiGetRoutesRequest) FromAmount ¶
func (r ApiGetRoutesRequest) FromAmount(fromAmount string) ApiGetRoutesRequest
The amount of tokens to be sent, including decimals.
func (ApiGetRoutesRequest) FromChain ¶
func (r ApiGetRoutesRequest) FromChain(fromChain string) ApiGetRoutesRequest
The sending blockchain in CAIP-2 notation.
func (ApiGetRoutesRequest) FromToken ¶
func (r ApiGetRoutesRequest) FromToken(fromToken string) ApiGetRoutesRequest
The address or symbol of the token to be transferred.
func (ApiGetRoutesRequest) Slippage ¶
func (r ApiGetRoutesRequest) Slippage(slippage float32) ApiGetRoutesRequest
The maximum allowed price slippage for the transaction, as a decimal fraction.
func (ApiGetRoutesRequest) ToAddress ¶
func (r ApiGetRoutesRequest) ToAddress(toAddress string) ApiGetRoutesRequest
The address of the wallet receiving the tokens. This can be the same as the `fromAddress`. `fromAddress` will be used.
func (ApiGetRoutesRequest) ToChain ¶
func (r ApiGetRoutesRequest) ToChain(toChain string) ApiGetRoutesRequest
The receiving blockchain in CAIP-2 notation.
func (ApiGetRoutesRequest) ToToken ¶
func (r ApiGetRoutesRequest) ToToken(toToken string) ApiGetRoutesRequest
The address or symbol of the token to be received.
type ApiGetStatusRequest ¶
type ApiGetStatusRequest struct { ApiService *ExchangeAPIService // contains filtered or unexported fields }
func (ApiGetStatusRequest) Execute ¶
func (r ApiGetStatusRequest) Execute() (*StatusResponse, *http.Response, error)
func (ApiGetStatusRequest) FromChain ¶
func (r ApiGetStatusRequest) FromChain(fromChain string) ApiGetStatusRequest
The sending Chain ID or symbol.
func (ApiGetStatusRequest) TargetID ¶
func (r ApiGetStatusRequest) TargetID(targetID string) ApiGetStatusRequest
A reference to the transaction target used. This value can be found in the routes response.
func (ApiGetStatusRequest) ToChain ¶
func (r ApiGetStatusRequest) ToChain(toChain string) ApiGetStatusRequest
The receiver of the transaction (Chain ID). This can be the same as the `fromChain` for same-chain swaps.
func (ApiGetStatusRequest) TransactionID ¶
func (r ApiGetStatusRequest) TransactionID(transactionID string) ApiGetStatusRequest
The ID of the transaction.
type ApiGetSupportedChainsForBalancesRequest ¶
type ApiGetSupportedChainsForBalancesRequest struct { ApiService *BalancesAPIService // contains filtered or unexported fields }
func (ApiGetSupportedChainsForBalancesRequest) ChainID ¶
func (r ApiGetSupportedChainsForBalancesRequest) ChainID(chainID string) ApiGetSupportedChainsForBalancesRequest
The CAIP-2 identifier for a blockchain.
func (ApiGetSupportedChainsForBalancesRequest) ChainName ¶
func (r ApiGetSupportedChainsForBalancesRequest) ChainName(chainName string) ApiGetSupportedChainsForBalancesRequest
The name of a blockchain.
func (ApiGetSupportedChainsForBalancesRequest) Execute ¶
func (r ApiGetSupportedChainsForBalancesRequest) Execute() (*Chains, *http.Response, error)
func (ApiGetSupportedChainsForBalancesRequest) NetworkType ¶
func (r ApiGetSupportedChainsForBalancesRequest) NetworkType(networkType NetworkType) ApiGetSupportedChainsForBalancesRequest
The type of network (mainnet, testnet, or devnet).
type ApiGetSupportedChainsRequest ¶
type ApiGetSupportedChainsRequest struct { ApiService *ApprovalsAPIService // contains filtered or unexported fields }
func (ApiGetSupportedChainsRequest) ChainID ¶
func (r ApiGetSupportedChainsRequest) ChainID(chainID string) ApiGetSupportedChainsRequest
The CAIP-2 identifier for a blockchain.
func (ApiGetSupportedChainsRequest) ChainName ¶
func (r ApiGetSupportedChainsRequest) ChainName(chainName string) ApiGetSupportedChainsRequest
The name of a blockchain.
func (ApiGetSupportedChainsRequest) Execute ¶
func (r ApiGetSupportedChainsRequest) Execute() (*Chains, *http.Response, error)
func (ApiGetSupportedChainsRequest) NetworkType ¶
func (r ApiGetSupportedChainsRequest) NetworkType(networkType NetworkType) ApiGetSupportedChainsRequest
The type of network (mainnet, testnet, or devnet).
type ApiGetTokenApprovalRequest ¶
type ApiGetTokenApprovalRequest struct { ApiService *ApprovalsAPIService // contains filtered or unexported fields }
func (ApiGetTokenApprovalRequest) AccountAddress ¶
func (r ApiGetTokenApprovalRequest) AccountAddress(accountAddress string) ApiGetTokenApprovalRequest
The address of an account.
func (ApiGetTokenApprovalRequest) ChainID ¶
func (r ApiGetTokenApprovalRequest) ChainID(chainID string) ApiGetTokenApprovalRequest
The CAIP-2 identifier for a blockchain.
func (ApiGetTokenApprovalRequest) Execute ¶
func (r ApiGetTokenApprovalRequest) Execute() (*TokenApprovalData, *http.Response, error)
func (ApiGetTokenApprovalRequest) SpenderAddress ¶
func (r ApiGetTokenApprovalRequest) SpenderAddress(spenderAddress string) ApiGetTokenApprovalRequest
The address of a spender.
func (ApiGetTokenApprovalRequest) TokenAddress ¶
func (r ApiGetTokenApprovalRequest) TokenAddress(tokenAddress string) ApiGetTokenApprovalRequest
The address of an token contract.
type ApiGetTokenTagsRequest ¶
type ApiGetTokenTagsRequest struct { ApiService *TokensAPIService // contains filtered or unexported fields }
type ApiGetTokensRequest ¶
type ApiGetTokensRequest struct { ApiService *TokensAPIService // contains filtered or unexported fields }
func (ApiGetTokensRequest) ChainID ¶
func (r ApiGetTokensRequest) ChainID(chainID string) ApiGetTokensRequest
The CAIP-2 identifier for a blockchain.
func (ApiGetTokensRequest) Execute ¶
func (r ApiGetTokensRequest) Execute() (*TokenList, *http.Response, error)
func (ApiGetTokensRequest) TagLimit ¶
func (r ApiGetTokensRequest) TagLimit(tagLimit []string) ApiGetTokensRequest
A list of token tag identifiers to include in the query.
func (ApiGetTokensRequest) TokenAddress ¶
func (r ApiGetTokensRequest) TokenAddress(tokenAddress string) ApiGetTokensRequest
The address of an token contract to query. If omitted, all supported tokens will be queried.
func (ApiGetTokensRequest) TokenSymbol ¶
func (r ApiGetTokensRequest) TokenSymbol(tokenSymbol string) ApiGetTokensRequest
The symbol of an token contract.
type ApiGetTransactionsRequest ¶
type ApiGetTransactionsRequest struct { ApiService *TransactionsAPIService // contains filtered or unexported fields }
func (ApiGetTransactionsRequest) AccountAddress ¶
func (r ApiGetTransactionsRequest) AccountAddress(accountAddress string) ApiGetTransactionsRequest
The address of an account.
func (ApiGetTransactionsRequest) ChainID ¶
func (r ApiGetTransactionsRequest) ChainID(chainID string) ApiGetTransactionsRequest
The CAIP-2 identifier for a blockchain.
func (ApiGetTransactionsRequest) Execute ¶
func (r ApiGetTransactionsRequest) Execute() (*TransactionsResponse, *http.Response, error)
func (ApiGetTransactionsRequest) Limit ¶
func (r ApiGetTransactionsRequest) Limit(limit int32) ApiGetTransactionsRequest
The number of items per page.
func (ApiGetTransactionsRequest) Page ¶
func (r ApiGetTransactionsRequest) Page(page string) ApiGetTransactionsRequest
The page token/number for pagination.
type ApiModifyTokenApprovalRequest ¶
type ApiModifyTokenApprovalRequest struct { ApiService *ApprovalsAPIService // contains filtered or unexported fields }
func (ApiModifyTokenApprovalRequest) Execute ¶
func (r ApiModifyTokenApprovalRequest) Execute() (*TokenApprovalResponse, *http.Response, error)
func (ApiModifyTokenApprovalRequest) TokenApprovalModification ¶
func (r ApiModifyTokenApprovalRequest) TokenApprovalModification(tokenApprovalModification TokenApprovalModification) ApiModifyTokenApprovalRequest
The request body for a post approval
type ApprovalsAPIService ¶
type ApprovalsAPIService service
ApprovalsAPIService ApprovalsAPI service
func (*ApprovalsAPIService) DeleteTokenApproval ¶
func (a *ApprovalsAPIService) DeleteTokenApproval(ctx context.Context) ApiDeleteTokenApprovalRequest
DeleteTokenApproval Delete an ERC20 token approval
Deletes an existing ERC20 token approval for a specified account, token, and spender. The response contains details about the deletion, including a transaction request object that can be used to execute the deletion on-chain.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiDeleteTokenApprovalRequest
func (*ApprovalsAPIService) DeleteTokenApprovalExecute ¶
func (a *ApprovalsAPIService) DeleteTokenApprovalExecute(r ApiDeleteTokenApprovalRequest) (*TokenApprovalResponse, *http.Response, error)
Execute executes the request
@return TokenApprovalResponse
func (*ApprovalsAPIService) GetAllApprovals ¶
func (a *ApprovalsAPIService) GetAllApprovals(ctx context.Context) ApiGetAllApprovalsRequest
GetAllApprovals Get a list of ERC20 token approvals
Retrieves a list of ERC20 token approvals for multiple accounts across various chains, spenders, and tokens. The response includes the combined approval amounts aggregated by chain and account, allowing users to view their overall approval exposure. This endpoint is useful for monitoring and managing token approvals across multiple DeFi platforms or protocols.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetAllApprovalsRequest
func (*ApprovalsAPIService) GetAllApprovalsExecute ¶
func (a *ApprovalsAPIService) GetAllApprovalsExecute(r ApiGetAllApprovalsRequest) (*AllApprovalsResponse, *http.Response, error)
Execute executes the request
@return AllApprovalsResponse
func (*ApprovalsAPIService) GetSupportedChains ¶
func (a *ApprovalsAPIService) GetSupportedChains(ctx context.Context) ApiGetSupportedChainsRequest
GetSupportedChains Get supported chains for token approvals
Retrieves a list of blockchain networks that are supported for querying token approvals. This information can be useful for clients or applications that need to know which chains are compatible with the approvals functionality.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetSupportedChainsRequest
func (*ApprovalsAPIService) GetSupportedChainsExecute ¶
func (a *ApprovalsAPIService) GetSupportedChainsExecute(r ApiGetSupportedChainsRequest) (*Chains, *http.Response, error)
Execute executes the request
@return Chains
func (*ApprovalsAPIService) GetTokenApproval ¶
func (a *ApprovalsAPIService) GetTokenApproval(ctx context.Context) ApiGetTokenApprovalRequest
GetTokenApproval List ERC20 token approvals
Retrieves token approval details for a specified account, token, and spender. This includes information such as the approved amount, the chain ID, and the spender's address and name. Token approvals are required for certain DeFi interactions, and this endpoint allows users to check the current approval status for their tokens.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetTokenApprovalRequest
func (*ApprovalsAPIService) GetTokenApprovalExecute ¶
func (a *ApprovalsAPIService) GetTokenApprovalExecute(r ApiGetTokenApprovalRequest) (*TokenApprovalData, *http.Response, error)
Execute executes the request
@return TokenApprovalData
func (*ApprovalsAPIService) ModifyTokenApproval ¶
func (a *ApprovalsAPIService) ModifyTokenApproval(ctx context.Context) ApiModifyTokenApprovalRequest
ModifyTokenApproval Modify an ERC20 token approval
Modifies an existing ERC20 token approval by updating the approved amount for a specified account, token, and spender. The response contains details about the modification, including the previous and new approved amounts, as well as a transaction request object that can be used to execute the modification on-chain.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiModifyTokenApprovalRequest
func (*ApprovalsAPIService) ModifyTokenApprovalExecute ¶
func (a *ApprovalsAPIService) ModifyTokenApprovalExecute(r ApiModifyTokenApprovalRequest) (*TokenApprovalResponse, *http.Response, error)
Execute executes the request
@return TokenApprovalResponse
type BalancesAPIService ¶
type BalancesAPIService service
BalancesAPIService BalancesAPI service
func (*BalancesAPIService) GetBalances ¶
func (a *BalancesAPIService) GetBalances(ctx context.Context) ApiGetBalancesRequest
GetBalances Get token balances and market data for an account
Retrieves the individual token balances and market data for an account across multiple blockchain networks. The response includes the account's token holdings, their current market value, and other relevant information, such as the token's name, symbol, and logo URI. This endpoint is useful for displaying a consolidated view of a user's portfolio across different chains and tokens.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetBalancesRequest
func (*BalancesAPIService) GetBalancesExecute ¶
func (a *BalancesAPIService) GetBalancesExecute(r ApiGetBalancesRequest) (*BalancesResponse, *http.Response, error)
Execute executes the request
@return BalancesResponse
func (*BalancesAPIService) GetSupportedChainsForBalances ¶
func (a *BalancesAPIService) GetSupportedChainsForBalances(ctx context.Context) ApiGetSupportedChainsForBalancesRequest
GetSupportedChainsForBalances Get supported chains for token balance queries
Retrieves a list of blockchain networks that are supported for querying token balances. This information can be useful for clients or applications that need to know which chains are compatible with the token balances functionality.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetSupportedChainsForBalancesRequest
func (*BalancesAPIService) GetSupportedChainsForBalancesExecute ¶
func (a *BalancesAPIService) GetSupportedChainsForBalancesExecute(r ApiGetSupportedChainsForBalancesRequest) (*Chains, *http.Response, error)
Execute executes the request
@return Chains
type BalancesResponse ¶
type BalancesResponse struct { // The address of an account. Account *string `json:"account,omitempty"` Balances []ChainBalance `json:"balances"` // Array of chain IDs for which balances are missing HasMissingBalances []string `json:"hasMissingBalances,omitempty"` }
BalancesResponse A response containing token balances for an account across multiple chains.
func NewBalancesResponse ¶
func NewBalancesResponse(balances []ChainBalance) *BalancesResponse
NewBalancesResponse instantiates a new BalancesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewBalancesResponseWithDefaults ¶
func NewBalancesResponseWithDefaults() *BalancesResponse
NewBalancesResponseWithDefaults instantiates a new BalancesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*BalancesResponse) GetAccount ¶
func (o *BalancesResponse) GetAccount() string
GetAccount returns the Account field value if set, zero value otherwise.
func (*BalancesResponse) GetAccountOk ¶
func (o *BalancesResponse) GetAccountOk() (*string, bool)
GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.
func (*BalancesResponse) GetBalances ¶
func (o *BalancesResponse) GetBalances() []ChainBalance
GetBalances returns the Balances field value
func (*BalancesResponse) GetBalancesOk ¶
func (o *BalancesResponse) GetBalancesOk() ([]ChainBalance, bool)
GetBalancesOk returns a tuple with the Balances field value and a boolean to check if the value has been set.
func (*BalancesResponse) GetHasMissingBalances ¶
func (o *BalancesResponse) GetHasMissingBalances() []string
GetHasMissingBalances returns the HasMissingBalances field value if set, zero value otherwise.
func (*BalancesResponse) GetHasMissingBalancesOk ¶
func (o *BalancesResponse) GetHasMissingBalancesOk() ([]string, bool)
GetHasMissingBalancesOk returns a tuple with the HasMissingBalances field value if set, nil otherwise and a boolean to check if the value has been set.
func (*BalancesResponse) HasAccount ¶
func (o *BalancesResponse) HasAccount() bool
HasAccount returns a boolean if a field has been set.
func (*BalancesResponse) HasHasMissingBalances ¶
func (o *BalancesResponse) HasHasMissingBalances() bool
HasHasMissingBalances returns a boolean if a field has been set.
func (BalancesResponse) MarshalJSON ¶
func (o BalancesResponse) MarshalJSON() ([]byte, error)
func (*BalancesResponse) SetAccount ¶
func (o *BalancesResponse) SetAccount(v string)
SetAccount gets a reference to the given string and assigns it to the Account field.
func (*BalancesResponse) SetBalances ¶
func (o *BalancesResponse) SetBalances(v []ChainBalance)
SetBalances sets field value
func (*BalancesResponse) SetHasMissingBalances ¶
func (o *BalancesResponse) SetHasMissingBalances(v []string)
SetHasMissingBalances gets a reference to the given []string and assigns it to the HasMissingBalances field.
func (BalancesResponse) ToMap ¶
func (o BalancesResponse) ToMap() (map[string]interface{}, error)
func (*BalancesResponse) UnmarshalJSON ¶
func (o *BalancesResponse) UnmarshalJSON(data []byte) (err error)
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Chain ¶
type Chain struct { // The name of a blockchain. ChainName string `json:"chainName"` // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` NetworkType *NetworkType `json:"networkType,omitempty"` // The type of network (mainnet, testnet, or devnet). ChainIconURI *string `json:"chainIconURI,omitempty"` // estimated block confirmation time in seconds BlockTime *int32 `json:"blockTime,omitempty"` // number of additional blocks required to ensure the transaction is not reversed BlockConfirmations *int32 `json:"blockConfirmations,omitempty"` // List of RPC gateway URLs. Rpc []string `json:"rpc"` NativeCurrency *NativeCurrency `json:"nativeCurrency,omitempty"` // List of block explorer URLs. BlockExplorerUrls []string `json:"blockExplorerUrls,omitempty"` }
Chain Details about a supported blockchain.
func NewChain ¶
NewChain instantiates a new Chain object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewChainWithDefaults ¶
func NewChainWithDefaults() *Chain
NewChainWithDefaults instantiates a new Chain object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Chain) GetBlockConfirmations ¶
GetBlockConfirmations returns the BlockConfirmations field value if set, zero value otherwise.
func (*Chain) GetBlockConfirmationsOk ¶
GetBlockConfirmationsOk returns a tuple with the BlockConfirmations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Chain) GetBlockExplorerUrls ¶
GetBlockExplorerUrls returns the BlockExplorerUrls field value if set, zero value otherwise.
func (*Chain) GetBlockExplorerUrlsOk ¶
GetBlockExplorerUrlsOk returns a tuple with the BlockExplorerUrls field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Chain) GetBlockTime ¶
GetBlockTime returns the BlockTime field value if set, zero value otherwise.
func (*Chain) GetBlockTimeOk ¶
GetBlockTimeOk returns a tuple with the BlockTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Chain) GetChainID ¶
GetChainID returns the ChainID field value
func (*Chain) GetChainIDOk ¶
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*Chain) GetChainIconURI ¶
GetChainIconURI returns the ChainIconURI field value if set, zero value otherwise.
func (*Chain) GetChainIconURIOk ¶
GetChainIconURIOk returns a tuple with the ChainIconURI field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Chain) GetChainName ¶
GetChainName returns the ChainName field value
func (*Chain) GetChainNameOk ¶
GetChainNameOk returns a tuple with the ChainName field value and a boolean to check if the value has been set.
func (*Chain) GetNativeCurrency ¶
func (o *Chain) GetNativeCurrency() NativeCurrency
GetNativeCurrency returns the NativeCurrency field value if set, zero value otherwise.
func (*Chain) GetNativeCurrencyOk ¶
func (o *Chain) GetNativeCurrencyOk() (*NativeCurrency, bool)
GetNativeCurrencyOk returns a tuple with the NativeCurrency field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Chain) GetNetworkType ¶
func (o *Chain) GetNetworkType() NetworkType
GetNetworkType returns the NetworkType field value if set, zero value otherwise.
func (*Chain) GetNetworkTypeOk ¶
func (o *Chain) GetNetworkTypeOk() (*NetworkType, bool)
GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Chain) GetRpcOk ¶
GetRpcOk returns a tuple with the Rpc field value and a boolean to check if the value has been set.
func (*Chain) HasBlockConfirmations ¶
HasBlockConfirmations returns a boolean if a field has been set.
func (*Chain) HasBlockExplorerUrls ¶
HasBlockExplorerUrls returns a boolean if a field has been set.
func (*Chain) HasBlockTime ¶
HasBlockTime returns a boolean if a field has been set.
func (*Chain) HasChainIconURI ¶
HasChainIconURI returns a boolean if a field has been set.
func (*Chain) HasNativeCurrency ¶
HasNativeCurrency returns a boolean if a field has been set.
func (*Chain) HasNetworkType ¶
HasNetworkType returns a boolean if a field has been set.
func (Chain) MarshalJSON ¶
func (*Chain) SetBlockConfirmations ¶
SetBlockConfirmations gets a reference to the given int32 and assigns it to the BlockConfirmations field.
func (*Chain) SetBlockExplorerUrls ¶
SetBlockExplorerUrls gets a reference to the given []string and assigns it to the BlockExplorerUrls field.
func (*Chain) SetBlockTime ¶
SetBlockTime gets a reference to the given int32 and assigns it to the BlockTime field.
func (*Chain) SetChainIconURI ¶
SetChainIconURI gets a reference to the given string and assigns it to the ChainIconURI field.
func (*Chain) SetNativeCurrency ¶
func (o *Chain) SetNativeCurrency(v NativeCurrency)
SetNativeCurrency gets a reference to the given NativeCurrency and assigns it to the NativeCurrency field.
func (*Chain) SetNetworkType ¶
func (o *Chain) SetNetworkType(v NetworkType)
SetNetworkType gets a reference to the given NetworkType and assigns it to the NetworkType field.
func (*Chain) UnmarshalJSON ¶
type ChainBalance ¶
type ChainBalance struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` TokenBalances []TokenAmount `json:"tokenBalances"` }
ChainBalance The token balances for an account across multiple chains.
func NewChainBalance ¶
func NewChainBalance(chainID string, tokenBalances []TokenAmount) *ChainBalance
NewChainBalance instantiates a new ChainBalance object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewChainBalanceWithDefaults ¶
func NewChainBalanceWithDefaults() *ChainBalance
NewChainBalanceWithDefaults instantiates a new ChainBalance object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ChainBalance) GetChainID ¶
func (o *ChainBalance) GetChainID() string
GetChainID returns the ChainID field value
func (*ChainBalance) GetChainIDOk ¶
func (o *ChainBalance) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*ChainBalance) GetTokenBalances ¶
func (o *ChainBalance) GetTokenBalances() []TokenAmount
GetTokenBalances returns the TokenBalances field value
func (*ChainBalance) GetTokenBalancesOk ¶
func (o *ChainBalance) GetTokenBalancesOk() ([]TokenAmount, bool)
GetTokenBalancesOk returns a tuple with the TokenBalances field value and a boolean to check if the value has been set.
func (ChainBalance) MarshalJSON ¶
func (o ChainBalance) MarshalJSON() ([]byte, error)
func (*ChainBalance) SetChainID ¶
func (o *ChainBalance) SetChainID(v string)
SetChainID sets field value
func (*ChainBalance) SetTokenBalances ¶
func (o *ChainBalance) SetTokenBalances(v []TokenAmount)
SetTokenBalances sets field value
func (ChainBalance) ToMap ¶
func (o ChainBalance) ToMap() (map[string]interface{}, error)
func (*ChainBalance) UnmarshalJSON ¶
func (o *ChainBalance) UnmarshalJSON(data []byte) (err error)
type ChainSum ¶
type ChainSum struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainId string `json:"chainId" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The amount of a token represented as a string. ApprovedSum string `json:"approvedSum" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a string. ValueAtRiskSum string `json:"valueAtRiskSum" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` }
ChainSum The sum of approved values for all tokens on a specific chain.
func NewChainSum ¶
NewChainSum instantiates a new ChainSum object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewChainSumWithDefaults ¶
func NewChainSumWithDefaults() *ChainSum
NewChainSumWithDefaults instantiates a new ChainSum object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ChainSum) GetApprovedSum ¶
GetApprovedSum returns the ApprovedSum field value
func (*ChainSum) GetApprovedSumOk ¶
GetApprovedSumOk returns a tuple with the ApprovedSum field value and a boolean to check if the value has been set.
func (*ChainSum) GetChainId ¶
GetChainId returns the ChainId field value
func (*ChainSum) GetChainIdOk ¶
GetChainIdOk returns a tuple with the ChainId field value and a boolean to check if the value has been set.
func (*ChainSum) GetValueAtRiskSum ¶
GetValueAtRiskSum returns the ValueAtRiskSum field value
func (*ChainSum) GetValueAtRiskSumOk ¶
GetValueAtRiskSumOk returns a tuple with the ValueAtRiskSum field value and a boolean to check if the value has been set.
func (ChainSum) MarshalJSON ¶
func (*ChainSum) SetApprovedSum ¶
SetApprovedSum sets field value
func (*ChainSum) SetValueAtRiskSum ¶
SetValueAtRiskSum sets field value
func (*ChainSum) UnmarshalJSON ¶
type Chains ¶
type Chains struct { }
Chains A list of supported blockchains and their metadata.
func NewChains ¶
func NewChains() *Chains
NewChains instantiates a new Chains object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewChainsWithDefaults ¶
func NewChainsWithDefaults() *Chains
NewChainsWithDefaults instantiates a new Chains object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (Chains) MarshalJSON ¶
func (*Chains) UnmarshalJSON ¶
type ChainsAPIService ¶
type ChainsAPIService service
ChainsAPIService ChainsAPI service
func (*ChainsAPIService) GetChains ¶
func (a *ChainsAPIService) GetChains(ctx context.Context) ApiGetChainsRequest
GetChains Get supported blockchain networks with metadata
Retrieves metadata about each supported blockchain network, such as the chain name, CAIP-2 identifier, network type (mainnet, testnet, or devnet), chain icon URI, estimated block time, required block confirmations, RPC gateways, native currency details, and block explorer URLs. This information is useful for displaying chain details and configuring interactions with different blockchains.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetChainsRequest
func (*ChainsAPIService) GetChainsExecute ¶
func (a *ChainsAPIService) GetChainsExecute(r ApiGetChainsRequest) (*Chains, *http.Response, error)
Execute executes the request
@return Chains
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type Error ¶
type Error struct { // HTTP error type Type string `json:"type"` // Numeric error code Code int32 `json:"code"` // HTTP status of the error Status int32 `json:"status"` // Long error description Message string `json:"message"` // A timestamp represented in ISO 8601 format. Timestamp time.Time `json:"timestamp"` }
Error An error object containing details about the error.
func NewError ¶
NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewErrorWithDefaults ¶
func NewErrorWithDefaults() *Error
NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Error) GetCodeOk ¶
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*Error) GetMessage ¶
GetMessage returns the Message field value
func (*Error) GetMessageOk ¶
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (*Error) GetStatusOk ¶
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*Error) GetTimestamp ¶
GetTimestamp returns the Timestamp field value
func (*Error) GetTimestampOk ¶
GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.
func (*Error) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (Error) MarshalJSON ¶
func (*Error) SetTimestamp ¶
SetTimestamp sets field value
func (*Error) UnmarshalJSON ¶
type Estimate ¶
type Estimate struct { IntegrationDetails IntegrationDetails `json:"integrationDetails"` // The address of a token, account, or smart contract. ApprovalAddress string `json:"approvalAddress" validate:"regexp=^0x[a-fA-F0-9]{40}$"` // The minimum amount to be received after the transaction, specified as a string to maintain precision. ToAmountMin *string `json:"toAmountMin,omitempty" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The estimated amount to be received after the transaction, specified as a string to maintain precision. ToAmount string `json:"toAmount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of tokens to be sent, including decimals. FromAmount string `json:"fromAmount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // Transaction fees, if any. This can be empty if there are no extra fees. FeeCosts []FeeCost `json:"feeCosts"` // The CAIP-2 identifier for a blockchain. GasCosts []GasCost `json:"gasCosts"` // The estimated time for the transaction to be executed, in seconds. ExecutionDuration *int32 `json:"executionDuration,omitempty"` // The value of the amount to be sent in USD. FromAmountUSD *string `json:"fromAmountUSD,omitempty" validate:"regexp=^(0(\\\\.[0-9]+)?|[1-9][0-9]*(\\\\.[0-9]+)?)$"` // The estimated value of the amount to be received in USD. ToAmountUSD *string `json:"toAmountUSD,omitempty" validate:"regexp=^(0(\\\\.[0-9]+)?|[1-9][0-9]*(\\\\.[0-9]+)?)$"` }
Estimate An estimate of the costs and outcome of a step in a route.
func NewEstimate ¶
func NewEstimate(integrationDetails IntegrationDetails, approvalAddress string, toAmount string, fromAmount string, feeCosts []FeeCost, gasCosts []GasCost) *Estimate
NewEstimate instantiates a new Estimate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewEstimateWithDefaults ¶
func NewEstimateWithDefaults() *Estimate
NewEstimateWithDefaults instantiates a new Estimate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Estimate) GetApprovalAddress ¶
GetApprovalAddress returns the ApprovalAddress field value
func (*Estimate) GetApprovalAddressOk ¶
GetApprovalAddressOk returns a tuple with the ApprovalAddress field value and a boolean to check if the value has been set.
func (*Estimate) GetExecutionDuration ¶
GetExecutionDuration returns the ExecutionDuration field value if set, zero value otherwise.
func (*Estimate) GetExecutionDurationOk ¶
GetExecutionDurationOk returns a tuple with the ExecutionDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Estimate) GetFeeCosts ¶
GetFeeCosts returns the FeeCosts field value
func (*Estimate) GetFeeCostsOk ¶
GetFeeCostsOk returns a tuple with the FeeCosts field value and a boolean to check if the value has been set.
func (*Estimate) GetFromAmount ¶
GetFromAmount returns the FromAmount field value
func (*Estimate) GetFromAmountOk ¶
GetFromAmountOk returns a tuple with the FromAmount field value and a boolean to check if the value has been set.
func (*Estimate) GetFromAmountUSD ¶
GetFromAmountUSD returns the FromAmountUSD field value if set, zero value otherwise.
func (*Estimate) GetFromAmountUSDOk ¶
GetFromAmountUSDOk returns a tuple with the FromAmountUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Estimate) GetGasCosts ¶
GetGasCosts returns the GasCosts field value
func (*Estimate) GetGasCostsOk ¶
GetGasCostsOk returns a tuple with the GasCosts field value and a boolean to check if the value has been set.
func (*Estimate) GetIntegrationDetails ¶
func (o *Estimate) GetIntegrationDetails() IntegrationDetails
GetIntegrationDetails returns the IntegrationDetails field value
func (*Estimate) GetIntegrationDetailsOk ¶
func (o *Estimate) GetIntegrationDetailsOk() (*IntegrationDetails, bool)
GetIntegrationDetailsOk returns a tuple with the IntegrationDetails field value and a boolean to check if the value has been set.
func (*Estimate) GetToAmount ¶
GetToAmount returns the ToAmount field value
func (*Estimate) GetToAmountMin ¶
GetToAmountMin returns the ToAmountMin field value if set, zero value otherwise.
func (*Estimate) GetToAmountMinOk ¶
GetToAmountMinOk returns a tuple with the ToAmountMin field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Estimate) GetToAmountOk ¶
GetToAmountOk returns a tuple with the ToAmount field value and a boolean to check if the value has been set.
func (*Estimate) GetToAmountUSD ¶
GetToAmountUSD returns the ToAmountUSD field value if set, zero value otherwise.
func (*Estimate) GetToAmountUSDOk ¶
GetToAmountUSDOk returns a tuple with the ToAmountUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Estimate) HasExecutionDuration ¶
HasExecutionDuration returns a boolean if a field has been set.
func (*Estimate) HasFromAmountUSD ¶
HasFromAmountUSD returns a boolean if a field has been set.
func (*Estimate) HasToAmountMin ¶
HasToAmountMin returns a boolean if a field has been set.
func (*Estimate) HasToAmountUSD ¶
HasToAmountUSD returns a boolean if a field has been set.
func (Estimate) MarshalJSON ¶
func (*Estimate) SetApprovalAddress ¶
SetApprovalAddress sets field value
func (*Estimate) SetExecutionDuration ¶
SetExecutionDuration gets a reference to the given int32 and assigns it to the ExecutionDuration field.
func (*Estimate) SetFeeCosts ¶
SetFeeCosts sets field value
func (*Estimate) SetFromAmount ¶
SetFromAmount sets field value
func (*Estimate) SetFromAmountUSD ¶
SetFromAmountUSD gets a reference to the given string and assigns it to the FromAmountUSD field.
func (*Estimate) SetGasCosts ¶
SetGasCosts sets field value
func (*Estimate) SetIntegrationDetails ¶
func (o *Estimate) SetIntegrationDetails(v IntegrationDetails)
SetIntegrationDetails sets field value
func (*Estimate) SetToAmount ¶
SetToAmount sets field value
func (*Estimate) SetToAmountMin ¶
SetToAmountMin gets a reference to the given string and assigns it to the ToAmountMin field.
func (*Estimate) SetToAmountUSD ¶
SetToAmountUSD gets a reference to the given string and assigns it to the ToAmountUSD field.
func (*Estimate) UnmarshalJSON ¶
type ExchangeAPIService ¶
type ExchangeAPIService service
ExchangeAPIService ExchangeAPI service
func (*ExchangeAPIService) GetRoutes ¶
func (a *ExchangeAPIService) GetRoutes(ctx context.Context) ApiGetRoutesRequest
GetRoutes Get a list of routes for swapping assets
Provides a list of possible routes for swapping assets, detailing each route's steps, tokens, amounts, fees, and estimated execution time. This allows users to compare different options and select the most suitable route for their needs.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetRoutesRequest
func (*ExchangeAPIService) GetRoutesExecute ¶
func (a *ExchangeAPIService) GetRoutesExecute(r ApiGetRoutesRequest) (*RoutesResponse, *http.Response, error)
Execute executes the request
@return RoutesResponse
func (*ExchangeAPIService) GetStatus ¶
func (a *ExchangeAPIService) GetStatus(ctx context.Context) ApiGetStatusRequest
GetStatus Get swap status
Retrieves the status of a swap by providing its transaction ID. The response includes details such as the transaction's current status and transaction hashes. This endpoint allows users to track the progress of their transactions and monitor their status across different blockchains. We recommend using additional methods to verify that the transaction has been included in a block before checking the status to avoid "not-found" response while the transaction is still in the mempool.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetStatusRequest
func (*ExchangeAPIService) GetStatusExecute ¶
func (a *ExchangeAPIService) GetStatusExecute(r ApiGetStatusRequest) (*StatusResponse, *http.Response, error)
Execute executes the request
@return StatusResponse
type Extensions ¶
type Extensions struct { // Describes whether the token data has been verified by Blockdaemon Verified *bool `json:"verified,omitempty"` // The homepage of the token issuer Homepage *string `json:"homepage,omitempty"` Unknown *bool `json:"unknown,omitempty"` }
Extensions Additional metadata about a token.
func NewExtensions ¶
func NewExtensions() *Extensions
NewExtensions instantiates a new Extensions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewExtensionsWithDefaults ¶
func NewExtensionsWithDefaults() *Extensions
NewExtensionsWithDefaults instantiates a new Extensions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Extensions) GetHomepage ¶
func (o *Extensions) GetHomepage() string
GetHomepage returns the Homepage field value if set, zero value otherwise.
func (*Extensions) GetHomepageOk ¶
func (o *Extensions) GetHomepageOk() (*string, bool)
GetHomepageOk returns a tuple with the Homepage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Extensions) GetUnknown ¶
func (o *Extensions) GetUnknown() bool
GetUnknown returns the Unknown field value if set, zero value otherwise.
func (*Extensions) GetUnknownOk ¶
func (o *Extensions) GetUnknownOk() (*bool, bool)
GetUnknownOk returns a tuple with the Unknown field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Extensions) GetVerified ¶
func (o *Extensions) GetVerified() bool
GetVerified returns the Verified field value if set, zero value otherwise.
func (*Extensions) GetVerifiedOk ¶
func (o *Extensions) GetVerifiedOk() (*bool, bool)
GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Extensions) HasHomepage ¶
func (o *Extensions) HasHomepage() bool
HasHomepage returns a boolean if a field has been set.
func (*Extensions) HasUnknown ¶
func (o *Extensions) HasUnknown() bool
HasUnknown returns a boolean if a field has been set.
func (*Extensions) HasVerified ¶
func (o *Extensions) HasVerified() bool
HasVerified returns a boolean if a field has been set.
func (Extensions) MarshalJSON ¶
func (o Extensions) MarshalJSON() ([]byte, error)
func (*Extensions) SetHomepage ¶
func (o *Extensions) SetHomepage(v string)
SetHomepage gets a reference to the given string and assigns it to the Homepage field.
func (*Extensions) SetUnknown ¶
func (o *Extensions) SetUnknown(v bool)
SetUnknown gets a reference to the given bool and assigns it to the Unknown field.
func (*Extensions) SetVerified ¶
func (o *Extensions) SetVerified(v bool)
SetVerified gets a reference to the given bool and assigns it to the Verified field.
func (Extensions) ToMap ¶
func (o Extensions) ToMap() (map[string]interface{}, error)
type FeeCost ¶
type FeeCost struct { // Name of the fee cost. Name string `json:"name"` // Description of the fee cost. Description string `json:"description"` Token TokenAmount `json:"token"` // Flag indicating if the fee cost is included in the fromAmount. If true, the fee will be deducted from the fromAmount to calculate the final toAmount. If false, the fee needs to be payed on top of the fromAmount. Included bool `json:"included"` }
FeeCost The maximum allowed price slippage for the transaction, as a decimal fraction.
func NewFeeCost ¶
func NewFeeCost(name string, description string, token TokenAmount, included bool) *FeeCost
NewFeeCost instantiates a new FeeCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewFeeCostWithDefaults ¶
func NewFeeCostWithDefaults() *FeeCost
NewFeeCostWithDefaults instantiates a new FeeCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*FeeCost) GetDescription ¶
GetDescription returns the Description field value
func (*FeeCost) GetDescriptionOk ¶
GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.
func (*FeeCost) GetIncluded ¶
GetIncluded returns the Included field value
func (*FeeCost) GetIncludedOk ¶
GetIncludedOk returns a tuple with the Included field value and a boolean to check if the value has been set.
func (*FeeCost) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*FeeCost) GetToken ¶
func (o *FeeCost) GetToken() TokenAmount
GetToken returns the Token field value
func (*FeeCost) GetTokenOk ¶
func (o *FeeCost) GetTokenOk() (*TokenAmount, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (FeeCost) MarshalJSON ¶
func (*FeeCost) SetDescription ¶
SetDescription sets field value
func (*FeeCost) UnmarshalJSON ¶
type GasCost ¶
type GasCost struct { // The gas limit for the (internal-)transaction, specified as a string to maintain precision. Limit string `json:"limit" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` Token TokenAmount `json:"token"` }
GasCost Details about the gas cost for a step of a route.
func NewGasCost ¶
func NewGasCost(limit string, token TokenAmount) *GasCost
NewGasCost instantiates a new GasCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGasCostWithDefaults ¶
func NewGasCostWithDefaults() *GasCost
NewGasCostWithDefaults instantiates a new GasCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*GasCost) GetLimitOk ¶
GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.
func (*GasCost) GetToken ¶
func (o *GasCost) GetToken() TokenAmount
GetToken returns the Token field value
func (*GasCost) GetTokenOk ¶
func (o *GasCost) GetTokenOk() (*TokenAmount, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (GasCost) MarshalJSON ¶
func (*GasCost) UnmarshalJSON ¶
type GasDetails ¶
type GasDetails struct { Token Token `json:"token"` // The gas limit provided by the sender. Gas int32 `json:"gas"` // The amount of gas used by the transaction. GasUsed int32 `json:"gasUsed"` // The amount of a token represented as a string. GasPrice string `json:"gasPrice" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The price of an asset, coin, or token. GasUSD *float64 `json:"gasUSD,omitempty"` // The priority fee (tip) paid to miners. PriorityFee string `json:"priorityFee"` // The base fee per gas unit, applicable in EIP-1559 transactions. BaseFee string `json:"baseFee"` }
GasDetails Detailed information about gas usage in a transaction.
func NewGasDetails ¶
func NewGasDetails(token Token, gas int32, gasUsed int32, gasPrice string, priorityFee string, baseFee string) *GasDetails
NewGasDetails instantiates a new GasDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGasDetailsWithDefaults ¶
func NewGasDetailsWithDefaults() *GasDetails
NewGasDetailsWithDefaults instantiates a new GasDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*GasDetails) GetBaseFee ¶
func (o *GasDetails) GetBaseFee() string
GetBaseFee returns the BaseFee field value
func (*GasDetails) GetBaseFeeOk ¶
func (o *GasDetails) GetBaseFeeOk() (*string, bool)
GetBaseFeeOk returns a tuple with the BaseFee field value and a boolean to check if the value has been set.
func (*GasDetails) GetGasOk ¶
func (o *GasDetails) GetGasOk() (*int32, bool)
GetGasOk returns a tuple with the Gas field value and a boolean to check if the value has been set.
func (*GasDetails) GetGasPrice ¶
func (o *GasDetails) GetGasPrice() string
GetGasPrice returns the GasPrice field value
func (*GasDetails) GetGasPriceOk ¶
func (o *GasDetails) GetGasPriceOk() (*string, bool)
GetGasPriceOk returns a tuple with the GasPrice field value and a boolean to check if the value has been set.
func (*GasDetails) GetGasUSD ¶
func (o *GasDetails) GetGasUSD() float64
GetGasUSD returns the GasUSD field value if set, zero value otherwise.
func (*GasDetails) GetGasUSDOk ¶
func (o *GasDetails) GetGasUSDOk() (*float64, bool)
GetGasUSDOk returns a tuple with the GasUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GasDetails) GetGasUsed ¶
func (o *GasDetails) GetGasUsed() int32
GetGasUsed returns the GasUsed field value
func (*GasDetails) GetGasUsedOk ¶
func (o *GasDetails) GetGasUsedOk() (*int32, bool)
GetGasUsedOk returns a tuple with the GasUsed field value and a boolean to check if the value has been set.
func (*GasDetails) GetPriorityFee ¶
func (o *GasDetails) GetPriorityFee() string
GetPriorityFee returns the PriorityFee field value
func (*GasDetails) GetPriorityFeeOk ¶
func (o *GasDetails) GetPriorityFeeOk() (*string, bool)
GetPriorityFeeOk returns a tuple with the PriorityFee field value and a boolean to check if the value has been set.
func (*GasDetails) GetToken ¶
func (o *GasDetails) GetToken() Token
GetToken returns the Token field value
func (*GasDetails) GetTokenOk ¶
func (o *GasDetails) GetTokenOk() (*Token, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (*GasDetails) HasGasUSD ¶
func (o *GasDetails) HasGasUSD() bool
HasGasUSD returns a boolean if a field has been set.
func (GasDetails) MarshalJSON ¶
func (o GasDetails) MarshalJSON() ([]byte, error)
func (*GasDetails) SetBaseFee ¶
func (o *GasDetails) SetBaseFee(v string)
SetBaseFee sets field value
func (*GasDetails) SetGasPrice ¶
func (o *GasDetails) SetGasPrice(v string)
SetGasPrice sets field value
func (*GasDetails) SetGasUSD ¶
func (o *GasDetails) SetGasUSD(v float64)
SetGasUSD gets a reference to the given float64 and assigns it to the GasUSD field.
func (*GasDetails) SetGasUsed ¶
func (o *GasDetails) SetGasUsed(v int32)
SetGasUsed sets field value
func (*GasDetails) SetPriorityFee ¶
func (o *GasDetails) SetPriorityFee(v string)
SetPriorityFee sets field value
func (GasDetails) ToMap ¶
func (o GasDetails) ToMap() (map[string]interface{}, error)
func (*GasDetails) UnmarshalJSON ¶
func (o *GasDetails) UnmarshalJSON(data []byte) (err error)
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type IncludedStep ¶
type IncludedStep struct { // Type of the step, such as 'swap' or 'cross'. Type string `json:"type"` Action Action `json:"action"` Estimate Estimate `json:"estimate"` IntegrationDetails IntegrationDetails `json:"integrationDetails"` }
IncludedStep Details about an individual step in a route.
func NewIncludedStep ¶
func NewIncludedStep(type_ string, action Action, estimate Estimate, integrationDetails IntegrationDetails) *IncludedStep
NewIncludedStep instantiates a new IncludedStep object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIncludedStepWithDefaults ¶
func NewIncludedStepWithDefaults() *IncludedStep
NewIncludedStepWithDefaults instantiates a new IncludedStep object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*IncludedStep) GetAction ¶
func (o *IncludedStep) GetAction() Action
GetAction returns the Action field value
func (*IncludedStep) GetActionOk ¶
func (o *IncludedStep) GetActionOk() (*Action, bool)
GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.
func (*IncludedStep) GetEstimate ¶
func (o *IncludedStep) GetEstimate() Estimate
GetEstimate returns the Estimate field value
func (*IncludedStep) GetEstimateOk ¶
func (o *IncludedStep) GetEstimateOk() (*Estimate, bool)
GetEstimateOk returns a tuple with the Estimate field value and a boolean to check if the value has been set.
func (*IncludedStep) GetIntegrationDetails ¶
func (o *IncludedStep) GetIntegrationDetails() IntegrationDetails
GetIntegrationDetails returns the IntegrationDetails field value
func (*IncludedStep) GetIntegrationDetailsOk ¶
func (o *IncludedStep) GetIntegrationDetailsOk() (*IntegrationDetails, bool)
GetIntegrationDetailsOk returns a tuple with the IntegrationDetails field value and a boolean to check if the value has been set.
func (*IncludedStep) GetType ¶
func (o *IncludedStep) GetType() string
GetType returns the Type field value
func (*IncludedStep) GetTypeOk ¶
func (o *IncludedStep) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (IncludedStep) MarshalJSON ¶
func (o IncludedStep) MarshalJSON() ([]byte, error)
func (*IncludedStep) SetAction ¶
func (o *IncludedStep) SetAction(v Action)
SetAction sets field value
func (*IncludedStep) SetEstimate ¶
func (o *IncludedStep) SetEstimate(v Estimate)
SetEstimate sets field value
func (*IncludedStep) SetIntegrationDetails ¶
func (o *IncludedStep) SetIntegrationDetails(v IntegrationDetails)
SetIntegrationDetails sets field value
func (IncludedStep) ToMap ¶
func (o IncludedStep) ToMap() (map[string]interface{}, error)
func (*IncludedStep) UnmarshalJSON ¶
func (o *IncludedStep) UnmarshalJSON(data []byte) (err error)
type IncludedSteps ¶
type IncludedSteps struct { }
IncludedSteps A list of all steps included in a route.
func NewIncludedSteps ¶
func NewIncludedSteps() *IncludedSteps
NewIncludedSteps instantiates a new IncludedSteps object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIncludedStepsWithDefaults ¶
func NewIncludedStepsWithDefaults() *IncludedSteps
NewIncludedStepsWithDefaults instantiates a new IncludedSteps object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (IncludedSteps) MarshalJSON ¶
func (o IncludedSteps) MarshalJSON() ([]byte, error)
func (IncludedSteps) ToMap ¶
func (o IncludedSteps) ToMap() (map[string]interface{}, error)
func (*IncludedSteps) UnmarshalJSON ¶
func (o *IncludedSteps) UnmarshalJSON(data []byte) (err error)
type IntegrationDetails ¶
type IntegrationDetails struct { // A unique identifier for the integration. Key string `json:"key"` // The name of the integration. Name string `json:"name"` // URL to the integration's logo. LogoURI string `json:"logoURI"` // The type of the integration Type string `json:"type"` }
IntegrationDetails Details about a DeFi integration, such as a bridge or an exchange.
func NewIntegrationDetails ¶
func NewIntegrationDetails(key string, name string, logoURI string, type_ string) *IntegrationDetails
NewIntegrationDetails instantiates a new IntegrationDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewIntegrationDetailsWithDefaults ¶
func NewIntegrationDetailsWithDefaults() *IntegrationDetails
NewIntegrationDetailsWithDefaults instantiates a new IntegrationDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*IntegrationDetails) GetKey ¶
func (o *IntegrationDetails) GetKey() string
GetKey returns the Key field value
func (*IntegrationDetails) GetKeyOk ¶
func (o *IntegrationDetails) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.
func (*IntegrationDetails) GetLogoURI ¶
func (o *IntegrationDetails) GetLogoURI() string
GetLogoURI returns the LogoURI field value
func (*IntegrationDetails) GetLogoURIOk ¶
func (o *IntegrationDetails) GetLogoURIOk() (*string, bool)
GetLogoURIOk returns a tuple with the LogoURI field value and a boolean to check if the value has been set.
func (*IntegrationDetails) GetName ¶
func (o *IntegrationDetails) GetName() string
GetName returns the Name field value
func (*IntegrationDetails) GetNameOk ¶
func (o *IntegrationDetails) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*IntegrationDetails) GetType ¶
func (o *IntegrationDetails) GetType() string
GetType returns the Type field value
func (*IntegrationDetails) GetTypeOk ¶
func (o *IntegrationDetails) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (IntegrationDetails) MarshalJSON ¶
func (o IntegrationDetails) MarshalJSON() ([]byte, error)
func (*IntegrationDetails) SetKey ¶
func (o *IntegrationDetails) SetKey(v string)
SetKey sets field value
func (*IntegrationDetails) SetLogoURI ¶
func (o *IntegrationDetails) SetLogoURI(v string)
SetLogoURI sets field value
func (*IntegrationDetails) SetName ¶
func (o *IntegrationDetails) SetName(v string)
SetName sets field value
func (*IntegrationDetails) SetType ¶
func (o *IntegrationDetails) SetType(v string)
SetType sets field value
func (IntegrationDetails) ToMap ¶
func (o IntegrationDetails) ToMap() (map[string]interface{}, error)
func (*IntegrationDetails) UnmarshalJSON ¶
func (o *IntegrationDetails) UnmarshalJSON(data []byte) (err error)
type MappedNullable ¶
type NativeCurrency ¶
type NativeCurrency struct { // Name of the native token. Name string `json:"name"` // Symbol of the native token. Symbol string `json:"symbol"` // Number of decimal places used by the native token. Decimals int32 `json:"decimals"` // URL of the native token icon. Icon *string `json:"icon,omitempty"` }
NativeCurrency The native token of a blockchain.
func NewNativeCurrency ¶
func NewNativeCurrency(name string, symbol string, decimals int32) *NativeCurrency
NewNativeCurrency instantiates a new NativeCurrency object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewNativeCurrencyWithDefaults ¶
func NewNativeCurrencyWithDefaults() *NativeCurrency
NewNativeCurrencyWithDefaults instantiates a new NativeCurrency object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*NativeCurrency) GetDecimals ¶
func (o *NativeCurrency) GetDecimals() int32
GetDecimals returns the Decimals field value
func (*NativeCurrency) GetDecimalsOk ¶
func (o *NativeCurrency) GetDecimalsOk() (*int32, bool)
GetDecimalsOk returns a tuple with the Decimals field value and a boolean to check if the value has been set.
func (*NativeCurrency) GetIcon ¶
func (o *NativeCurrency) GetIcon() string
GetIcon returns the Icon field value if set, zero value otherwise.
func (*NativeCurrency) GetIconOk ¶
func (o *NativeCurrency) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NativeCurrency) GetName ¶
func (o *NativeCurrency) GetName() string
GetName returns the Name field value
func (*NativeCurrency) GetNameOk ¶
func (o *NativeCurrency) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*NativeCurrency) GetSymbol ¶
func (o *NativeCurrency) GetSymbol() string
GetSymbol returns the Symbol field value
func (*NativeCurrency) GetSymbolOk ¶
func (o *NativeCurrency) GetSymbolOk() (*string, bool)
GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.
func (*NativeCurrency) HasIcon ¶
func (o *NativeCurrency) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (NativeCurrency) MarshalJSON ¶
func (o NativeCurrency) MarshalJSON() ([]byte, error)
func (*NativeCurrency) SetDecimals ¶
func (o *NativeCurrency) SetDecimals(v int32)
SetDecimals sets field value
func (*NativeCurrency) SetIcon ¶
func (o *NativeCurrency) SetIcon(v string)
SetIcon gets a reference to the given string and assigns it to the Icon field.
func (*NativeCurrency) SetName ¶
func (o *NativeCurrency) SetName(v string)
SetName sets field value
func (*NativeCurrency) SetSymbol ¶
func (o *NativeCurrency) SetSymbol(v string)
SetSymbol sets field value
func (NativeCurrency) ToMap ¶
func (o NativeCurrency) ToMap() (map[string]interface{}, error)
func (*NativeCurrency) UnmarshalJSON ¶
func (o *NativeCurrency) UnmarshalJSON(data []byte) (err error)
type NetworkType ¶
type NetworkType string
NetworkType The type of network (mainnet or testnet).
const ( MAINNET NetworkType = "mainnet" TESTNET NetworkType = "testnet" )
List of NetworkType
func NewNetworkTypeFromValue ¶
func NewNetworkTypeFromValue(v string) (*NetworkType, error)
NewNetworkTypeFromValue returns a pointer to a valid NetworkType for the value passed as argument, or an error if the value passed is not allowed by the enum
func (NetworkType) IsValid ¶
func (v NetworkType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (NetworkType) Ptr ¶
func (v NetworkType) Ptr() *NetworkType
Ptr returns reference to NetworkType value
func (*NetworkType) UnmarshalJSON ¶
func (v *NetworkType) UnmarshalJSON(src []byte) error
type NullableAccount ¶
type NullableAccount struct {
// contains filtered or unexported fields
}
func NewNullableAccount ¶
func NewNullableAccount(val *Account) *NullableAccount
func (NullableAccount) Get ¶
func (v NullableAccount) Get() *Account
func (NullableAccount) IsSet ¶
func (v NullableAccount) IsSet() bool
func (NullableAccount) MarshalJSON ¶
func (v NullableAccount) MarshalJSON() ([]byte, error)
func (*NullableAccount) Set ¶
func (v *NullableAccount) Set(val *Account)
func (*NullableAccount) UnmarshalJSON ¶
func (v *NullableAccount) UnmarshalJSON(src []byte) error
func (*NullableAccount) Unset ¶
func (v *NullableAccount) Unset()
type NullableAccountSum ¶
type NullableAccountSum struct {
// contains filtered or unexported fields
}
func NewNullableAccountSum ¶
func NewNullableAccountSum(val *AccountSum) *NullableAccountSum
func (NullableAccountSum) Get ¶
func (v NullableAccountSum) Get() *AccountSum
func (NullableAccountSum) IsSet ¶
func (v NullableAccountSum) IsSet() bool
func (NullableAccountSum) MarshalJSON ¶
func (v NullableAccountSum) MarshalJSON() ([]byte, error)
func (*NullableAccountSum) Set ¶
func (v *NullableAccountSum) Set(val *AccountSum)
func (*NullableAccountSum) UnmarshalJSON ¶
func (v *NullableAccountSum) UnmarshalJSON(src []byte) error
func (*NullableAccountSum) Unset ¶
func (v *NullableAccountSum) Unset()
type NullableAction ¶
type NullableAction struct {
// contains filtered or unexported fields
}
func NewNullableAction ¶
func NewNullableAction(val *Action) *NullableAction
func (NullableAction) Get ¶
func (v NullableAction) Get() *Action
func (NullableAction) IsSet ¶
func (v NullableAction) IsSet() bool
func (NullableAction) MarshalJSON ¶
func (v NullableAction) MarshalJSON() ([]byte, error)
func (*NullableAction) Set ¶
func (v *NullableAction) Set(val *Action)
func (*NullableAction) UnmarshalJSON ¶
func (v *NullableAction) UnmarshalJSON(src []byte) error
func (*NullableAction) Unset ¶
func (v *NullableAction) Unset()
type NullableAllApprovalsResponse ¶
type NullableAllApprovalsResponse struct {
// contains filtered or unexported fields
}
func NewNullableAllApprovalsResponse ¶
func NewNullableAllApprovalsResponse(val *AllApprovalsResponse) *NullableAllApprovalsResponse
func (NullableAllApprovalsResponse) Get ¶
func (v NullableAllApprovalsResponse) Get() *AllApprovalsResponse
func (NullableAllApprovalsResponse) IsSet ¶
func (v NullableAllApprovalsResponse) IsSet() bool
func (NullableAllApprovalsResponse) MarshalJSON ¶
func (v NullableAllApprovalsResponse) MarshalJSON() ([]byte, error)
func (*NullableAllApprovalsResponse) Set ¶
func (v *NullableAllApprovalsResponse) Set(val *AllApprovalsResponse)
func (*NullableAllApprovalsResponse) UnmarshalJSON ¶
func (v *NullableAllApprovalsResponse) UnmarshalJSON(src []byte) error
func (*NullableAllApprovalsResponse) Unset ¶
func (v *NullableAllApprovalsResponse) Unset()
type NullableBalancesResponse ¶
type NullableBalancesResponse struct {
// contains filtered or unexported fields
}
func NewNullableBalancesResponse ¶
func NewNullableBalancesResponse(val *BalancesResponse) *NullableBalancesResponse
func (NullableBalancesResponse) Get ¶
func (v NullableBalancesResponse) Get() *BalancesResponse
func (NullableBalancesResponse) IsSet ¶
func (v NullableBalancesResponse) IsSet() bool
func (NullableBalancesResponse) MarshalJSON ¶
func (v NullableBalancesResponse) MarshalJSON() ([]byte, error)
func (*NullableBalancesResponse) Set ¶
func (v *NullableBalancesResponse) Set(val *BalancesResponse)
func (*NullableBalancesResponse) UnmarshalJSON ¶
func (v *NullableBalancesResponse) UnmarshalJSON(src []byte) error
func (*NullableBalancesResponse) Unset ¶
func (v *NullableBalancesResponse) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableChain ¶
type NullableChain struct {
// contains filtered or unexported fields
}
func NewNullableChain ¶
func NewNullableChain(val *Chain) *NullableChain
func (NullableChain) Get ¶
func (v NullableChain) Get() *Chain
func (NullableChain) IsSet ¶
func (v NullableChain) IsSet() bool
func (NullableChain) MarshalJSON ¶
func (v NullableChain) MarshalJSON() ([]byte, error)
func (*NullableChain) Set ¶
func (v *NullableChain) Set(val *Chain)
func (*NullableChain) UnmarshalJSON ¶
func (v *NullableChain) UnmarshalJSON(src []byte) error
func (*NullableChain) Unset ¶
func (v *NullableChain) Unset()
type NullableChainBalance ¶
type NullableChainBalance struct {
// contains filtered or unexported fields
}
func NewNullableChainBalance ¶
func NewNullableChainBalance(val *ChainBalance) *NullableChainBalance
func (NullableChainBalance) Get ¶
func (v NullableChainBalance) Get() *ChainBalance
func (NullableChainBalance) IsSet ¶
func (v NullableChainBalance) IsSet() bool
func (NullableChainBalance) MarshalJSON ¶
func (v NullableChainBalance) MarshalJSON() ([]byte, error)
func (*NullableChainBalance) Set ¶
func (v *NullableChainBalance) Set(val *ChainBalance)
func (*NullableChainBalance) UnmarshalJSON ¶
func (v *NullableChainBalance) UnmarshalJSON(src []byte) error
func (*NullableChainBalance) Unset ¶
func (v *NullableChainBalance) Unset()
type NullableChainSum ¶
type NullableChainSum struct {
// contains filtered or unexported fields
}
func NewNullableChainSum ¶
func NewNullableChainSum(val *ChainSum) *NullableChainSum
func (NullableChainSum) Get ¶
func (v NullableChainSum) Get() *ChainSum
func (NullableChainSum) IsSet ¶
func (v NullableChainSum) IsSet() bool
func (NullableChainSum) MarshalJSON ¶
func (v NullableChainSum) MarshalJSON() ([]byte, error)
func (*NullableChainSum) Set ¶
func (v *NullableChainSum) Set(val *ChainSum)
func (*NullableChainSum) UnmarshalJSON ¶
func (v *NullableChainSum) UnmarshalJSON(src []byte) error
func (*NullableChainSum) Unset ¶
func (v *NullableChainSum) Unset()
type NullableChains ¶
type NullableChains struct {
// contains filtered or unexported fields
}
func NewNullableChains ¶
func NewNullableChains(val Chains) *NullableChains
func (NullableChains) Get ¶
func (v NullableChains) Get() Chains
func (NullableChains) IsSet ¶
func (v NullableChains) IsSet() bool
func (NullableChains) MarshalJSON ¶
func (v NullableChains) MarshalJSON() ([]byte, error)
func (*NullableChains) Set ¶
func (v *NullableChains) Set(val Chains)
func (*NullableChains) UnmarshalJSON ¶
func (v *NullableChains) UnmarshalJSON(src []byte) error
func (*NullableChains) Unset ¶
func (v *NullableChains) Unset()
type NullableError ¶
type NullableError struct {
// contains filtered or unexported fields
}
func NewNullableError ¶
func NewNullableError(val *Error) *NullableError
func (NullableError) Get ¶
func (v NullableError) Get() *Error
func (NullableError) IsSet ¶
func (v NullableError) IsSet() bool
func (NullableError) MarshalJSON ¶
func (v NullableError) MarshalJSON() ([]byte, error)
func (*NullableError) Set ¶
func (v *NullableError) Set(val *Error)
func (*NullableError) UnmarshalJSON ¶
func (v *NullableError) UnmarshalJSON(src []byte) error
func (*NullableError) Unset ¶
func (v *NullableError) Unset()
type NullableEstimate ¶
type NullableEstimate struct {
// contains filtered or unexported fields
}
func NewNullableEstimate ¶
func NewNullableEstimate(val *Estimate) *NullableEstimate
func (NullableEstimate) Get ¶
func (v NullableEstimate) Get() *Estimate
func (NullableEstimate) IsSet ¶
func (v NullableEstimate) IsSet() bool
func (NullableEstimate) MarshalJSON ¶
func (v NullableEstimate) MarshalJSON() ([]byte, error)
func (*NullableEstimate) Set ¶
func (v *NullableEstimate) Set(val *Estimate)
func (*NullableEstimate) UnmarshalJSON ¶
func (v *NullableEstimate) UnmarshalJSON(src []byte) error
func (*NullableEstimate) Unset ¶
func (v *NullableEstimate) Unset()
type NullableExtensions ¶
type NullableExtensions struct {
// contains filtered or unexported fields
}
func NewNullableExtensions ¶
func NewNullableExtensions(val *Extensions) *NullableExtensions
func (NullableExtensions) Get ¶
func (v NullableExtensions) Get() *Extensions
func (NullableExtensions) IsSet ¶
func (v NullableExtensions) IsSet() bool
func (NullableExtensions) MarshalJSON ¶
func (v NullableExtensions) MarshalJSON() ([]byte, error)
func (*NullableExtensions) Set ¶
func (v *NullableExtensions) Set(val *Extensions)
func (*NullableExtensions) UnmarshalJSON ¶
func (v *NullableExtensions) UnmarshalJSON(src []byte) error
func (*NullableExtensions) Unset ¶
func (v *NullableExtensions) Unset()
type NullableFeeCost ¶
type NullableFeeCost struct {
// contains filtered or unexported fields
}
func NewNullableFeeCost ¶
func NewNullableFeeCost(val *FeeCost) *NullableFeeCost
func (NullableFeeCost) Get ¶
func (v NullableFeeCost) Get() *FeeCost
func (NullableFeeCost) IsSet ¶
func (v NullableFeeCost) IsSet() bool
func (NullableFeeCost) MarshalJSON ¶
func (v NullableFeeCost) MarshalJSON() ([]byte, error)
func (*NullableFeeCost) Set ¶
func (v *NullableFeeCost) Set(val *FeeCost)
func (*NullableFeeCost) UnmarshalJSON ¶
func (v *NullableFeeCost) UnmarshalJSON(src []byte) error
func (*NullableFeeCost) Unset ¶
func (v *NullableFeeCost) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableGasCost ¶
type NullableGasCost struct {
// contains filtered or unexported fields
}
func NewNullableGasCost ¶
func NewNullableGasCost(val *GasCost) *NullableGasCost
func (NullableGasCost) Get ¶
func (v NullableGasCost) Get() *GasCost
func (NullableGasCost) IsSet ¶
func (v NullableGasCost) IsSet() bool
func (NullableGasCost) MarshalJSON ¶
func (v NullableGasCost) MarshalJSON() ([]byte, error)
func (*NullableGasCost) Set ¶
func (v *NullableGasCost) Set(val *GasCost)
func (*NullableGasCost) UnmarshalJSON ¶
func (v *NullableGasCost) UnmarshalJSON(src []byte) error
func (*NullableGasCost) Unset ¶
func (v *NullableGasCost) Unset()
type NullableGasDetails ¶
type NullableGasDetails struct {
// contains filtered or unexported fields
}
func NewNullableGasDetails ¶
func NewNullableGasDetails(val *GasDetails) *NullableGasDetails
func (NullableGasDetails) Get ¶
func (v NullableGasDetails) Get() *GasDetails
func (NullableGasDetails) IsSet ¶
func (v NullableGasDetails) IsSet() bool
func (NullableGasDetails) MarshalJSON ¶
func (v NullableGasDetails) MarshalJSON() ([]byte, error)
func (*NullableGasDetails) Set ¶
func (v *NullableGasDetails) Set(val *GasDetails)
func (*NullableGasDetails) UnmarshalJSON ¶
func (v *NullableGasDetails) UnmarshalJSON(src []byte) error
func (*NullableGasDetails) Unset ¶
func (v *NullableGasDetails) Unset()
type NullableIncludedStep ¶
type NullableIncludedStep struct {
// contains filtered or unexported fields
}
func NewNullableIncludedStep ¶
func NewNullableIncludedStep(val *IncludedStep) *NullableIncludedStep
func (NullableIncludedStep) Get ¶
func (v NullableIncludedStep) Get() *IncludedStep
func (NullableIncludedStep) IsSet ¶
func (v NullableIncludedStep) IsSet() bool
func (NullableIncludedStep) MarshalJSON ¶
func (v NullableIncludedStep) MarshalJSON() ([]byte, error)
func (*NullableIncludedStep) Set ¶
func (v *NullableIncludedStep) Set(val *IncludedStep)
func (*NullableIncludedStep) UnmarshalJSON ¶
func (v *NullableIncludedStep) UnmarshalJSON(src []byte) error
func (*NullableIncludedStep) Unset ¶
func (v *NullableIncludedStep) Unset()
type NullableIncludedSteps ¶
type NullableIncludedSteps struct {
// contains filtered or unexported fields
}
func NewNullableIncludedSteps ¶
func NewNullableIncludedSteps(val IncludedSteps) *NullableIncludedSteps
func (NullableIncludedSteps) Get ¶
func (v NullableIncludedSteps) Get() IncludedSteps
func (NullableIncludedSteps) IsSet ¶
func (v NullableIncludedSteps) IsSet() bool
func (NullableIncludedSteps) MarshalJSON ¶
func (v NullableIncludedSteps) MarshalJSON() ([]byte, error)
func (*NullableIncludedSteps) Set ¶
func (v *NullableIncludedSteps) Set(val IncludedSteps)
func (*NullableIncludedSteps) UnmarshalJSON ¶
func (v *NullableIncludedSteps) UnmarshalJSON(src []byte) error
func (*NullableIncludedSteps) Unset ¶
func (v *NullableIncludedSteps) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableIntegrationDetails ¶
type NullableIntegrationDetails struct {
// contains filtered or unexported fields
}
func NewNullableIntegrationDetails ¶
func NewNullableIntegrationDetails(val *IntegrationDetails) *NullableIntegrationDetails
func (NullableIntegrationDetails) Get ¶
func (v NullableIntegrationDetails) Get() *IntegrationDetails
func (NullableIntegrationDetails) IsSet ¶
func (v NullableIntegrationDetails) IsSet() bool
func (NullableIntegrationDetails) MarshalJSON ¶
func (v NullableIntegrationDetails) MarshalJSON() ([]byte, error)
func (*NullableIntegrationDetails) Set ¶
func (v *NullableIntegrationDetails) Set(val *IntegrationDetails)
func (*NullableIntegrationDetails) UnmarshalJSON ¶
func (v *NullableIntegrationDetails) UnmarshalJSON(src []byte) error
func (*NullableIntegrationDetails) Unset ¶
func (v *NullableIntegrationDetails) Unset()
type NullableNativeCurrency ¶
type NullableNativeCurrency struct {
// contains filtered or unexported fields
}
func NewNullableNativeCurrency ¶
func NewNullableNativeCurrency(val *NativeCurrency) *NullableNativeCurrency
func (NullableNativeCurrency) Get ¶
func (v NullableNativeCurrency) Get() *NativeCurrency
func (NullableNativeCurrency) IsSet ¶
func (v NullableNativeCurrency) IsSet() bool
func (NullableNativeCurrency) MarshalJSON ¶
func (v NullableNativeCurrency) MarshalJSON() ([]byte, error)
func (*NullableNativeCurrency) Set ¶
func (v *NullableNativeCurrency) Set(val *NativeCurrency)
func (*NullableNativeCurrency) UnmarshalJSON ¶
func (v *NullableNativeCurrency) UnmarshalJSON(src []byte) error
func (*NullableNativeCurrency) Unset ¶
func (v *NullableNativeCurrency) Unset()
type NullableNetworkType ¶
type NullableNetworkType struct {
// contains filtered or unexported fields
}
func NewNullableNetworkType ¶
func NewNullableNetworkType(val *NetworkType) *NullableNetworkType
func (NullableNetworkType) Get ¶
func (v NullableNetworkType) Get() *NetworkType
func (NullableNetworkType) IsSet ¶
func (v NullableNetworkType) IsSet() bool
func (NullableNetworkType) MarshalJSON ¶
func (v NullableNetworkType) MarshalJSON() ([]byte, error)
func (*NullableNetworkType) Set ¶
func (v *NullableNetworkType) Set(val *NetworkType)
func (*NullableNetworkType) UnmarshalJSON ¶
func (v *NullableNetworkType) UnmarshalJSON(src []byte) error
func (*NullableNetworkType) Unset ¶
func (v *NullableNetworkType) Unset()
type NullablePortfolioViewSum ¶
type NullablePortfolioViewSum struct {
// contains filtered or unexported fields
}
func NewNullablePortfolioViewSum ¶
func NewNullablePortfolioViewSum(val *PortfolioViewSum) *NullablePortfolioViewSum
func (NullablePortfolioViewSum) Get ¶
func (v NullablePortfolioViewSum) Get() *PortfolioViewSum
func (NullablePortfolioViewSum) IsSet ¶
func (v NullablePortfolioViewSum) IsSet() bool
func (NullablePortfolioViewSum) MarshalJSON ¶
func (v NullablePortfolioViewSum) MarshalJSON() ([]byte, error)
func (*NullablePortfolioViewSum) Set ¶
func (v *NullablePortfolioViewSum) Set(val *PortfolioViewSum)
func (*NullablePortfolioViewSum) UnmarshalJSON ¶
func (v *NullablePortfolioViewSum) UnmarshalJSON(src []byte) error
func (*NullablePortfolioViewSum) Unset ¶
func (v *NullablePortfolioViewSum) Unset()
type NullablePortfolioViewSumSums ¶
type NullablePortfolioViewSumSums struct {
// contains filtered or unexported fields
}
func NewNullablePortfolioViewSumSums ¶
func NewNullablePortfolioViewSumSums(val *PortfolioViewSumSums) *NullablePortfolioViewSumSums
func (NullablePortfolioViewSumSums) Get ¶
func (v NullablePortfolioViewSumSums) Get() *PortfolioViewSumSums
func (NullablePortfolioViewSumSums) IsSet ¶
func (v NullablePortfolioViewSumSums) IsSet() bool
func (NullablePortfolioViewSumSums) MarshalJSON ¶
func (v NullablePortfolioViewSumSums) MarshalJSON() ([]byte, error)
func (*NullablePortfolioViewSumSums) Set ¶
func (v *NullablePortfolioViewSumSums) Set(val *PortfolioViewSumSums)
func (*NullablePortfolioViewSumSums) UnmarshalJSON ¶
func (v *NullablePortfolioViewSumSums) UnmarshalJSON(src []byte) error
func (*NullablePortfolioViewSumSums) Unset ¶
func (v *NullablePortfolioViewSumSums) Unset()
type NullableRoute ¶
type NullableRoute struct {
// contains filtered or unexported fields
}
func NewNullableRoute ¶
func NewNullableRoute(val *Route) *NullableRoute
func (NullableRoute) Get ¶
func (v NullableRoute) Get() *Route
func (NullableRoute) IsSet ¶
func (v NullableRoute) IsSet() bool
func (NullableRoute) MarshalJSON ¶
func (v NullableRoute) MarshalJSON() ([]byte, error)
func (*NullableRoute) Set ¶
func (v *NullableRoute) Set(val *Route)
func (*NullableRoute) UnmarshalJSON ¶
func (v *NullableRoute) UnmarshalJSON(src []byte) error
func (*NullableRoute) Unset ¶
func (v *NullableRoute) Unset()
type NullableRoutes ¶
type NullableRoutes struct {
// contains filtered or unexported fields
}
func NewNullableRoutes ¶
func NewNullableRoutes(val Routes) *NullableRoutes
func (NullableRoutes) Get ¶
func (v NullableRoutes) Get() Routes
func (NullableRoutes) IsSet ¶
func (v NullableRoutes) IsSet() bool
func (NullableRoutes) MarshalJSON ¶
func (v NullableRoutes) MarshalJSON() ([]byte, error)
func (*NullableRoutes) Set ¶
func (v *NullableRoutes) Set(val Routes)
func (*NullableRoutes) UnmarshalJSON ¶
func (v *NullableRoutes) UnmarshalJSON(src []byte) error
func (*NullableRoutes) Unset ¶
func (v *NullableRoutes) Unset()
type NullableRoutesResponse ¶
type NullableRoutesResponse struct {
// contains filtered or unexported fields
}
func NewNullableRoutesResponse ¶
func NewNullableRoutesResponse(val *RoutesResponse) *NullableRoutesResponse
func (NullableRoutesResponse) Get ¶
func (v NullableRoutesResponse) Get() *RoutesResponse
func (NullableRoutesResponse) IsSet ¶
func (v NullableRoutesResponse) IsSet() bool
func (NullableRoutesResponse) MarshalJSON ¶
func (v NullableRoutesResponse) MarshalJSON() ([]byte, error)
func (*NullableRoutesResponse) Set ¶
func (v *NullableRoutesResponse) Set(val *RoutesResponse)
func (*NullableRoutesResponse) UnmarshalJSON ¶
func (v *NullableRoutesResponse) UnmarshalJSON(src []byte) error
func (*NullableRoutesResponse) Unset ¶
func (v *NullableRoutesResponse) Unset()
type NullableStatusChainDetail ¶
type NullableStatusChainDetail struct {
// contains filtered or unexported fields
}
func NewNullableStatusChainDetail ¶
func NewNullableStatusChainDetail(val *StatusChainDetail) *NullableStatusChainDetail
func (NullableStatusChainDetail) Get ¶
func (v NullableStatusChainDetail) Get() *StatusChainDetail
func (NullableStatusChainDetail) IsSet ¶
func (v NullableStatusChainDetail) IsSet() bool
func (NullableStatusChainDetail) MarshalJSON ¶
func (v NullableStatusChainDetail) MarshalJSON() ([]byte, error)
func (*NullableStatusChainDetail) Set ¶
func (v *NullableStatusChainDetail) Set(val *StatusChainDetail)
func (*NullableStatusChainDetail) UnmarshalJSON ¶
func (v *NullableStatusChainDetail) UnmarshalJSON(src []byte) error
func (*NullableStatusChainDetail) Unset ¶
func (v *NullableStatusChainDetail) Unset()
type NullableStatusEnum ¶
type NullableStatusEnum struct {
// contains filtered or unexported fields
}
func NewNullableStatusEnum ¶
func NewNullableStatusEnum(val *StatusEnum) *NullableStatusEnum
func (NullableStatusEnum) Get ¶
func (v NullableStatusEnum) Get() *StatusEnum
func (NullableStatusEnum) IsSet ¶
func (v NullableStatusEnum) IsSet() bool
func (NullableStatusEnum) MarshalJSON ¶
func (v NullableStatusEnum) MarshalJSON() ([]byte, error)
func (*NullableStatusEnum) Set ¶
func (v *NullableStatusEnum) Set(val *StatusEnum)
func (*NullableStatusEnum) UnmarshalJSON ¶
func (v *NullableStatusEnum) UnmarshalJSON(src []byte) error
func (*NullableStatusEnum) Unset ¶
func (v *NullableStatusEnum) Unset()
type NullableStatusResponse ¶
type NullableStatusResponse struct {
// contains filtered or unexported fields
}
func NewNullableStatusResponse ¶
func NewNullableStatusResponse(val *StatusResponse) *NullableStatusResponse
func (NullableStatusResponse) Get ¶
func (v NullableStatusResponse) Get() *StatusResponse
func (NullableStatusResponse) IsSet ¶
func (v NullableStatusResponse) IsSet() bool
func (NullableStatusResponse) MarshalJSON ¶
func (v NullableStatusResponse) MarshalJSON() ([]byte, error)
func (*NullableStatusResponse) Set ¶
func (v *NullableStatusResponse) Set(val *StatusResponse)
func (*NullableStatusResponse) UnmarshalJSON ¶
func (v *NullableStatusResponse) UnmarshalJSON(src []byte) error
func (*NullableStatusResponse) Unset ¶
func (v *NullableStatusResponse) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTags ¶
type NullableTags struct {
// contains filtered or unexported fields
}
func NewNullableTags ¶
func NewNullableTags(val Tags) *NullableTags
func (NullableTags) Get ¶
func (v NullableTags) Get() Tags
func (NullableTags) IsSet ¶
func (v NullableTags) IsSet() bool
func (NullableTags) MarshalJSON ¶
func (v NullableTags) MarshalJSON() ([]byte, error)
func (*NullableTags) Set ¶
func (v *NullableTags) Set(val Tags)
func (*NullableTags) UnmarshalJSON ¶
func (v *NullableTags) UnmarshalJSON(src []byte) error
func (*NullableTags) Unset ¶
func (v *NullableTags) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableToken ¶
type NullableToken struct {
// contains filtered or unexported fields
}
func NewNullableToken ¶
func NewNullableToken(val *Token) *NullableToken
func (NullableToken) Get ¶
func (v NullableToken) Get() *Token
func (NullableToken) IsSet ¶
func (v NullableToken) IsSet() bool
func (NullableToken) MarshalJSON ¶
func (v NullableToken) MarshalJSON() ([]byte, error)
func (*NullableToken) Set ¶
func (v *NullableToken) Set(val *Token)
func (*NullableToken) UnmarshalJSON ¶
func (v *NullableToken) UnmarshalJSON(src []byte) error
func (*NullableToken) Unset ¶
func (v *NullableToken) Unset()
type NullableTokenAmount ¶
type NullableTokenAmount struct {
// contains filtered or unexported fields
}
func NewNullableTokenAmount ¶
func NewNullableTokenAmount(val *TokenAmount) *NullableTokenAmount
func (NullableTokenAmount) Get ¶
func (v NullableTokenAmount) Get() *TokenAmount
func (NullableTokenAmount) IsSet ¶
func (v NullableTokenAmount) IsSet() bool
func (NullableTokenAmount) MarshalJSON ¶
func (v NullableTokenAmount) MarshalJSON() ([]byte, error)
func (*NullableTokenAmount) Set ¶
func (v *NullableTokenAmount) Set(val *TokenAmount)
func (*NullableTokenAmount) UnmarshalJSON ¶
func (v *NullableTokenAmount) UnmarshalJSON(src []byte) error
func (*NullableTokenAmount) Unset ¶
func (v *NullableTokenAmount) Unset()
type NullableTokenApprovalData ¶
type NullableTokenApprovalData struct {
// contains filtered or unexported fields
}
func NewNullableTokenApprovalData ¶
func NewNullableTokenApprovalData(val *TokenApprovalData) *NullableTokenApprovalData
func (NullableTokenApprovalData) Get ¶
func (v NullableTokenApprovalData) Get() *TokenApprovalData
func (NullableTokenApprovalData) IsSet ¶
func (v NullableTokenApprovalData) IsSet() bool
func (NullableTokenApprovalData) MarshalJSON ¶
func (v NullableTokenApprovalData) MarshalJSON() ([]byte, error)
func (*NullableTokenApprovalData) Set ¶
func (v *NullableTokenApprovalData) Set(val *TokenApprovalData)
func (*NullableTokenApprovalData) UnmarshalJSON ¶
func (v *NullableTokenApprovalData) UnmarshalJSON(src []byte) error
func (*NullableTokenApprovalData) Unset ¶
func (v *NullableTokenApprovalData) Unset()
type NullableTokenApprovalDeletion ¶
type NullableTokenApprovalDeletion struct {
// contains filtered or unexported fields
}
func NewNullableTokenApprovalDeletion ¶
func NewNullableTokenApprovalDeletion(val *TokenApprovalDeletion) *NullableTokenApprovalDeletion
func (NullableTokenApprovalDeletion) Get ¶
func (v NullableTokenApprovalDeletion) Get() *TokenApprovalDeletion
func (NullableTokenApprovalDeletion) IsSet ¶
func (v NullableTokenApprovalDeletion) IsSet() bool
func (NullableTokenApprovalDeletion) MarshalJSON ¶
func (v NullableTokenApprovalDeletion) MarshalJSON() ([]byte, error)
func (*NullableTokenApprovalDeletion) Set ¶
func (v *NullableTokenApprovalDeletion) Set(val *TokenApprovalDeletion)
func (*NullableTokenApprovalDeletion) UnmarshalJSON ¶
func (v *NullableTokenApprovalDeletion) UnmarshalJSON(src []byte) error
func (*NullableTokenApprovalDeletion) Unset ¶
func (v *NullableTokenApprovalDeletion) Unset()
type NullableTokenApprovalModification ¶
type NullableTokenApprovalModification struct {
// contains filtered or unexported fields
}
func NewNullableTokenApprovalModification ¶
func NewNullableTokenApprovalModification(val *TokenApprovalModification) *NullableTokenApprovalModification
func (NullableTokenApprovalModification) Get ¶
func (v NullableTokenApprovalModification) Get() *TokenApprovalModification
func (NullableTokenApprovalModification) IsSet ¶
func (v NullableTokenApprovalModification) IsSet() bool
func (NullableTokenApprovalModification) MarshalJSON ¶
func (v NullableTokenApprovalModification) MarshalJSON() ([]byte, error)
func (*NullableTokenApprovalModification) Set ¶
func (v *NullableTokenApprovalModification) Set(val *TokenApprovalModification)
func (*NullableTokenApprovalModification) UnmarshalJSON ¶
func (v *NullableTokenApprovalModification) UnmarshalJSON(src []byte) error
func (*NullableTokenApprovalModification) Unset ¶
func (v *NullableTokenApprovalModification) Unset()
type NullableTokenApprovalResponse ¶
type NullableTokenApprovalResponse struct {
// contains filtered or unexported fields
}
func NewNullableTokenApprovalResponse ¶
func NewNullableTokenApprovalResponse(val *TokenApprovalResponse) *NullableTokenApprovalResponse
func (NullableTokenApprovalResponse) Get ¶
func (v NullableTokenApprovalResponse) Get() *TokenApprovalResponse
func (NullableTokenApprovalResponse) IsSet ¶
func (v NullableTokenApprovalResponse) IsSet() bool
func (NullableTokenApprovalResponse) MarshalJSON ¶
func (v NullableTokenApprovalResponse) MarshalJSON() ([]byte, error)
func (*NullableTokenApprovalResponse) Set ¶
func (v *NullableTokenApprovalResponse) Set(val *TokenApprovalResponse)
func (*NullableTokenApprovalResponse) UnmarshalJSON ¶
func (v *NullableTokenApprovalResponse) UnmarshalJSON(src []byte) error
func (*NullableTokenApprovalResponse) Unset ¶
func (v *NullableTokenApprovalResponse) Unset()
type NullableTokenList ¶
type NullableTokenList struct {
// contains filtered or unexported fields
}
func NewNullableTokenList ¶
func NewNullableTokenList(val *TokenList) *NullableTokenList
func (NullableTokenList) Get ¶
func (v NullableTokenList) Get() *TokenList
func (NullableTokenList) IsSet ¶
func (v NullableTokenList) IsSet() bool
func (NullableTokenList) MarshalJSON ¶
func (v NullableTokenList) MarshalJSON() ([]byte, error)
func (*NullableTokenList) Set ¶
func (v *NullableTokenList) Set(val *TokenList)
func (*NullableTokenList) UnmarshalJSON ¶
func (v *NullableTokenList) UnmarshalJSON(src []byte) error
func (*NullableTokenList) Unset ¶
func (v *NullableTokenList) Unset()
type NullableTokens ¶
type NullableTokens struct {
// contains filtered or unexported fields
}
func NewNullableTokens ¶
func NewNullableTokens(val Tokens) *NullableTokens
func (NullableTokens) Get ¶
func (v NullableTokens) Get() Tokens
func (NullableTokens) IsSet ¶
func (v NullableTokens) IsSet() bool
func (NullableTokens) MarshalJSON ¶
func (v NullableTokens) MarshalJSON() ([]byte, error)
func (*NullableTokens) Set ¶
func (v *NullableTokens) Set(val Tokens)
func (*NullableTokens) UnmarshalJSON ¶
func (v *NullableTokens) UnmarshalJSON(src []byte) error
func (*NullableTokens) Unset ¶
func (v *NullableTokens) Unset()
type NullableTransaction ¶
type NullableTransaction struct {
// contains filtered or unexported fields
}
func NewNullableTransaction ¶
func NewNullableTransaction(val *Transaction) *NullableTransaction
func (NullableTransaction) Get ¶
func (v NullableTransaction) Get() *Transaction
func (NullableTransaction) IsSet ¶
func (v NullableTransaction) IsSet() bool
func (NullableTransaction) MarshalJSON ¶
func (v NullableTransaction) MarshalJSON() ([]byte, error)
func (*NullableTransaction) Set ¶
func (v *NullableTransaction) Set(val *Transaction)
func (*NullableTransaction) UnmarshalJSON ¶
func (v *NullableTransaction) UnmarshalJSON(src []byte) error
func (*NullableTransaction) Unset ¶
func (v *NullableTransaction) Unset()
type NullableTransactionRequest ¶
type NullableTransactionRequest struct {
// contains filtered or unexported fields
}
func NewNullableTransactionRequest ¶
func NewNullableTransactionRequest(val *TransactionRequest) *NullableTransactionRequest
func (NullableTransactionRequest) Get ¶
func (v NullableTransactionRequest) Get() *TransactionRequest
func (NullableTransactionRequest) IsSet ¶
func (v NullableTransactionRequest) IsSet() bool
func (NullableTransactionRequest) MarshalJSON ¶
func (v NullableTransactionRequest) MarshalJSON() ([]byte, error)
func (*NullableTransactionRequest) Set ¶
func (v *NullableTransactionRequest) Set(val *TransactionRequest)
func (*NullableTransactionRequest) UnmarshalJSON ¶
func (v *NullableTransactionRequest) UnmarshalJSON(src []byte) error
func (*NullableTransactionRequest) Unset ¶
func (v *NullableTransactionRequest) Unset()
type NullableTransactionStatus ¶
type NullableTransactionStatus struct {
// contains filtered or unexported fields
}
func NewNullableTransactionStatus ¶
func NewNullableTransactionStatus(val *TransactionStatus) *NullableTransactionStatus
func (NullableTransactionStatus) Get ¶
func (v NullableTransactionStatus) Get() *TransactionStatus
func (NullableTransactionStatus) IsSet ¶
func (v NullableTransactionStatus) IsSet() bool
func (NullableTransactionStatus) MarshalJSON ¶
func (v NullableTransactionStatus) MarshalJSON() ([]byte, error)
func (*NullableTransactionStatus) Set ¶
func (v *NullableTransactionStatus) Set(val *TransactionStatus)
func (*NullableTransactionStatus) UnmarshalJSON ¶
func (v *NullableTransactionStatus) UnmarshalJSON(src []byte) error
func (*NullableTransactionStatus) Unset ¶
func (v *NullableTransactionStatus) Unset()
type NullableTransactionType ¶
type NullableTransactionType struct {
// contains filtered or unexported fields
}
func NewNullableTransactionType ¶
func NewNullableTransactionType(val *TransactionType) *NullableTransactionType
func (NullableTransactionType) Get ¶
func (v NullableTransactionType) Get() *TransactionType
func (NullableTransactionType) IsSet ¶
func (v NullableTransactionType) IsSet() bool
func (NullableTransactionType) MarshalJSON ¶
func (v NullableTransactionType) MarshalJSON() ([]byte, error)
func (*NullableTransactionType) Set ¶
func (v *NullableTransactionType) Set(val *TransactionType)
func (*NullableTransactionType) UnmarshalJSON ¶
func (v *NullableTransactionType) UnmarshalJSON(src []byte) error
func (*NullableTransactionType) Unset ¶
func (v *NullableTransactionType) Unset()
type NullableTransactionsResponse ¶
type NullableTransactionsResponse struct {
// contains filtered or unexported fields
}
func NewNullableTransactionsResponse ¶
func NewNullableTransactionsResponse(val *TransactionsResponse) *NullableTransactionsResponse
func (NullableTransactionsResponse) Get ¶
func (v NullableTransactionsResponse) Get() *TransactionsResponse
func (NullableTransactionsResponse) IsSet ¶
func (v NullableTransactionsResponse) IsSet() bool
func (NullableTransactionsResponse) MarshalJSON ¶
func (v NullableTransactionsResponse) MarshalJSON() ([]byte, error)
func (*NullableTransactionsResponse) Set ¶
func (v *NullableTransactionsResponse) Set(val *TransactionsResponse)
func (*NullableTransactionsResponse) UnmarshalJSON ¶
func (v *NullableTransactionsResponse) UnmarshalJSON(src []byte) error
func (*NullableTransactionsResponse) Unset ¶
func (v *NullableTransactionsResponse) Unset()
type NullableTransfer ¶
type NullableTransfer struct {
// contains filtered or unexported fields
}
func NewNullableTransfer ¶
func NewNullableTransfer(val *Transfer) *NullableTransfer
func (NullableTransfer) Get ¶
func (v NullableTransfer) Get() *Transfer
func (NullableTransfer) IsSet ¶
func (v NullableTransfer) IsSet() bool
func (NullableTransfer) MarshalJSON ¶
func (v NullableTransfer) MarshalJSON() ([]byte, error)
func (*NullableTransfer) Set ¶
func (v *NullableTransfer) Set(val *Transfer)
func (*NullableTransfer) UnmarshalJSON ¶
func (v *NullableTransfer) UnmarshalJSON(src []byte) error
func (*NullableTransfer) Unset ¶
func (v *NullableTransfer) Unset()
type NullableTransferType ¶
type NullableTransferType struct {
// contains filtered or unexported fields
}
func NewNullableTransferType ¶
func NewNullableTransferType(val *TransferType) *NullableTransferType
func (NullableTransferType) Get ¶
func (v NullableTransferType) Get() *TransferType
func (NullableTransferType) IsSet ¶
func (v NullableTransferType) IsSet() bool
func (NullableTransferType) MarshalJSON ¶
func (v NullableTransferType) MarshalJSON() ([]byte, error)
func (*NullableTransferType) Set ¶
func (v *NullableTransferType) Set(val *TransferType)
func (*NullableTransferType) UnmarshalJSON ¶
func (v *NullableTransferType) UnmarshalJSON(src []byte) error
func (*NullableTransferType) Unset ¶
func (v *NullableTransferType) Unset()
type PortfolioViewSum ¶
type PortfolioViewSum struct {
Sums *PortfolioViewSumSums `json:"sums,omitempty"`
}
PortfolioViewSum A wrapper over account sum and chain sum objects.
func NewPortfolioViewSum ¶
func NewPortfolioViewSum() *PortfolioViewSum
NewPortfolioViewSum instantiates a new PortfolioViewSum object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewPortfolioViewSumWithDefaults ¶
func NewPortfolioViewSumWithDefaults() *PortfolioViewSum
NewPortfolioViewSumWithDefaults instantiates a new PortfolioViewSum object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*PortfolioViewSum) GetSums ¶
func (o *PortfolioViewSum) GetSums() PortfolioViewSumSums
GetSums returns the Sums field value if set, zero value otherwise.
func (*PortfolioViewSum) GetSumsOk ¶
func (o *PortfolioViewSum) GetSumsOk() (*PortfolioViewSumSums, bool)
GetSumsOk returns a tuple with the Sums field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PortfolioViewSum) HasSums ¶
func (o *PortfolioViewSum) HasSums() bool
HasSums returns a boolean if a field has been set.
func (PortfolioViewSum) MarshalJSON ¶
func (o PortfolioViewSum) MarshalJSON() ([]byte, error)
func (*PortfolioViewSum) SetSums ¶
func (o *PortfolioViewSum) SetSums(v PortfolioViewSumSums)
SetSums gets a reference to the given PortfolioViewSumSums and assigns it to the Sums field.
func (PortfolioViewSum) ToMap ¶
func (o PortfolioViewSum) ToMap() (map[string]interface{}, error)
type PortfolioViewSumSums ¶
type PortfolioViewSumSums struct { // Combined approval dollar amounts by account Address. Accounts []AccountSum `json:"accounts,omitempty"` // Combined approval dollar amounts by chain ID. Chains []ChainSum `json:"chains,omitempty"` }
PortfolioViewSumSums struct for PortfolioViewSumSums
func NewPortfolioViewSumSums ¶
func NewPortfolioViewSumSums() *PortfolioViewSumSums
NewPortfolioViewSumSums instantiates a new PortfolioViewSumSums object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewPortfolioViewSumSumsWithDefaults ¶
func NewPortfolioViewSumSumsWithDefaults() *PortfolioViewSumSums
NewPortfolioViewSumSumsWithDefaults instantiates a new PortfolioViewSumSums object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*PortfolioViewSumSums) GetAccounts ¶
func (o *PortfolioViewSumSums) GetAccounts() []AccountSum
GetAccounts returns the Accounts field value if set, zero value otherwise.
func (*PortfolioViewSumSums) GetAccountsOk ¶
func (o *PortfolioViewSumSums) GetAccountsOk() ([]AccountSum, bool)
GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PortfolioViewSumSums) GetChains ¶
func (o *PortfolioViewSumSums) GetChains() []ChainSum
GetChains returns the Chains field value if set, zero value otherwise.
func (*PortfolioViewSumSums) GetChainsOk ¶
func (o *PortfolioViewSumSums) GetChainsOk() ([]ChainSum, bool)
GetChainsOk returns a tuple with the Chains field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PortfolioViewSumSums) HasAccounts ¶
func (o *PortfolioViewSumSums) HasAccounts() bool
HasAccounts returns a boolean if a field has been set.
func (*PortfolioViewSumSums) HasChains ¶
func (o *PortfolioViewSumSums) HasChains() bool
HasChains returns a boolean if a field has been set.
func (PortfolioViewSumSums) MarshalJSON ¶
func (o PortfolioViewSumSums) MarshalJSON() ([]byte, error)
func (*PortfolioViewSumSums) SetAccounts ¶
func (o *PortfolioViewSumSums) SetAccounts(v []AccountSum)
SetAccounts gets a reference to the given []AccountSum and assigns it to the Accounts field.
func (*PortfolioViewSumSums) SetChains ¶
func (o *PortfolioViewSumSums) SetChains(v []ChainSum)
SetChains gets a reference to the given []ChainSum and assigns it to the Chains field.
func (PortfolioViewSumSums) ToMap ¶
func (o PortfolioViewSumSums) ToMap() (map[string]interface{}, error)
type Route ¶
type Route struct { // A unique identifier for a plugin or sub-component. TargetID string `json:"targetID"` From TokenAmount `json:"from"` To TokenAmount `json:"to"` // The amount of a token represented as a decimal number. Slippage *float32 `json:"slippage,omitempty"` Steps IncludedSteps `json:"steps"` TransactionRequest TransactionRequest `json:"transactionRequest"` // Additional metadata about the route. Extensions *map[string]string `json:"extensions,omitempty"` }
Route Details about a route for swapping tokens, including the steps involved.
func NewRoute ¶
func NewRoute(targetID string, from TokenAmount, to TokenAmount, steps IncludedSteps, transactionRequest TransactionRequest) *Route
NewRoute instantiates a new Route object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRouteWithDefaults ¶
func NewRouteWithDefaults() *Route
NewRouteWithDefaults instantiates a new Route object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Route) GetExtensions ¶
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (*Route) GetExtensionsOk ¶
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Route) GetFromOk ¶
func (o *Route) GetFromOk() (*TokenAmount, bool)
GetFromOk returns a tuple with the From field value and a boolean to check if the value has been set.
func (*Route) GetSlippage ¶
GetSlippage returns the Slippage field value if set, zero value otherwise.
func (*Route) GetSlippageOk ¶
GetSlippageOk returns a tuple with the Slippage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Route) GetSteps ¶
func (o *Route) GetSteps() IncludedSteps
GetSteps returns the Steps field value
func (*Route) GetStepsOk ¶
func (o *Route) GetStepsOk() (*IncludedSteps, bool)
GetStepsOk returns a tuple with the Steps field value and a boolean to check if the value has been set.
func (*Route) GetTargetID ¶
GetTargetID returns the TargetID field value
func (*Route) GetTargetIDOk ¶
GetTargetIDOk returns a tuple with the TargetID field value and a boolean to check if the value has been set.
func (*Route) GetToOk ¶
func (o *Route) GetToOk() (*TokenAmount, bool)
GetToOk returns a tuple with the To field value and a boolean to check if the value has been set.
func (*Route) GetTransactionRequest ¶
func (o *Route) GetTransactionRequest() TransactionRequest
GetTransactionRequest returns the TransactionRequest field value
func (*Route) GetTransactionRequestOk ¶
func (o *Route) GetTransactionRequestOk() (*TransactionRequest, bool)
GetTransactionRequestOk returns a tuple with the TransactionRequest field value and a boolean to check if the value has been set.
func (*Route) HasExtensions ¶
HasExtensions returns a boolean if a field has been set.
func (*Route) HasSlippage ¶
HasSlippage returns a boolean if a field has been set.
func (Route) MarshalJSON ¶
func (*Route) SetExtensions ¶
SetExtensions gets a reference to the given map[string]string and assigns it to the Extensions field.
func (*Route) SetSlippage ¶
SetSlippage gets a reference to the given float32 and assigns it to the Slippage field.
func (*Route) SetTransactionRequest ¶
func (o *Route) SetTransactionRequest(v TransactionRequest)
SetTransactionRequest sets field value
func (*Route) UnmarshalJSON ¶
type Routes ¶
type Routes struct { }
Routes A collection of available routes for swapping tokens.
func NewRoutes ¶
func NewRoutes() *Routes
NewRoutes instantiates a new Routes object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRoutesWithDefaults ¶
func NewRoutesWithDefaults() *Routes
NewRoutesWithDefaults instantiates a new Routes object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (Routes) MarshalJSON ¶
func (*Routes) UnmarshalJSON ¶
type RoutesResponse ¶
type RoutesResponse struct {
Routes Routes `json:"routes"`
}
RoutesResponse A response containing available and unavailable routes for swapping tokens.
func NewRoutesResponse ¶
func NewRoutesResponse(routes Routes) *RoutesResponse
NewRoutesResponse instantiates a new RoutesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewRoutesResponseWithDefaults ¶
func NewRoutesResponseWithDefaults() *RoutesResponse
NewRoutesResponseWithDefaults instantiates a new RoutesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*RoutesResponse) GetRoutes ¶
func (o *RoutesResponse) GetRoutes() Routes
GetRoutes returns the Routes field value
func (*RoutesResponse) GetRoutesOk ¶
func (o *RoutesResponse) GetRoutesOk() (*Routes, bool)
GetRoutesOk returns a tuple with the Routes field value and a boolean to check if the value has been set.
func (RoutesResponse) MarshalJSON ¶
func (o RoutesResponse) MarshalJSON() ([]byte, error)
func (*RoutesResponse) SetRoutes ¶
func (o *RoutesResponse) SetRoutes(v Routes)
SetRoutes sets field value
func (RoutesResponse) ToMap ¶
func (o RoutesResponse) ToMap() (map[string]interface{}, error)
func (*RoutesResponse) UnmarshalJSON ¶
func (o *RoutesResponse) UnmarshalJSON(data []byte) (err error)
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type StatusChainDetail ¶
type StatusChainDetail struct { Status StatusEnum `json:"status"` // The hash of a transaction or block. TxHash string `json:"txHash"` // A link to a block explorer for a transaction or address. ExplorerLink string `json:"explorerLink"` // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` Extensions map[string]map[string]interface{} `json:"extensions,omitempty"` }
StatusChainDetail Details about a transaction on a specific chain.
func NewStatusChainDetail ¶
func NewStatusChainDetail(status StatusEnum, txHash string, explorerLink string, chainID string) *StatusChainDetail
NewStatusChainDetail instantiates a new StatusChainDetail object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewStatusChainDetailWithDefaults ¶
func NewStatusChainDetailWithDefaults() *StatusChainDetail
NewStatusChainDetailWithDefaults instantiates a new StatusChainDetail object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*StatusChainDetail) GetChainID ¶
func (o *StatusChainDetail) GetChainID() string
GetChainID returns the ChainID field value
func (*StatusChainDetail) GetChainIDOk ¶
func (o *StatusChainDetail) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*StatusChainDetail) GetExplorerLink ¶
func (o *StatusChainDetail) GetExplorerLink() string
GetExplorerLink returns the ExplorerLink field value
func (*StatusChainDetail) GetExplorerLinkOk ¶
func (o *StatusChainDetail) GetExplorerLinkOk() (*string, bool)
GetExplorerLinkOk returns a tuple with the ExplorerLink field value and a boolean to check if the value has been set.
func (*StatusChainDetail) GetExtensions ¶
func (o *StatusChainDetail) GetExtensions() map[string]map[string]interface{}
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (*StatusChainDetail) GetExtensionsOk ¶
func (o *StatusChainDetail) GetExtensionsOk() (map[string]map[string]interface{}, bool)
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*StatusChainDetail) GetStatus ¶
func (o *StatusChainDetail) GetStatus() StatusEnum
GetStatus returns the Status field value
func (*StatusChainDetail) GetStatusOk ¶
func (o *StatusChainDetail) GetStatusOk() (*StatusEnum, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*StatusChainDetail) GetTxHash ¶
func (o *StatusChainDetail) GetTxHash() string
GetTxHash returns the TxHash field value
func (*StatusChainDetail) GetTxHashOk ¶
func (o *StatusChainDetail) GetTxHashOk() (*string, bool)
GetTxHashOk returns a tuple with the TxHash field value and a boolean to check if the value has been set.
func (*StatusChainDetail) HasExtensions ¶
func (o *StatusChainDetail) HasExtensions() bool
HasExtensions returns a boolean if a field has been set.
func (StatusChainDetail) MarshalJSON ¶
func (o StatusChainDetail) MarshalJSON() ([]byte, error)
func (*StatusChainDetail) SetChainID ¶
func (o *StatusChainDetail) SetChainID(v string)
SetChainID sets field value
func (*StatusChainDetail) SetExplorerLink ¶
func (o *StatusChainDetail) SetExplorerLink(v string)
SetExplorerLink sets field value
func (*StatusChainDetail) SetExtensions ¶
func (o *StatusChainDetail) SetExtensions(v map[string]map[string]interface{})
SetExtensions gets a reference to the given map[string]map[string]interface{} and assigns it to the Extensions field.
func (*StatusChainDetail) SetStatus ¶
func (o *StatusChainDetail) SetStatus(v StatusEnum)
SetStatus sets field value
func (*StatusChainDetail) SetTxHash ¶
func (o *StatusChainDetail) SetTxHash(v string)
SetTxHash sets field value
func (StatusChainDetail) ToMap ¶
func (o StatusChainDetail) ToMap() (map[string]interface{}, error)
func (*StatusChainDetail) UnmarshalJSON ¶
func (o *StatusChainDetail) UnmarshalJSON(data []byte) (err error)
type StatusEnum ¶
type StatusEnum string
StatusEnum The CAIP-2 identifier for a blockchain.
const ( NOT_FOUND StatusEnum = "NOT_FOUND" PENDING StatusEnum = "PENDING" BRIDGING StatusEnum = "BRIDGING" DONE StatusEnum = "DONE" FAILED StatusEnum = "FAILED" NEED_GAS StatusEnum = "NEED_GAS" )
List of StatusEnum
func NewStatusEnumFromValue ¶
func NewStatusEnumFromValue(v string) (*StatusEnum, error)
NewStatusEnumFromValue returns a pointer to a valid StatusEnum for the value passed as argument, or an error if the value passed is not allowed by the enum
func (StatusEnum) IsValid ¶
func (v StatusEnum) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (StatusEnum) Ptr ¶
func (v StatusEnum) Ptr() *StatusEnum
Ptr returns reference to StatusEnum value
func (*StatusEnum) UnmarshalJSON ¶
func (v *StatusEnum) UnmarshalJSON(src []byte) error
type StatusResponse ¶
type StatusResponse struct { Status StatusEnum `json:"status"` Source StatusChainDetail `json:"source"` Target *StatusChainDetail `json:"target,omitempty"` }
StatusResponse A unique identifier for a plugin or sub-component.
func NewStatusResponse ¶
func NewStatusResponse(status StatusEnum, source StatusChainDetail) *StatusResponse
NewStatusResponse instantiates a new StatusResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewStatusResponseWithDefaults ¶
func NewStatusResponseWithDefaults() *StatusResponse
NewStatusResponseWithDefaults instantiates a new StatusResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*StatusResponse) GetSource ¶
func (o *StatusResponse) GetSource() StatusChainDetail
GetSource returns the Source field value
func (*StatusResponse) GetSourceOk ¶
func (o *StatusResponse) GetSourceOk() (*StatusChainDetail, bool)
GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.
func (*StatusResponse) GetStatus ¶
func (o *StatusResponse) GetStatus() StatusEnum
GetStatus returns the Status field value
func (*StatusResponse) GetStatusOk ¶
func (o *StatusResponse) GetStatusOk() (*StatusEnum, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*StatusResponse) GetTarget ¶
func (o *StatusResponse) GetTarget() StatusChainDetail
GetTarget returns the Target field value if set, zero value otherwise.
func (*StatusResponse) GetTargetOk ¶
func (o *StatusResponse) GetTargetOk() (*StatusChainDetail, bool)
GetTargetOk returns a tuple with the Target field value if set, nil otherwise and a boolean to check if the value has been set.
func (*StatusResponse) HasTarget ¶
func (o *StatusResponse) HasTarget() bool
HasTarget returns a boolean if a field has been set.
func (StatusResponse) MarshalJSON ¶
func (o StatusResponse) MarshalJSON() ([]byte, error)
func (*StatusResponse) SetSource ¶
func (o *StatusResponse) SetSource(v StatusChainDetail)
SetSource sets field value
func (*StatusResponse) SetStatus ¶
func (o *StatusResponse) SetStatus(v StatusEnum)
SetStatus sets field value
func (*StatusResponse) SetTarget ¶
func (o *StatusResponse) SetTarget(v StatusChainDetail)
SetTarget gets a reference to the given StatusChainDetail and assigns it to the Target field.
func (StatusResponse) ToMap ¶
func (o StatusResponse) ToMap() (map[string]interface{}, error)
func (*StatusResponse) UnmarshalJSON ¶
func (o *StatusResponse) UnmarshalJSON(data []byte) (err error)
type Tags ¶
type Tags struct { }
Tags A list of tags which can be associated with a token.
func NewTags ¶
func NewTags() *Tags
NewTags instantiates a new Tags object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTagsWithDefaults ¶
func NewTagsWithDefaults() *Tags
NewTagsWithDefaults instantiates a new Tags object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (Tags) MarshalJSON ¶
func (*Tags) UnmarshalJSON ¶
type Token ¶
type Token struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The address of an account. Address string `json:"address"` // The CAIP-2 identifier for a blockchain. Name string `json:"name"` // The symbol of the token Symbol string `json:"symbol"` // How many decimals the token supports Decimals int32 `json:"decimals"` // The URI for the logo or icon of a token, chain, or DeFi project. LogoURI string `json:"logoURI"` Tags Tags `json:"tags"` // The price of the asset or token in US Dollars. PriceUSD *float64 `json:"priceUSD,omitempty"` Extensions Extensions `json:"extensions"` }
Token The metadata for a supported token.
func NewToken ¶
func NewToken(chainID string, address string, name string, symbol string, decimals int32, logoURI string, tags Tags, extensions Extensions) *Token
NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenWithDefaults ¶
func NewTokenWithDefaults() *Token
NewTokenWithDefaults instantiates a new Token object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Token) GetAddress ¶
GetAddress returns the Address field value
func (*Token) GetAddressOk ¶
GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.
func (*Token) GetChainID ¶
GetChainID returns the ChainID field value
func (*Token) GetChainIDOk ¶
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*Token) GetDecimals ¶
GetDecimals returns the Decimals field value
func (*Token) GetDecimalsOk ¶
GetDecimalsOk returns a tuple with the Decimals field value and a boolean to check if the value has been set.
func (*Token) GetExtensions ¶
func (o *Token) GetExtensions() Extensions
GetExtensions returns the Extensions field value
func (*Token) GetExtensionsOk ¶
func (o *Token) GetExtensionsOk() (*Extensions, bool)
GetExtensionsOk returns a tuple with the Extensions field value and a boolean to check if the value has been set.
func (*Token) GetLogoURI ¶
GetLogoURI returns the LogoURI field value
func (*Token) GetLogoURIOk ¶
GetLogoURIOk returns a tuple with the LogoURI field value and a boolean to check if the value has been set.
func (*Token) GetNameOk ¶
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (*Token) GetPriceUSD ¶
GetPriceUSD returns the PriceUSD field value if set, zero value otherwise.
func (*Token) GetPriceUSDOk ¶
GetPriceUSDOk returns a tuple with the PriceUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Token) GetSymbolOk ¶
GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.
func (*Token) GetTagsOk ¶
GetTagsOk returns a tuple with the Tags field value and a boolean to check if the value has been set.
func (*Token) HasPriceUSD ¶
HasPriceUSD returns a boolean if a field has been set.
func (Token) MarshalJSON ¶
func (*Token) SetExtensions ¶
func (o *Token) SetExtensions(v Extensions)
SetExtensions sets field value
func (*Token) SetPriceUSD ¶
SetPriceUSD gets a reference to the given float64 and assigns it to the PriceUSD field.
func (*Token) UnmarshalJSON ¶
type TokenAmount ¶
type TokenAmount struct { // The amount of a token represented as a string. Amount string `json:"amount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a decimal number. AmountUSD *float32 `json:"amountUSD,omitempty"` Token Token `json:"token"` }
TokenAmount A token and its corresponding amount.
func NewTokenAmount ¶
func NewTokenAmount(amount string, token Token) *TokenAmount
NewTokenAmount instantiates a new TokenAmount object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenAmountWithDefaults ¶
func NewTokenAmountWithDefaults() *TokenAmount
NewTokenAmountWithDefaults instantiates a new TokenAmount object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TokenAmount) GetAmount ¶
func (o *TokenAmount) GetAmount() string
GetAmount returns the Amount field value
func (*TokenAmount) GetAmountOk ¶
func (o *TokenAmount) GetAmountOk() (*string, bool)
GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.
func (*TokenAmount) GetAmountUSD ¶
func (o *TokenAmount) GetAmountUSD() float32
GetAmountUSD returns the AmountUSD field value if set, zero value otherwise.
func (*TokenAmount) GetAmountUSDOk ¶
func (o *TokenAmount) GetAmountUSDOk() (*float32, bool)
GetAmountUSDOk returns a tuple with the AmountUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*TokenAmount) GetToken ¶
func (o *TokenAmount) GetToken() Token
GetToken returns the Token field value
func (*TokenAmount) GetTokenOk ¶
func (o *TokenAmount) GetTokenOk() (*Token, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (*TokenAmount) HasAmountUSD ¶
func (o *TokenAmount) HasAmountUSD() bool
HasAmountUSD returns a boolean if a field has been set.
func (TokenAmount) MarshalJSON ¶
func (o TokenAmount) MarshalJSON() ([]byte, error)
func (*TokenAmount) SetAmount ¶
func (o *TokenAmount) SetAmount(v string)
SetAmount sets field value
func (*TokenAmount) SetAmountUSD ¶
func (o *TokenAmount) SetAmountUSD(v float32)
SetAmountUSD gets a reference to the given float32 and assigns it to the AmountUSD field.
func (TokenAmount) ToMap ¶
func (o TokenAmount) ToMap() (map[string]interface{}, error)
func (*TokenAmount) UnmarshalJSON ¶
func (o *TokenAmount) UnmarshalJSON(data []byte) (err error)
type TokenApprovalData ¶
type TokenApprovalData struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainId string `json:"chainId" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The address of an account. AccountAddress string `json:"accountAddress"` // The address of an account. SpenderAddress string `json:"spenderAddress"` Token Token `json:"token"` // The amount of a token represented as a string. Amount string `json:"amount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a string. AmountUSD *string `json:"amountUSD,omitempty" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a string. ValueAtRisk string `json:"valueAtRisk" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a string. ValueAtRiskUSD *string `json:"valueAtRiskUSD,omitempty" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The address of an account. SpenderName *string `json:"spenderName,omitempty"` }
TokenApprovalData Details about a token approval for an account and spender.
func NewTokenApprovalData ¶
func NewTokenApprovalData(chainId string, accountAddress string, spenderAddress string, token Token, amount string, valueAtRisk string) *TokenApprovalData
NewTokenApprovalData instantiates a new TokenApprovalData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenApprovalDataWithDefaults ¶
func NewTokenApprovalDataWithDefaults() *TokenApprovalData
NewTokenApprovalDataWithDefaults instantiates a new TokenApprovalData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TokenApprovalData) GetAccountAddress ¶
func (o *TokenApprovalData) GetAccountAddress() string
GetAccountAddress returns the AccountAddress field value
func (*TokenApprovalData) GetAccountAddressOk ¶
func (o *TokenApprovalData) GetAccountAddressOk() (*string, bool)
GetAccountAddressOk returns a tuple with the AccountAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalData) GetAmount ¶
func (o *TokenApprovalData) GetAmount() string
GetAmount returns the Amount field value
func (*TokenApprovalData) GetAmountOk ¶
func (o *TokenApprovalData) GetAmountOk() (*string, bool)
GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.
func (*TokenApprovalData) GetAmountUSD ¶
func (o *TokenApprovalData) GetAmountUSD() string
GetAmountUSD returns the AmountUSD field value if set, zero value otherwise.
func (*TokenApprovalData) GetAmountUSDOk ¶
func (o *TokenApprovalData) GetAmountUSDOk() (*string, bool)
GetAmountUSDOk returns a tuple with the AmountUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*TokenApprovalData) GetChainId ¶
func (o *TokenApprovalData) GetChainId() string
GetChainId returns the ChainId field value
func (*TokenApprovalData) GetChainIdOk ¶
func (o *TokenApprovalData) GetChainIdOk() (*string, bool)
GetChainIdOk returns a tuple with the ChainId field value and a boolean to check if the value has been set.
func (*TokenApprovalData) GetSpenderAddress ¶
func (o *TokenApprovalData) GetSpenderAddress() string
GetSpenderAddress returns the SpenderAddress field value
func (*TokenApprovalData) GetSpenderAddressOk ¶
func (o *TokenApprovalData) GetSpenderAddressOk() (*string, bool)
GetSpenderAddressOk returns a tuple with the SpenderAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalData) GetSpenderName ¶
func (o *TokenApprovalData) GetSpenderName() string
GetSpenderName returns the SpenderName field value if set, zero value otherwise.
func (*TokenApprovalData) GetSpenderNameOk ¶
func (o *TokenApprovalData) GetSpenderNameOk() (*string, bool)
GetSpenderNameOk returns a tuple with the SpenderName field value if set, nil otherwise and a boolean to check if the value has been set.
func (*TokenApprovalData) GetToken ¶
func (o *TokenApprovalData) GetToken() Token
GetToken returns the Token field value
func (*TokenApprovalData) GetTokenOk ¶
func (o *TokenApprovalData) GetTokenOk() (*Token, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (*TokenApprovalData) GetValueAtRisk ¶
func (o *TokenApprovalData) GetValueAtRisk() string
GetValueAtRisk returns the ValueAtRisk field value
func (*TokenApprovalData) GetValueAtRiskOk ¶
func (o *TokenApprovalData) GetValueAtRiskOk() (*string, bool)
GetValueAtRiskOk returns a tuple with the ValueAtRisk field value and a boolean to check if the value has been set.
func (*TokenApprovalData) GetValueAtRiskUSD ¶
func (o *TokenApprovalData) GetValueAtRiskUSD() string
GetValueAtRiskUSD returns the ValueAtRiskUSD field value if set, zero value otherwise.
func (*TokenApprovalData) GetValueAtRiskUSDOk ¶
func (o *TokenApprovalData) GetValueAtRiskUSDOk() (*string, bool)
GetValueAtRiskUSDOk returns a tuple with the ValueAtRiskUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*TokenApprovalData) HasAmountUSD ¶
func (o *TokenApprovalData) HasAmountUSD() bool
HasAmountUSD returns a boolean if a field has been set.
func (*TokenApprovalData) HasSpenderName ¶
func (o *TokenApprovalData) HasSpenderName() bool
HasSpenderName returns a boolean if a field has been set.
func (*TokenApprovalData) HasValueAtRiskUSD ¶
func (o *TokenApprovalData) HasValueAtRiskUSD() bool
HasValueAtRiskUSD returns a boolean if a field has been set.
func (TokenApprovalData) MarshalJSON ¶
func (o TokenApprovalData) MarshalJSON() ([]byte, error)
func (*TokenApprovalData) SetAccountAddress ¶
func (o *TokenApprovalData) SetAccountAddress(v string)
SetAccountAddress sets field value
func (*TokenApprovalData) SetAmount ¶
func (o *TokenApprovalData) SetAmount(v string)
SetAmount sets field value
func (*TokenApprovalData) SetAmountUSD ¶
func (o *TokenApprovalData) SetAmountUSD(v string)
SetAmountUSD gets a reference to the given string and assigns it to the AmountUSD field.
func (*TokenApprovalData) SetChainId ¶
func (o *TokenApprovalData) SetChainId(v string)
SetChainId sets field value
func (*TokenApprovalData) SetSpenderAddress ¶
func (o *TokenApprovalData) SetSpenderAddress(v string)
SetSpenderAddress sets field value
func (*TokenApprovalData) SetSpenderName ¶
func (o *TokenApprovalData) SetSpenderName(v string)
SetSpenderName gets a reference to the given string and assigns it to the SpenderName field.
func (*TokenApprovalData) SetToken ¶
func (o *TokenApprovalData) SetToken(v Token)
SetToken sets field value
func (*TokenApprovalData) SetValueAtRisk ¶
func (o *TokenApprovalData) SetValueAtRisk(v string)
SetValueAtRisk sets field value
func (*TokenApprovalData) SetValueAtRiskUSD ¶
func (o *TokenApprovalData) SetValueAtRiskUSD(v string)
SetValueAtRiskUSD gets a reference to the given string and assigns it to the ValueAtRiskUSD field.
func (TokenApprovalData) ToMap ¶
func (o TokenApprovalData) ToMap() (map[string]interface{}, error)
func (*TokenApprovalData) UnmarshalJSON ¶
func (o *TokenApprovalData) UnmarshalJSON(data []byte) (err error)
type TokenApprovalDeletion ¶
type TokenApprovalDeletion struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The address of an account. AccountAddress string `json:"accountAddress"` // The address of an account. SpenderAddress string `json:"spenderAddress"` // The address of an account. TokenAddress string `json:"tokenAddress"` }
TokenApprovalDeletion The address of an account.
func NewTokenApprovalDeletion ¶
func NewTokenApprovalDeletion(chainID string, accountAddress string, spenderAddress string, tokenAddress string) *TokenApprovalDeletion
NewTokenApprovalDeletion instantiates a new TokenApprovalDeletion object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenApprovalDeletionWithDefaults ¶
func NewTokenApprovalDeletionWithDefaults() *TokenApprovalDeletion
NewTokenApprovalDeletionWithDefaults instantiates a new TokenApprovalDeletion object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TokenApprovalDeletion) GetAccountAddress ¶
func (o *TokenApprovalDeletion) GetAccountAddress() string
GetAccountAddress returns the AccountAddress field value
func (*TokenApprovalDeletion) GetAccountAddressOk ¶
func (o *TokenApprovalDeletion) GetAccountAddressOk() (*string, bool)
GetAccountAddressOk returns a tuple with the AccountAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalDeletion) GetChainID ¶
func (o *TokenApprovalDeletion) GetChainID() string
GetChainID returns the ChainID field value
func (*TokenApprovalDeletion) GetChainIDOk ¶
func (o *TokenApprovalDeletion) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*TokenApprovalDeletion) GetSpenderAddress ¶
func (o *TokenApprovalDeletion) GetSpenderAddress() string
GetSpenderAddress returns the SpenderAddress field value
func (*TokenApprovalDeletion) GetSpenderAddressOk ¶
func (o *TokenApprovalDeletion) GetSpenderAddressOk() (*string, bool)
GetSpenderAddressOk returns a tuple with the SpenderAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalDeletion) GetTokenAddress ¶
func (o *TokenApprovalDeletion) GetTokenAddress() string
GetTokenAddress returns the TokenAddress field value
func (*TokenApprovalDeletion) GetTokenAddressOk ¶
func (o *TokenApprovalDeletion) GetTokenAddressOk() (*string, bool)
GetTokenAddressOk returns a tuple with the TokenAddress field value and a boolean to check if the value has been set.
func (TokenApprovalDeletion) MarshalJSON ¶
func (o TokenApprovalDeletion) MarshalJSON() ([]byte, error)
func (*TokenApprovalDeletion) SetAccountAddress ¶
func (o *TokenApprovalDeletion) SetAccountAddress(v string)
SetAccountAddress sets field value
func (*TokenApprovalDeletion) SetChainID ¶
func (o *TokenApprovalDeletion) SetChainID(v string)
SetChainID sets field value
func (*TokenApprovalDeletion) SetSpenderAddress ¶
func (o *TokenApprovalDeletion) SetSpenderAddress(v string)
SetSpenderAddress sets field value
func (*TokenApprovalDeletion) SetTokenAddress ¶
func (o *TokenApprovalDeletion) SetTokenAddress(v string)
SetTokenAddress sets field value
func (TokenApprovalDeletion) ToMap ¶
func (o TokenApprovalDeletion) ToMap() (map[string]interface{}, error)
func (*TokenApprovalDeletion) UnmarshalJSON ¶
func (o *TokenApprovalDeletion) UnmarshalJSON(data []byte) (err error)
type TokenApprovalModification ¶
type TokenApprovalModification struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The address of an account. AccountAddress string `json:"accountAddress"` // The address of an account. SpenderAddress string `json:"spenderAddress"` // The address of an account. TokenAddress string `json:"tokenAddress"` // The amount of a token represented as a string. ToApprovedAmount string `json:"toApprovedAmount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` }
TokenApprovalModification The address of an account.
func NewTokenApprovalModification ¶
func NewTokenApprovalModification(chainID string, accountAddress string, spenderAddress string, tokenAddress string, toApprovedAmount string) *TokenApprovalModification
NewTokenApprovalModification instantiates a new TokenApprovalModification object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenApprovalModificationWithDefaults ¶
func NewTokenApprovalModificationWithDefaults() *TokenApprovalModification
NewTokenApprovalModificationWithDefaults instantiates a new TokenApprovalModification object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TokenApprovalModification) GetAccountAddress ¶
func (o *TokenApprovalModification) GetAccountAddress() string
GetAccountAddress returns the AccountAddress field value
func (*TokenApprovalModification) GetAccountAddressOk ¶
func (o *TokenApprovalModification) GetAccountAddressOk() (*string, bool)
GetAccountAddressOk returns a tuple with the AccountAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalModification) GetChainID ¶
func (o *TokenApprovalModification) GetChainID() string
GetChainID returns the ChainID field value
func (*TokenApprovalModification) GetChainIDOk ¶
func (o *TokenApprovalModification) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*TokenApprovalModification) GetSpenderAddress ¶
func (o *TokenApprovalModification) GetSpenderAddress() string
GetSpenderAddress returns the SpenderAddress field value
func (*TokenApprovalModification) GetSpenderAddressOk ¶
func (o *TokenApprovalModification) GetSpenderAddressOk() (*string, bool)
GetSpenderAddressOk returns a tuple with the SpenderAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalModification) GetToApprovedAmount ¶
func (o *TokenApprovalModification) GetToApprovedAmount() string
GetToApprovedAmount returns the ToApprovedAmount field value
func (*TokenApprovalModification) GetToApprovedAmountOk ¶
func (o *TokenApprovalModification) GetToApprovedAmountOk() (*string, bool)
GetToApprovedAmountOk returns a tuple with the ToApprovedAmount field value and a boolean to check if the value has been set.
func (*TokenApprovalModification) GetTokenAddress ¶
func (o *TokenApprovalModification) GetTokenAddress() string
GetTokenAddress returns the TokenAddress field value
func (*TokenApprovalModification) GetTokenAddressOk ¶
func (o *TokenApprovalModification) GetTokenAddressOk() (*string, bool)
GetTokenAddressOk returns a tuple with the TokenAddress field value and a boolean to check if the value has been set.
func (TokenApprovalModification) MarshalJSON ¶
func (o TokenApprovalModification) MarshalJSON() ([]byte, error)
func (*TokenApprovalModification) SetAccountAddress ¶
func (o *TokenApprovalModification) SetAccountAddress(v string)
SetAccountAddress sets field value
func (*TokenApprovalModification) SetChainID ¶
func (o *TokenApprovalModification) SetChainID(v string)
SetChainID sets field value
func (*TokenApprovalModification) SetSpenderAddress ¶
func (o *TokenApprovalModification) SetSpenderAddress(v string)
SetSpenderAddress sets field value
func (*TokenApprovalModification) SetToApprovedAmount ¶
func (o *TokenApprovalModification) SetToApprovedAmount(v string)
SetToApprovedAmount sets field value
func (*TokenApprovalModification) SetTokenAddress ¶
func (o *TokenApprovalModification) SetTokenAddress(v string)
SetTokenAddress sets field value
func (TokenApprovalModification) ToMap ¶
func (o TokenApprovalModification) ToMap() (map[string]interface{}, error)
func (*TokenApprovalModification) UnmarshalJSON ¶
func (o *TokenApprovalModification) UnmarshalJSON(data []byte) (err error)
type TokenApprovalResponse ¶
type TokenApprovalResponse struct { // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The address of an account. AccountAddress string `json:"accountAddress"` // The address of an account. SpenderAddress string `json:"spenderAddress"` Token Token `json:"token"` // The amount of a token represented as a string. FromApprovedAmount string `json:"fromApprovedAmount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` // The amount of a token represented as a string. ToApprovedAmount string `json:"toApprovedAmount" validate:"regexp=^([1-9][0-9]*|0)(\\\\.[0-9]+)?$"` TransactionRequest TransactionRequest `json:"transactionRequest"` }
TokenApprovalResponse A response containing details about modifying or deleting a token approval.
func NewTokenApprovalResponse ¶
func NewTokenApprovalResponse(chainID string, accountAddress string, spenderAddress string, token Token, fromApprovedAmount string, toApprovedAmount string, transactionRequest TransactionRequest) *TokenApprovalResponse
NewTokenApprovalResponse instantiates a new TokenApprovalResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenApprovalResponseWithDefaults ¶
func NewTokenApprovalResponseWithDefaults() *TokenApprovalResponse
NewTokenApprovalResponseWithDefaults instantiates a new TokenApprovalResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TokenApprovalResponse) GetAccountAddress ¶
func (o *TokenApprovalResponse) GetAccountAddress() string
GetAccountAddress returns the AccountAddress field value
func (*TokenApprovalResponse) GetAccountAddressOk ¶
func (o *TokenApprovalResponse) GetAccountAddressOk() (*string, bool)
GetAccountAddressOk returns a tuple with the AccountAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalResponse) GetChainID ¶
func (o *TokenApprovalResponse) GetChainID() string
GetChainID returns the ChainID field value
func (*TokenApprovalResponse) GetChainIDOk ¶
func (o *TokenApprovalResponse) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*TokenApprovalResponse) GetFromApprovedAmount ¶
func (o *TokenApprovalResponse) GetFromApprovedAmount() string
GetFromApprovedAmount returns the FromApprovedAmount field value
func (*TokenApprovalResponse) GetFromApprovedAmountOk ¶
func (o *TokenApprovalResponse) GetFromApprovedAmountOk() (*string, bool)
GetFromApprovedAmountOk returns a tuple with the FromApprovedAmount field value and a boolean to check if the value has been set.
func (*TokenApprovalResponse) GetSpenderAddress ¶
func (o *TokenApprovalResponse) GetSpenderAddress() string
GetSpenderAddress returns the SpenderAddress field value
func (*TokenApprovalResponse) GetSpenderAddressOk ¶
func (o *TokenApprovalResponse) GetSpenderAddressOk() (*string, bool)
GetSpenderAddressOk returns a tuple with the SpenderAddress field value and a boolean to check if the value has been set.
func (*TokenApprovalResponse) GetToApprovedAmount ¶
func (o *TokenApprovalResponse) GetToApprovedAmount() string
GetToApprovedAmount returns the ToApprovedAmount field value
func (*TokenApprovalResponse) GetToApprovedAmountOk ¶
func (o *TokenApprovalResponse) GetToApprovedAmountOk() (*string, bool)
GetToApprovedAmountOk returns a tuple with the ToApprovedAmount field value and a boolean to check if the value has been set.
func (*TokenApprovalResponse) GetToken ¶
func (o *TokenApprovalResponse) GetToken() Token
GetToken returns the Token field value
func (*TokenApprovalResponse) GetTokenOk ¶
func (o *TokenApprovalResponse) GetTokenOk() (*Token, bool)
GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.
func (*TokenApprovalResponse) GetTransactionRequest ¶
func (o *TokenApprovalResponse) GetTransactionRequest() TransactionRequest
GetTransactionRequest returns the TransactionRequest field value
func (*TokenApprovalResponse) GetTransactionRequestOk ¶
func (o *TokenApprovalResponse) GetTransactionRequestOk() (*TransactionRequest, bool)
GetTransactionRequestOk returns a tuple with the TransactionRequest field value and a boolean to check if the value has been set.
func (TokenApprovalResponse) MarshalJSON ¶
func (o TokenApprovalResponse) MarshalJSON() ([]byte, error)
func (*TokenApprovalResponse) SetAccountAddress ¶
func (o *TokenApprovalResponse) SetAccountAddress(v string)
SetAccountAddress sets field value
func (*TokenApprovalResponse) SetChainID ¶
func (o *TokenApprovalResponse) SetChainID(v string)
SetChainID sets field value
func (*TokenApprovalResponse) SetFromApprovedAmount ¶
func (o *TokenApprovalResponse) SetFromApprovedAmount(v string)
SetFromApprovedAmount sets field value
func (*TokenApprovalResponse) SetSpenderAddress ¶
func (o *TokenApprovalResponse) SetSpenderAddress(v string)
SetSpenderAddress sets field value
func (*TokenApprovalResponse) SetToApprovedAmount ¶
func (o *TokenApprovalResponse) SetToApprovedAmount(v string)
SetToApprovedAmount sets field value
func (*TokenApprovalResponse) SetToken ¶
func (o *TokenApprovalResponse) SetToken(v Token)
SetToken sets field value
func (*TokenApprovalResponse) SetTransactionRequest ¶
func (o *TokenApprovalResponse) SetTransactionRequest(v TransactionRequest)
SetTransactionRequest sets field value
func (TokenApprovalResponse) ToMap ¶
func (o TokenApprovalResponse) ToMap() (map[string]interface{}, error)
func (*TokenApprovalResponse) UnmarshalJSON ¶
func (o *TokenApprovalResponse) UnmarshalJSON(data []byte) (err error)
type TokenList ¶
type TokenList struct {
AdditionalProperties map[string]interface{}
}
TokenList A collection of supported tokens grouped by chain ID.
func NewTokenList ¶
func NewTokenList() *TokenList
NewTokenList instantiates a new TokenList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokenListWithDefaults ¶
func NewTokenListWithDefaults() *TokenList
NewTokenListWithDefaults instantiates a new TokenList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (TokenList) MarshalJSON ¶
func (*TokenList) UnmarshalJSON ¶
type Tokens ¶
type Tokens struct { }
Tokens A list of supported tokens and their metadata.
func NewTokens ¶
func NewTokens() *Tokens
NewTokens instantiates a new Tokens object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTokensWithDefaults ¶
func NewTokensWithDefaults() *Tokens
NewTokensWithDefaults instantiates a new Tokens object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (Tokens) MarshalJSON ¶
func (*Tokens) UnmarshalJSON ¶
type TokensAPIService ¶
type TokensAPIService service
TokensAPIService TokensAPI service
func (*TokensAPIService) GetTokenTags ¶
func (a *TokensAPIService) GetTokenTags(ctx context.Context) ApiGetTokenTagsRequest
GetTokenTags Get list of token tags
Retrieves a list of available tags that can be associated with tokens. These tags can be used to categorize or filter tokens based on certain properties or characteristics.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetTokenTagsRequest
func (*TokensAPIService) GetTokenTagsExecute ¶
func (a *TokensAPIService) GetTokenTagsExecute(r ApiGetTokenTagsRequest) (*Tags, *http.Response, error)
Execute executes the request
@return Tags
func (*TokensAPIService) GetTokens ¶
func (a *TokensAPIService) GetTokens(ctx context.Context) ApiGetTokensRequest
GetTokens Get list of supported tokens with metadata
Retrieves a list of supported tokens along with their metadata, such as the token's name, symbol, decimals, logo URI, and associated tags. This information is useful for displaying token details and allowing users to search or filter tokens based on specific criteria.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetTokensRequest
func (*TokensAPIService) GetTokensExecute ¶
func (a *TokensAPIService) GetTokensExecute(r ApiGetTokensRequest) (*TokenList, *http.Response, error)
Execute executes the request
@return TokenList
type Transaction ¶
type Transaction struct { // A timestamp represented in ISO 8601 format. Timestamp time.Time `json:"timestamp"` Type TransactionType `json:"type"` // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The number of a block. BlockNumber int32 `json:"blockNumber"` // The hash of a transaction or block. BlockHash string `json:"blockHash"` // The hash of a transaction or block. TxHash string `json:"txHash"` // A link to a block explorer for a transaction or address. ExplorerLink string `json:"explorerLink"` Status TransactionStatus `json:"status"` // A link to the Tenderly Explorer for a transaction. Tenderly *string `json:"tenderly,omitempty"` FromAccount Account `json:"fromAccount"` ToAccount Account `json:"toAccount"` TokenAmount TokenAmount `json:"tokenAmount"` GasDetails GasDetails `json:"gasDetails"` // The CAIP-2 identifier for a blockchain. Transfers []Transfer `json:"transfers"` }
Transaction Details about a single transaction.
func NewTransaction ¶
func NewTransaction(timestamp time.Time, type_ TransactionType, chainID string, blockNumber int32, blockHash string, txHash string, explorerLink string, status TransactionStatus, fromAccount Account, toAccount Account, tokenAmount TokenAmount, gasDetails GasDetails, transfers []Transfer) *Transaction
NewTransaction instantiates a new Transaction object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTransactionWithDefaults ¶
func NewTransactionWithDefaults() *Transaction
NewTransactionWithDefaults instantiates a new Transaction object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Transaction) GetBlockHash ¶
func (o *Transaction) GetBlockHash() string
GetBlockHash returns the BlockHash field value
func (*Transaction) GetBlockHashOk ¶
func (o *Transaction) GetBlockHashOk() (*string, bool)
GetBlockHashOk returns a tuple with the BlockHash field value and a boolean to check if the value has been set.
func (*Transaction) GetBlockNumber ¶
func (o *Transaction) GetBlockNumber() int32
GetBlockNumber returns the BlockNumber field value
func (*Transaction) GetBlockNumberOk ¶
func (o *Transaction) GetBlockNumberOk() (*int32, bool)
GetBlockNumberOk returns a tuple with the BlockNumber field value and a boolean to check if the value has been set.
func (*Transaction) GetChainID ¶
func (o *Transaction) GetChainID() string
GetChainID returns the ChainID field value
func (*Transaction) GetChainIDOk ¶
func (o *Transaction) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*Transaction) GetExplorerLink ¶
func (o *Transaction) GetExplorerLink() string
GetExplorerLink returns the ExplorerLink field value
func (*Transaction) GetExplorerLinkOk ¶
func (o *Transaction) GetExplorerLinkOk() (*string, bool)
GetExplorerLinkOk returns a tuple with the ExplorerLink field value and a boolean to check if the value has been set.
func (*Transaction) GetFromAccount ¶
func (o *Transaction) GetFromAccount() Account
GetFromAccount returns the FromAccount field value
func (*Transaction) GetFromAccountOk ¶
func (o *Transaction) GetFromAccountOk() (*Account, bool)
GetFromAccountOk returns a tuple with the FromAccount field value and a boolean to check if the value has been set.
func (*Transaction) GetGasDetails ¶
func (o *Transaction) GetGasDetails() GasDetails
GetGasDetails returns the GasDetails field value
func (*Transaction) GetGasDetailsOk ¶
func (o *Transaction) GetGasDetailsOk() (*GasDetails, bool)
GetGasDetailsOk returns a tuple with the GasDetails field value and a boolean to check if the value has been set.
func (*Transaction) GetStatus ¶
func (o *Transaction) GetStatus() TransactionStatus
GetStatus returns the Status field value
func (*Transaction) GetStatusOk ¶
func (o *Transaction) GetStatusOk() (*TransactionStatus, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*Transaction) GetTenderly ¶
func (o *Transaction) GetTenderly() string
GetTenderly returns the Tenderly field value if set, zero value otherwise.
func (*Transaction) GetTenderlyOk ¶
func (o *Transaction) GetTenderlyOk() (*string, bool)
GetTenderlyOk returns a tuple with the Tenderly field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) GetTimestamp ¶
func (o *Transaction) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value
func (*Transaction) GetTimestampOk ¶
func (o *Transaction) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.
func (*Transaction) GetToAccount ¶
func (o *Transaction) GetToAccount() Account
GetToAccount returns the ToAccount field value
func (*Transaction) GetToAccountOk ¶
func (o *Transaction) GetToAccountOk() (*Account, bool)
GetToAccountOk returns a tuple with the ToAccount field value and a boolean to check if the value has been set.
func (*Transaction) GetTokenAmount ¶
func (o *Transaction) GetTokenAmount() TokenAmount
GetTokenAmount returns the TokenAmount field value
func (*Transaction) GetTokenAmountOk ¶
func (o *Transaction) GetTokenAmountOk() (*TokenAmount, bool)
GetTokenAmountOk returns a tuple with the TokenAmount field value and a boolean to check if the value has been set.
func (*Transaction) GetTransfers ¶
func (o *Transaction) GetTransfers() []Transfer
GetTransfers returns the Transfers field value
func (*Transaction) GetTransfersOk ¶
func (o *Transaction) GetTransfersOk() ([]Transfer, bool)
GetTransfersOk returns a tuple with the Transfers field value and a boolean to check if the value has been set.
func (*Transaction) GetTxHash ¶
func (o *Transaction) GetTxHash() string
GetTxHash returns the TxHash field value
func (*Transaction) GetTxHashOk ¶
func (o *Transaction) GetTxHashOk() (*string, bool)
GetTxHashOk returns a tuple with the TxHash field value and a boolean to check if the value has been set.
func (*Transaction) GetType ¶
func (o *Transaction) GetType() TransactionType
GetType returns the Type field value
func (*Transaction) GetTypeOk ¶
func (o *Transaction) GetTypeOk() (*TransactionType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*Transaction) HasTenderly ¶
func (o *Transaction) HasTenderly() bool
HasTenderly returns a boolean if a field has been set.
func (Transaction) MarshalJSON ¶
func (o Transaction) MarshalJSON() ([]byte, error)
func (*Transaction) SetBlockHash ¶
func (o *Transaction) SetBlockHash(v string)
SetBlockHash sets field value
func (*Transaction) SetBlockNumber ¶
func (o *Transaction) SetBlockNumber(v int32)
SetBlockNumber sets field value
func (*Transaction) SetChainID ¶
func (o *Transaction) SetChainID(v string)
SetChainID sets field value
func (*Transaction) SetExplorerLink ¶
func (o *Transaction) SetExplorerLink(v string)
SetExplorerLink sets field value
func (*Transaction) SetFromAccount ¶
func (o *Transaction) SetFromAccount(v Account)
SetFromAccount sets field value
func (*Transaction) SetGasDetails ¶
func (o *Transaction) SetGasDetails(v GasDetails)
SetGasDetails sets field value
func (*Transaction) SetStatus ¶
func (o *Transaction) SetStatus(v TransactionStatus)
SetStatus sets field value
func (*Transaction) SetTenderly ¶
func (o *Transaction) SetTenderly(v string)
SetTenderly gets a reference to the given string and assigns it to the Tenderly field.
func (*Transaction) SetTimestamp ¶
func (o *Transaction) SetTimestamp(v time.Time)
SetTimestamp sets field value
func (*Transaction) SetToAccount ¶
func (o *Transaction) SetToAccount(v Account)
SetToAccount sets field value
func (*Transaction) SetTokenAmount ¶
func (o *Transaction) SetTokenAmount(v TokenAmount)
SetTokenAmount sets field value
func (*Transaction) SetTransfers ¶
func (o *Transaction) SetTransfers(v []Transfer)
SetTransfers sets field value
func (*Transaction) SetTxHash ¶
func (o *Transaction) SetTxHash(v string)
SetTxHash sets field value
func (*Transaction) SetType ¶
func (o *Transaction) SetType(v TransactionType)
SetType sets field value
func (Transaction) ToMap ¶
func (o Transaction) ToMap() (map[string]interface{}, error)
func (*Transaction) UnmarshalJSON ¶
func (o *Transaction) UnmarshalJSON(data []byte) (err error)
type TransactionRequest ¶
type TransactionRequest struct { // Data for smart contract interactions. Data string `json:"data"` // The address of an account. To string `json:"to"` // The value of native token transfered in this transaction in hexadecimal wei. Value string `json:"value"` // The address of an account. From string `json:"from"` // The unique identifier of a blockchain in CAIP-2 notation. ChainID string `json:"chainID" validate:"regexp=^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"` // The CAIP-2 identifier for a blockchain. GasLimit int32 `json:"gasLimit"` }
TransactionRequest The details of a transaction request to be signed.
func NewTransactionRequest ¶
func NewTransactionRequest(data string, to string, value string, from string, chainID string, gasLimit int32) *TransactionRequest
NewTransactionRequest instantiates a new TransactionRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTransactionRequestWithDefaults ¶
func NewTransactionRequestWithDefaults() *TransactionRequest
NewTransactionRequestWithDefaults instantiates a new TransactionRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TransactionRequest) GetChainID ¶
func (o *TransactionRequest) GetChainID() string
GetChainID returns the ChainID field value
func (*TransactionRequest) GetChainIDOk ¶
func (o *TransactionRequest) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.
func (*TransactionRequest) GetData ¶
func (o *TransactionRequest) GetData() string
GetData returns the Data field value
func (*TransactionRequest) GetDataOk ¶
func (o *TransactionRequest) GetDataOk() (*string, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (*TransactionRequest) GetFrom ¶
func (o *TransactionRequest) GetFrom() string
GetFrom returns the From field value
func (*TransactionRequest) GetFromOk ¶
func (o *TransactionRequest) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value and a boolean to check if the value has been set.
func (*TransactionRequest) GetGasLimit ¶
func (o *TransactionRequest) GetGasLimit() int32
GetGasLimit returns the GasLimit field value
func (*TransactionRequest) GetGasLimitOk ¶
func (o *TransactionRequest) GetGasLimitOk() (*int32, bool)
GetGasLimitOk returns a tuple with the GasLimit field value and a boolean to check if the value has been set.
func (*TransactionRequest) GetTo ¶
func (o *TransactionRequest) GetTo() string
GetTo returns the To field value
func (*TransactionRequest) GetToOk ¶
func (o *TransactionRequest) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value and a boolean to check if the value has been set.
func (*TransactionRequest) GetValue ¶
func (o *TransactionRequest) GetValue() string
GetValue returns the Value field value
func (*TransactionRequest) GetValueOk ¶
func (o *TransactionRequest) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.
func (TransactionRequest) MarshalJSON ¶
func (o TransactionRequest) MarshalJSON() ([]byte, error)
func (*TransactionRequest) SetChainID ¶
func (o *TransactionRequest) SetChainID(v string)
SetChainID sets field value
func (*TransactionRequest) SetData ¶
func (o *TransactionRequest) SetData(v string)
SetData sets field value
func (*TransactionRequest) SetFrom ¶
func (o *TransactionRequest) SetFrom(v string)
SetFrom sets field value
func (*TransactionRequest) SetGasLimit ¶
func (o *TransactionRequest) SetGasLimit(v int32)
SetGasLimit sets field value
func (*TransactionRequest) SetTo ¶
func (o *TransactionRequest) SetTo(v string)
SetTo sets field value
func (*TransactionRequest) SetValue ¶
func (o *TransactionRequest) SetValue(v string)
SetValue sets field value
func (TransactionRequest) ToMap ¶
func (o TransactionRequest) ToMap() (map[string]interface{}, error)
func (*TransactionRequest) UnmarshalJSON ¶
func (o *TransactionRequest) UnmarshalJSON(data []byte) (err error)
type TransactionStatus ¶
type TransactionStatus string
TransactionStatus The status of a transaction (Confirmed or Error).
const ( CONFIRMED TransactionStatus = "Confirmed" ERROR TransactionStatus = "Error" )
List of TransactionStatus
func NewTransactionStatusFromValue ¶
func NewTransactionStatusFromValue(v string) (*TransactionStatus, error)
NewTransactionStatusFromValue returns a pointer to a valid TransactionStatus for the value passed as argument, or an error if the value passed is not allowed by the enum
func (TransactionStatus) IsValid ¶
func (v TransactionStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (TransactionStatus) Ptr ¶
func (v TransactionStatus) Ptr() *TransactionStatus
Ptr returns reference to TransactionStatus value
func (*TransactionStatus) UnmarshalJSON ¶
func (v *TransactionStatus) UnmarshalJSON(src []byte) error
type TransactionType ¶
type TransactionType string
TransactionType The type of a transaction (e.g., Swap, Approve, Transfer).
const ( SWAP TransactionType = "Swap" APPROVE TransactionType = "Approve" TRANSFER TransactionType = "Transfer" CONTRACT_CALL TransactionType = "ContractCall" UNKNOWN TransactionType = "Unknown" CONTRACT_CREATE TransactionType = "ContractCreate" )
List of TransactionType
func NewTransactionTypeFromValue ¶
func NewTransactionTypeFromValue(v string) (*TransactionType, error)
NewTransactionTypeFromValue returns a pointer to a valid TransactionType for the value passed as argument, or an error if the value passed is not allowed by the enum
func (TransactionType) IsValid ¶
func (v TransactionType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (TransactionType) Ptr ¶
func (v TransactionType) Ptr() *TransactionType
Ptr returns reference to TransactionType value
func (*TransactionType) UnmarshalJSON ¶
func (v *TransactionType) UnmarshalJSON(src []byte) error
type TransactionsAPIService ¶
type TransactionsAPIService service
TransactionsAPIService TransactionsAPI service
func (*TransactionsAPIService) GetTransactions ¶
func (a *TransactionsAPIService) GetTransactions(ctx context.Context) ApiGetTransactionsRequest
GetTransactions Get transaction history for an account
Retrieves the transaction history for a given account on a specified blockchain network. The response includes details about each transaction, such as the timestamp, transaction type, chain ID, block information, transaction hash, explorer links, status, involved accounts, token amounts, gas costs, and any associated token transfers. This endpoint allows users to review their past transactions and monitor their on-chain activity.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetTransactionsRequest
func (*TransactionsAPIService) GetTransactionsExecute ¶
func (a *TransactionsAPIService) GetTransactionsExecute(r ApiGetTransactionsRequest) (*TransactionsResponse, *http.Response, error)
Execute executes the request
@return TransactionsResponse
type TransactionsResponse ¶
type TransactionsResponse struct { // The next page of the paginated response. NextPage string `json:"nextPage"` // List of transactions. Items []Transaction `json:"items"` }
TransactionsResponse A response containing transaction details for an account.
func NewTransactionsResponse ¶
func NewTransactionsResponse(nextPage string, items []Transaction) *TransactionsResponse
NewTransactionsResponse instantiates a new TransactionsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTransactionsResponseWithDefaults ¶
func NewTransactionsResponseWithDefaults() *TransactionsResponse
NewTransactionsResponseWithDefaults instantiates a new TransactionsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*TransactionsResponse) GetItems ¶
func (o *TransactionsResponse) GetItems() []Transaction
GetItems returns the Items field value
func (*TransactionsResponse) GetItemsOk ¶
func (o *TransactionsResponse) GetItemsOk() ([]Transaction, bool)
GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.
func (*TransactionsResponse) GetNextPage ¶
func (o *TransactionsResponse) GetNextPage() string
GetNextPage returns the NextPage field value
func (*TransactionsResponse) GetNextPageOk ¶
func (o *TransactionsResponse) GetNextPageOk() (*string, bool)
GetNextPageOk returns a tuple with the NextPage field value and a boolean to check if the value has been set.
func (TransactionsResponse) MarshalJSON ¶
func (o TransactionsResponse) MarshalJSON() ([]byte, error)
func (*TransactionsResponse) SetItems ¶
func (o *TransactionsResponse) SetItems(v []Transaction)
SetItems sets field value
func (*TransactionsResponse) SetNextPage ¶
func (o *TransactionsResponse) SetNextPage(v string)
SetNextPage sets field value
func (TransactionsResponse) ToMap ¶
func (o TransactionsResponse) ToMap() (map[string]interface{}, error)
func (*TransactionsResponse) UnmarshalJSON ¶
func (o *TransactionsResponse) UnmarshalJSON(data []byte) (err error)
type Transfer ¶
type Transfer struct { TokenAmount TokenAmount `json:"tokenAmount"` FromAccount Account `json:"fromAccount"` ToAccount Account `json:"toAccount"` Type TransferType `json:"type"` }
Transfer Details about a token transfer within a transaction.
func NewTransfer ¶
func NewTransfer(tokenAmount TokenAmount, fromAccount Account, toAccount Account, type_ TransferType) *Transfer
NewTransfer instantiates a new Transfer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTransferWithDefaults ¶
func NewTransferWithDefaults() *Transfer
NewTransferWithDefaults instantiates a new Transfer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Transfer) GetFromAccount ¶
GetFromAccount returns the FromAccount field value
func (*Transfer) GetFromAccountOk ¶
GetFromAccountOk returns a tuple with the FromAccount field value and a boolean to check if the value has been set.
func (*Transfer) GetToAccount ¶
GetToAccount returns the ToAccount field value
func (*Transfer) GetToAccountOk ¶
GetToAccountOk returns a tuple with the ToAccount field value and a boolean to check if the value has been set.
func (*Transfer) GetTokenAmount ¶
func (o *Transfer) GetTokenAmount() TokenAmount
GetTokenAmount returns the TokenAmount field value
func (*Transfer) GetTokenAmountOk ¶
func (o *Transfer) GetTokenAmountOk() (*TokenAmount, bool)
GetTokenAmountOk returns a tuple with the TokenAmount field value and a boolean to check if the value has been set.
func (*Transfer) GetType ¶
func (o *Transfer) GetType() TransferType
GetType returns the Type field value
func (*Transfer) GetTypeOk ¶
func (o *Transfer) GetTypeOk() (*TransferType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (Transfer) MarshalJSON ¶
func (*Transfer) SetFromAccount ¶
SetFromAccount sets field value
func (*Transfer) SetToAccount ¶
SetToAccount sets field value
func (*Transfer) SetTokenAmount ¶
func (o *Transfer) SetTokenAmount(v TokenAmount)
SetTokenAmount sets field value
func (*Transfer) UnmarshalJSON ¶
type TransferType ¶
type TransferType string
TransferType The type of a token transfer transaction.
const ( Native TransferType = "Native" ERC20 TransferType = "ERC20" ERC721 TransferType = "ERC721" ERC20_APPROVE TransferType = "ERC20_APPROVE" )
List of TransferType
func NewTransferTypeFromValue ¶
func NewTransferTypeFromValue(v string) (*TransferType, error)
NewTransferTypeFromValue returns a pointer to a valid TransferType for the value passed as argument, or an error if the value passed is not allowed by the enum
func (TransferType) IsValid ¶
func (v TransferType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (TransferType) Ptr ¶
func (v TransferType) Ptr() *TransferType
Ptr returns reference to TransferType value
func (*TransferType) UnmarshalJSON ¶
func (v *TransferType) UnmarshalJSON(src []byte) error
Source Files
¶
- api_approvals.go
- api_balances.go
- api_chains.go
- api_exchange.go
- api_tokens.go
- api_transactions.go
- client.go
- configuration.go
- model_account.go
- model_account_sum.go
- model_action.go
- model_all_approvals_response.go
- model_balances_response.go
- model_chain.go
- model_chain_balance.go
- model_chain_sum.go
- model_chains.go
- model_error.go
- model_estimate.go
- model_extensions.go
- model_fee_cost.go
- model_gas_cost.go
- model_gas_details.go
- model_included_step.go
- model_included_steps.go
- model_integration_details.go
- model_native_currency.go
- model_network_type.go
- model_portfolio_view_sum.go
- model_portfolio_view_sum_sums.go
- model_route.go
- model_routes.go
- model_routes_response.go
- model_status_chain_detail.go
- model_status_enum.go
- model_status_response.go
- model_tags.go
- model_token.go
- model_token_amount.go
- model_token_approval_data.go
- model_token_approval_deletion.go
- model_token_approval_modification.go
- model_token_approval_response.go
- model_token_list.go
- model_tokens.go
- model_transaction.go
- model_transaction_request.go
- model_transaction_status.go
- model_transaction_type.go
- model_transactions_response.go
- model_transfer.go
- model_transfer_type.go
- response.go
- utils.go