openapi

package module
v1.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 20 Imported by: 0

README

Go API client for openapi

The Blockdaemon DeFi API provides a single interface to a multitude of DeFi projects and blockchains

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.43.0
  • Package version: 1.0.0
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/Blockdaemon/defi-api-go-sdk"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value openapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value openapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using openapi.ContextOperationServerIndices and openapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://svc.blockdaemon.com

Class Method HTTP request Description
ApprovalsAPI DeleteTokenApproval Delete /approval Delete an ERC20 token approval
ApprovalsAPI GetAllApprovals Get /approvals Get a list of ERC20 token approvals
ApprovalsAPI GetSupportedChains Get /approvals/supported-chains Get supported chains for token approvals
ApprovalsAPI GetTokenApproval Get /approval List ERC20 token approvals
ApprovalsAPI ModifyTokenApproval Post /approval Modify an ERC20 token approval
BalancesAPI GetBalances Get /balances Get token balances and market data for an account
BalancesAPI GetSupportedChainsForBalances Get /balances/supported-chains Get supported chains for token balance queries
ChainsAPI GetChains Get /chains Get supported blockchain networks with metadata
ExchangeAPI GetRoutes Get /exchange/routes Get a list of routes for swapping assets
ExchangeAPI GetStatus Get /exchange/status Get swap status
TokensAPI GetTokenTags Get /tokens/tags Get list of token tags
TokensAPI GetTokens Get /tokens Get list of supported tokens with metadata
TransactionsAPI GetTransactions Get /transactions Get transaction history for an account

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), openapi.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)
apiKeyAuthHeader
  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-API-Key and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		openapi.ContextAPIKeys,
		map[string]openapi.APIKey{
			"X-API-Key": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

info@blockdaemon.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
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")
)
View Source
var AllowedNetworkTypeEnumValues = []NetworkType{
	"mainnet",
	"testnet",
}

All allowed values of NetworkType enum

View Source
var AllowedStatusEnumEnumValues = []StatusEnum{
	"NOT_FOUND",
	"PENDING",
	"BRIDGING",
	"DONE",
	"FAILED",
	"NEED_GAS",
}

All allowed values of StatusEnum enum

View Source
var AllowedTransactionStatusEnumValues = []TransactionStatus{
	"Confirmed",
	"Error",
}

All allowed values of TransactionStatus enum

View Source
var AllowedTransactionTypeEnumValues = []TransactionType{
	"Swap",
	"Approve",
	"Transfer",
	"ContractCall",
	"Unknown",
	"ContractCreate",
}

All allowed values of TransactionType enum

View Source
var AllowedTransferTypeEnumValues = []TransferType{
	"Native",
	"ERC20",
	"ERC721",
	"ERC20_APPROVE",
}

All allowed values of TransferType enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time 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

type APIKey struct {
	Key    string
	Prefix string
}

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

func NewAccount(address string, metadata map[string]string) *Account

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

func (o *Account) GetAddress() string

GetAddress returns the Address field value

func (*Account) GetAddressOk

func (o *Account) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (o *Account) GetExplorerLink() string

GetExplorerLink returns the ExplorerLink field value if set, zero value otherwise.

func (*Account) GetExplorerLinkOk

func (o *Account) GetExplorerLinkOk() (*string, bool)

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

func (o *Account) GetLogoURI() string

GetLogoURI returns the LogoURI field value if set, zero value otherwise.

func (*Account) GetLogoURIOk

func (o *Account) GetLogoURIOk() (*string, bool)

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

func (o *Account) GetMetadata() map[string]string

GetMetadata returns the Metadata field value

func (*Account) GetMetadataOk

func (o *Account) GetMetadataOk() (*map[string]string, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*Account) GetName

func (o *Account) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Account) GetNameOk

func (o *Account) GetNameOk() (*string, bool)

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 (o *Account) HasExplorerLink() bool

HasExplorerLink returns a boolean if a field has been set.

func (*Account) HasLogoURI

func (o *Account) HasLogoURI() bool

HasLogoURI returns a boolean if a field has been set.

func (*Account) HasName

func (o *Account) HasName() bool

HasName returns a boolean if a field has been set.

func (Account) MarshalJSON

func (o Account) MarshalJSON() ([]byte, error)

func (*Account) SetAddress

func (o *Account) SetAddress(v string)

SetAddress sets field value

func (o *Account) SetExplorerLink(v string)

SetExplorerLink gets a reference to the given string and assigns it to the ExplorerLink field.

func (*Account) SetLogoURI

func (o *Account) SetLogoURI(v string)

SetLogoURI gets a reference to the given string and assigns it to the LogoURI field.

func (*Account) SetMetadata

func (o *Account) SetMetadata(v map[string]string)

SetMetadata sets field value

func (*Account) SetName

func (o *Account) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (Account) ToMap

func (o Account) ToMap() (map[string]interface{}, error)

func (*Account) UnmarshalJSON

func (o *Account) UnmarshalJSON(data []byte) (err error)

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

func (o *Action) GetFromAccount() Account

GetFromAccount returns the FromAccount field value

func (*Action) GetFromAccountOk

func (o *Action) GetFromAccountOk() (*Account, bool)

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

func (o *Action) GetSlippage() float32

GetSlippage returns the Slippage field value

func (*Action) GetSlippageOk

func (o *Action) GetSlippageOk() (*float32, bool)

GetSlippageOk returns a tuple with the Slippage field value and a boolean to check if the value has been set.

func (*Action) GetTo

func (o *Action) GetTo() TokenAmount

GetTo returns the To field value

func (*Action) GetToAccount

func (o *Action) GetToAccount() Account

GetToAccount returns the ToAccount field value

func (*Action) GetToAccountOk

func (o *Action) GetToAccountOk() (*Account, bool)

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 (o Action) MarshalJSON() ([]byte, error)

func (*Action) SetFrom

func (o *Action) SetFrom(v TokenAmount)

SetFrom sets field value

func (*Action) SetFromAccount

func (o *Action) SetFromAccount(v Account)

SetFromAccount sets field value

func (*Action) SetSlippage

func (o *Action) SetSlippage(v float32)

SetSlippage sets field value

func (*Action) SetTo

func (o *Action) SetTo(v TokenAmount)

SetTo sets field value

func (*Action) SetToAccount

func (o *Action) SetToAccount(v Account)

SetToAccount sets field value

func (Action) ToMap

func (o Action) ToMap() (map[string]interface{}, error)

func (*Action) UnmarshalJSON

func (o *Action) UnmarshalJSON(data []byte) (err error)

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 (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

A list of CAIP-2 identifiers for blockchains.

func (ApiGetAllApprovalsRequest) Execute

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 (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 (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 (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

The CAIP-2 identifier for a blockchain.

func (ApiGetSupportedChainsForBalancesRequest) ChainName

The name of a blockchain.

func (ApiGetSupportedChainsForBalancesRequest) Execute

func (ApiGetSupportedChainsForBalancesRequest) NetworkType

The type of network (mainnet, testnet, or devnet).

type ApiGetSupportedChainsRequest

type ApiGetSupportedChainsRequest struct {
	ApiService *ApprovalsAPIService
	// contains filtered or unexported fields
}

func (ApiGetSupportedChainsRequest) ChainID

The CAIP-2 identifier for a blockchain.

func (ApiGetSupportedChainsRequest) ChainName

The name of a blockchain.

func (ApiGetSupportedChainsRequest) Execute

func (ApiGetSupportedChainsRequest) NetworkType

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

The CAIP-2 identifier for a blockchain.

func (ApiGetTokenApprovalRequest) Execute

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
}

func (ApiGetTokenTagsRequest) Execute

func (r ApiGetTokenTagsRequest) Execute() (*Tags, *http.Response, error)

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

The CAIP-2 identifier for a blockchain.

func (ApiGetTransactionsRequest) Execute

func (ApiGetTransactionsRequest) Limit

The number of items per page.

func (ApiGetTransactionsRequest) Page

The page token/number for pagination.

type ApiModifyTokenApprovalRequest

type ApiModifyTokenApprovalRequest struct {
	ApiService *ApprovalsAPIService
	// contains filtered or unexported fields
}

func (ApiModifyTokenApprovalRequest) Execute

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

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

Execute executes the request

@return TokenApprovalResponse

func (*ApprovalsAPIService) GetAllApprovals

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

Execute executes the request

@return AllApprovalsResponse

func (*ApprovalsAPIService) GetSupportedChains

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

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

Execute executes the request

@return TokenApprovalData

func (*ApprovalsAPIService) ModifyTokenApproval

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

Execute executes the request

@return TokenApprovalResponse

type BalancesAPIService

type BalancesAPIService service

BalancesAPIService BalancesAPI service

func (*BalancesAPIService) GetBalances

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

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

func NewChain(chainName string, chainID string, rpc []string) *Chain

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

func (o *Chain) GetBlockConfirmations() int32

GetBlockConfirmations returns the BlockConfirmations field value if set, zero value otherwise.

func (*Chain) GetBlockConfirmationsOk

func (o *Chain) GetBlockConfirmationsOk() (*int32, bool)

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

func (o *Chain) GetBlockExplorerUrls() []string

GetBlockExplorerUrls returns the BlockExplorerUrls field value if set, zero value otherwise.

func (*Chain) GetBlockExplorerUrlsOk

func (o *Chain) GetBlockExplorerUrlsOk() ([]string, bool)

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

func (o *Chain) GetBlockTime() int32

GetBlockTime returns the BlockTime field value if set, zero value otherwise.

func (*Chain) GetBlockTimeOk

func (o *Chain) GetBlockTimeOk() (*int32, bool)

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

func (o *Chain) GetChainID() string

GetChainID returns the ChainID field value

func (*Chain) GetChainIDOk

func (o *Chain) GetChainIDOk() (*string, bool)

GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.

func (*Chain) GetChainIconURI

func (o *Chain) GetChainIconURI() string

GetChainIconURI returns the ChainIconURI field value if set, zero value otherwise.

func (*Chain) GetChainIconURIOk

func (o *Chain) GetChainIconURIOk() (*string, bool)

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

func (o *Chain) GetChainName() string

GetChainName returns the ChainName field value

func (*Chain) GetChainNameOk

func (o *Chain) GetChainNameOk() (*string, bool)

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) GetRpc

func (o *Chain) GetRpc() []string

GetRpc returns the Rpc field value

func (*Chain) GetRpcOk

func (o *Chain) GetRpcOk() ([]string, bool)

GetRpcOk returns a tuple with the Rpc field value and a boolean to check if the value has been set.

func (*Chain) HasBlockConfirmations

func (o *Chain) HasBlockConfirmations() bool

HasBlockConfirmations returns a boolean if a field has been set.

func (*Chain) HasBlockExplorerUrls

func (o *Chain) HasBlockExplorerUrls() bool

HasBlockExplorerUrls returns a boolean if a field has been set.

func (*Chain) HasBlockTime

func (o *Chain) HasBlockTime() bool

HasBlockTime returns a boolean if a field has been set.

func (*Chain) HasChainIconURI

func (o *Chain) HasChainIconURI() bool

HasChainIconURI returns a boolean if a field has been set.

func (*Chain) HasNativeCurrency

func (o *Chain) HasNativeCurrency() bool

HasNativeCurrency returns a boolean if a field has been set.

func (*Chain) HasNetworkType

func (o *Chain) HasNetworkType() bool

HasNetworkType returns a boolean if a field has been set.

func (Chain) MarshalJSON

func (o Chain) MarshalJSON() ([]byte, error)

func (*Chain) SetBlockConfirmations

func (o *Chain) SetBlockConfirmations(v int32)

SetBlockConfirmations gets a reference to the given int32 and assigns it to the BlockConfirmations field.

func (*Chain) SetBlockExplorerUrls

func (o *Chain) SetBlockExplorerUrls(v []string)

SetBlockExplorerUrls gets a reference to the given []string and assigns it to the BlockExplorerUrls field.

func (*Chain) SetBlockTime

func (o *Chain) SetBlockTime(v int32)

SetBlockTime gets a reference to the given int32 and assigns it to the BlockTime field.

func (*Chain) SetChainID

func (o *Chain) SetChainID(v string)

SetChainID sets field value

func (*Chain) SetChainIconURI

func (o *Chain) SetChainIconURI(v string)

SetChainIconURI gets a reference to the given string and assigns it to the ChainIconURI field.

func (*Chain) SetChainName

func (o *Chain) SetChainName(v string)

SetChainName sets field value

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) SetRpc

func (o *Chain) SetRpc(v []string)

SetRpc sets field value

func (Chain) ToMap

func (o Chain) ToMap() (map[string]interface{}, error)

func (*Chain) UnmarshalJSON

func (o *Chain) UnmarshalJSON(data []byte) (err error)

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

func NewChainSum(chainId string, approvedSum string, valueAtRiskSum string) *ChainSum

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

func (o *ChainSum) GetApprovedSum() string

GetApprovedSum returns the ApprovedSum field value

func (*ChainSum) GetApprovedSumOk

func (o *ChainSum) GetApprovedSumOk() (*string, bool)

GetApprovedSumOk returns a tuple with the ApprovedSum field value and a boolean to check if the value has been set.

func (*ChainSum) GetChainId

func (o *ChainSum) GetChainId() string

GetChainId returns the ChainId field value

func (*ChainSum) GetChainIdOk

func (o *ChainSum) GetChainIdOk() (*string, bool)

GetChainIdOk returns a tuple with the ChainId field value and a boolean to check if the value has been set.

func (*ChainSum) GetValueAtRiskSum

func (o *ChainSum) GetValueAtRiskSum() string

GetValueAtRiskSum returns the ValueAtRiskSum field value

func (*ChainSum) GetValueAtRiskSumOk

func (o *ChainSum) GetValueAtRiskSumOk() (*string, bool)

GetValueAtRiskSumOk returns a tuple with the ValueAtRiskSum field value and a boolean to check if the value has been set.

func (ChainSum) MarshalJSON

func (o ChainSum) MarshalJSON() ([]byte, error)

func (*ChainSum) SetApprovedSum

func (o *ChainSum) SetApprovedSum(v string)

SetApprovedSum sets field value

func (*ChainSum) SetChainId

func (o *ChainSum) SetChainId(v string)

SetChainId sets field value

func (*ChainSum) SetValueAtRiskSum

func (o *ChainSum) SetValueAtRiskSum(v string)

SetValueAtRiskSum sets field value

func (ChainSum) ToMap

func (o ChainSum) ToMap() (map[string]interface{}, error)

func (*ChainSum) UnmarshalJSON

func (o *ChainSum) UnmarshalJSON(data []byte) (err error)

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 (o Chains) MarshalJSON() ([]byte, error)

func (Chains) ToMap

func (o Chains) ToMap() (map[string]interface{}, error)

func (*Chains) UnmarshalJSON

func (o *Chains) UnmarshalJSON(data []byte) (err error)

type ChainsAPIService

type ChainsAPIService service

ChainsAPIService ChainsAPI service

func (*ChainsAPIService) GetChains

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) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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

func NewError(type_ string, code int32, status int32, message string, timestamp time.Time) *Error

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) GetCode

func (o *Error) GetCode() int32

GetCode returns the Code field value

func (*Error) GetCodeOk

func (o *Error) GetCodeOk() (*int32, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*Error) GetStatus

func (o *Error) GetStatus() int32

GetStatus returns the Status field value

func (*Error) GetStatusOk

func (o *Error) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Error) GetTimestamp

func (o *Error) GetTimestamp() time.Time

GetTimestamp returns the Timestamp field value

func (*Error) GetTimestampOk

func (o *Error) 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 (*Error) GetType

func (o *Error) GetType() string

GetType returns the Type field value

func (*Error) GetTypeOk

func (o *Error) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetCode

func (o *Error) SetCode(v int32)

SetCode sets field value

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

func (*Error) SetStatus

func (o *Error) SetStatus(v int32)

SetStatus sets field value

func (*Error) SetTimestamp

func (o *Error) SetTimestamp(v time.Time)

SetTimestamp sets field value

func (*Error) SetType

func (o *Error) SetType(v string)

SetType sets field value

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

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

func (o *Estimate) GetApprovalAddress() string

GetApprovalAddress returns the ApprovalAddress field value

func (*Estimate) GetApprovalAddressOk

func (o *Estimate) GetApprovalAddressOk() (*string, bool)

GetApprovalAddressOk returns a tuple with the ApprovalAddress field value and a boolean to check if the value has been set.

func (*Estimate) GetExecutionDuration

func (o *Estimate) GetExecutionDuration() int32

GetExecutionDuration returns the ExecutionDuration field value if set, zero value otherwise.

func (*Estimate) GetExecutionDurationOk

func (o *Estimate) GetExecutionDurationOk() (*int32, bool)

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

func (o *Estimate) GetFeeCosts() []FeeCost

GetFeeCosts returns the FeeCosts field value

func (*Estimate) GetFeeCostsOk

func (o *Estimate) GetFeeCostsOk() ([]FeeCost, bool)

GetFeeCostsOk returns a tuple with the FeeCosts field value and a boolean to check if the value has been set.

func (*Estimate) GetFromAmount

func (o *Estimate) GetFromAmount() string

GetFromAmount returns the FromAmount field value

func (*Estimate) GetFromAmountOk

func (o *Estimate) GetFromAmountOk() (*string, bool)

GetFromAmountOk returns a tuple with the FromAmount field value and a boolean to check if the value has been set.

func (*Estimate) GetFromAmountUSD

func (o *Estimate) GetFromAmountUSD() string

GetFromAmountUSD returns the FromAmountUSD field value if set, zero value otherwise.

func (*Estimate) GetFromAmountUSDOk

func (o *Estimate) GetFromAmountUSDOk() (*string, bool)

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

func (o *Estimate) GetGasCosts() []GasCost

GetGasCosts returns the GasCosts field value

func (*Estimate) GetGasCostsOk

func (o *Estimate) GetGasCostsOk() ([]GasCost, bool)

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

func (o *Estimate) GetToAmount() string

GetToAmount returns the ToAmount field value

func (*Estimate) GetToAmountMin

func (o *Estimate) GetToAmountMin() string

GetToAmountMin returns the ToAmountMin field value if set, zero value otherwise.

func (*Estimate) GetToAmountMinOk

func (o *Estimate) GetToAmountMinOk() (*string, bool)

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

func (o *Estimate) GetToAmountOk() (*string, bool)

GetToAmountOk returns a tuple with the ToAmount field value and a boolean to check if the value has been set.

func (*Estimate) GetToAmountUSD

func (o *Estimate) GetToAmountUSD() string

GetToAmountUSD returns the ToAmountUSD field value if set, zero value otherwise.

func (*Estimate) GetToAmountUSDOk

func (o *Estimate) GetToAmountUSDOk() (*string, bool)

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

func (o *Estimate) HasExecutionDuration() bool

HasExecutionDuration returns a boolean if a field has been set.

func (*Estimate) HasFromAmountUSD

func (o *Estimate) HasFromAmountUSD() bool

HasFromAmountUSD returns a boolean if a field has been set.

func (*Estimate) HasToAmountMin

func (o *Estimate) HasToAmountMin() bool

HasToAmountMin returns a boolean if a field has been set.

func (*Estimate) HasToAmountUSD

func (o *Estimate) HasToAmountUSD() bool

HasToAmountUSD returns a boolean if a field has been set.

func (Estimate) MarshalJSON

func (o Estimate) MarshalJSON() ([]byte, error)

func (*Estimate) SetApprovalAddress

func (o *Estimate) SetApprovalAddress(v string)

SetApprovalAddress sets field value

func (*Estimate) SetExecutionDuration

func (o *Estimate) SetExecutionDuration(v int32)

SetExecutionDuration gets a reference to the given int32 and assigns it to the ExecutionDuration field.

func (*Estimate) SetFeeCosts

func (o *Estimate) SetFeeCosts(v []FeeCost)

SetFeeCosts sets field value

func (*Estimate) SetFromAmount

func (o *Estimate) SetFromAmount(v string)

SetFromAmount sets field value

func (*Estimate) SetFromAmountUSD

func (o *Estimate) SetFromAmountUSD(v string)

SetFromAmountUSD gets a reference to the given string and assigns it to the FromAmountUSD field.

func (*Estimate) SetGasCosts

func (o *Estimate) SetGasCosts(v []GasCost)

SetGasCosts sets field value

func (*Estimate) SetIntegrationDetails

func (o *Estimate) SetIntegrationDetails(v IntegrationDetails)

SetIntegrationDetails sets field value

func (*Estimate) SetToAmount

func (o *Estimate) SetToAmount(v string)

SetToAmount sets field value

func (*Estimate) SetToAmountMin

func (o *Estimate) SetToAmountMin(v string)

SetToAmountMin gets a reference to the given string and assigns it to the ToAmountMin field.

func (*Estimate) SetToAmountUSD

func (o *Estimate) SetToAmountUSD(v string)

SetToAmountUSD gets a reference to the given string and assigns it to the ToAmountUSD field.

func (Estimate) ToMap

func (o Estimate) ToMap() (map[string]interface{}, error)

func (*Estimate) UnmarshalJSON

func (o *Estimate) UnmarshalJSON(data []byte) (err error)

type ExchangeAPIService

type ExchangeAPIService service

ExchangeAPIService ExchangeAPI service

func (*ExchangeAPIService) GetRoutes

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

Execute executes the request

@return RoutesResponse

func (*ExchangeAPIService) GetStatus

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

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

func (o *FeeCost) GetDescription() string

GetDescription returns the Description field value

func (*FeeCost) GetDescriptionOk

func (o *FeeCost) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*FeeCost) GetIncluded

func (o *FeeCost) GetIncluded() bool

GetIncluded returns the Included field value

func (*FeeCost) GetIncludedOk

func (o *FeeCost) GetIncludedOk() (*bool, bool)

GetIncludedOk returns a tuple with the Included field value and a boolean to check if the value has been set.

func (*FeeCost) GetName

func (o *FeeCost) GetName() string

GetName returns the Name field value

func (*FeeCost) GetNameOk

func (o *FeeCost) GetNameOk() (*string, bool)

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 (o FeeCost) MarshalJSON() ([]byte, error)

func (*FeeCost) SetDescription

func (o *FeeCost) SetDescription(v string)

SetDescription sets field value

func (*FeeCost) SetIncluded

func (o *FeeCost) SetIncluded(v bool)

SetIncluded sets field value

func (*FeeCost) SetName

func (o *FeeCost) SetName(v string)

SetName sets field value

func (*FeeCost) SetToken

func (o *FeeCost) SetToken(v TokenAmount)

SetToken sets field value

func (FeeCost) ToMap

func (o FeeCost) ToMap() (map[string]interface{}, error)

func (*FeeCost) UnmarshalJSON

func (o *FeeCost) UnmarshalJSON(data []byte) (err error)

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) GetLimit

func (o *GasCost) GetLimit() string

GetLimit returns the Limit field value

func (*GasCost) GetLimitOk

func (o *GasCost) GetLimitOk() (*string, bool)

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 (o GasCost) MarshalJSON() ([]byte, error)

func (*GasCost) SetLimit

func (o *GasCost) SetLimit(v string)

SetLimit sets field value

func (*GasCost) SetToken

func (o *GasCost) SetToken(v TokenAmount)

SetToken sets field value

func (GasCost) ToMap

func (o GasCost) ToMap() (map[string]interface{}, error)

func (*GasCost) UnmarshalJSON

func (o *GasCost) UnmarshalJSON(data []byte) (err error)

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) GetGas

func (o *GasDetails) GetGas() int32

GetGas returns the Gas field value

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) SetGas

func (o *GasDetails) SetGas(v int32)

SetGas 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) SetToken

func (o *GasDetails) SetToken(v Token)

SetToken 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) SetType

func (o *IncludedStep) SetType(v string)

SetType 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 MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

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 (NullableAllApprovalsResponse) IsSet

func (NullableAllApprovalsResponse) MarshalJSON

func (v NullableAllApprovalsResponse) MarshalJSON() ([]byte, error)

func (*NullableAllApprovalsResponse) Set

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 (NullableBalancesResponse) IsSet

func (v NullableBalancesResponse) IsSet() bool

func (NullableBalancesResponse) MarshalJSON

func (v NullableBalancesResponse) MarshalJSON() ([]byte, error)

func (*NullableBalancesResponse) Set

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 (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 (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 (NullableIncludedSteps) IsSet

func (v NullableIncludedSteps) IsSet() bool

func (NullableIncludedSteps) MarshalJSON

func (v NullableIncludedSteps) MarshalJSON() ([]byte, error)

func (*NullableIncludedSteps) Set

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 (NullableIntegrationDetails) IsSet

func (v NullableIntegrationDetails) IsSet() bool

func (NullableIntegrationDetails) MarshalJSON

func (v NullableIntegrationDetails) MarshalJSON() ([]byte, error)

func (*NullableIntegrationDetails) Set

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 (NullableNativeCurrency) IsSet

func (v NullableNativeCurrency) IsSet() bool

func (NullableNativeCurrency) MarshalJSON

func (v NullableNativeCurrency) MarshalJSON() ([]byte, error)

func (*NullableNativeCurrency) Set

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 (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 (NullablePortfolioViewSum) IsSet

func (v NullablePortfolioViewSum) IsSet() bool

func (NullablePortfolioViewSum) MarshalJSON

func (v NullablePortfolioViewSum) MarshalJSON() ([]byte, error)

func (*NullablePortfolioViewSum) Set

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 (NullablePortfolioViewSumSums) IsSet

func (NullablePortfolioViewSumSums) MarshalJSON

func (v NullablePortfolioViewSumSums) MarshalJSON() ([]byte, error)

func (*NullablePortfolioViewSumSums) Set

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 (NullableRoutesResponse) IsSet

func (v NullableRoutesResponse) IsSet() bool

func (NullableRoutesResponse) MarshalJSON

func (v NullableRoutesResponse) MarshalJSON() ([]byte, error)

func (*NullableRoutesResponse) Set

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 (NullableStatusChainDetail) IsSet

func (v NullableStatusChainDetail) IsSet() bool

func (NullableStatusChainDetail) MarshalJSON

func (v NullableStatusChainDetail) MarshalJSON() ([]byte, error)

func (*NullableStatusChainDetail) Set

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 (NullableStatusResponse) IsSet

func (v NullableStatusResponse) IsSet() bool

func (NullableStatusResponse) MarshalJSON

func (v NullableStatusResponse) MarshalJSON() ([]byte, error)

func (*NullableStatusResponse) Set

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 (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 (NullableTokenApprovalData) IsSet

func (v NullableTokenApprovalData) IsSet() bool

func (NullableTokenApprovalData) MarshalJSON

func (v NullableTokenApprovalData) MarshalJSON() ([]byte, error)

func (*NullableTokenApprovalData) Set

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 (NullableTokenApprovalDeletion) Get

func (NullableTokenApprovalDeletion) IsSet

func (NullableTokenApprovalDeletion) MarshalJSON

func (v NullableTokenApprovalDeletion) MarshalJSON() ([]byte, error)

func (*NullableTokenApprovalDeletion) Set

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 (NullableTokenApprovalModification) Get

func (NullableTokenApprovalModification) IsSet

func (NullableTokenApprovalModification) MarshalJSON

func (v NullableTokenApprovalModification) MarshalJSON() ([]byte, error)

func (*NullableTokenApprovalModification) Set

func (*NullableTokenApprovalModification) UnmarshalJSON

func (v *NullableTokenApprovalModification) UnmarshalJSON(src []byte) error

func (*NullableTokenApprovalModification) Unset

type NullableTokenApprovalResponse

type NullableTokenApprovalResponse struct {
	// contains filtered or unexported fields
}

func (NullableTokenApprovalResponse) Get

func (NullableTokenApprovalResponse) IsSet

func (NullableTokenApprovalResponse) MarshalJSON

func (v NullableTokenApprovalResponse) MarshalJSON() ([]byte, error)

func (*NullableTokenApprovalResponse) Set

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 (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 (NullableTransactionRequest) IsSet

func (v NullableTransactionRequest) IsSet() bool

func (NullableTransactionRequest) MarshalJSON

func (v NullableTransactionRequest) MarshalJSON() ([]byte, error)

func (*NullableTransactionRequest) Set

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 (NullableTransactionStatus) IsSet

func (v NullableTransactionStatus) IsSet() bool

func (NullableTransactionStatus) MarshalJSON

func (v NullableTransactionStatus) MarshalJSON() ([]byte, error)

func (*NullableTransactionStatus) Set

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 (NullableTransactionType) IsSet

func (v NullableTransactionType) IsSet() bool

func (NullableTransactionType) MarshalJSON

func (v NullableTransactionType) MarshalJSON() ([]byte, error)

func (*NullableTransactionType) Set

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 (NullableTransactionsResponse) IsSet

func (NullableTransactionsResponse) MarshalJSON

func (v NullableTransactionsResponse) MarshalJSON() ([]byte, error)

func (*NullableTransactionsResponse) Set

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 (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

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

func (o *Route) GetExtensions() map[string]string

GetExtensions returns the Extensions field value if set, zero value otherwise.

func (*Route) GetExtensionsOk

func (o *Route) GetExtensionsOk() (*map[string]string, 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 (*Route) GetFrom

func (o *Route) GetFrom() TokenAmount

GetFrom returns the From field value

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

func (o *Route) GetSlippage() float32

GetSlippage returns the Slippage field value if set, zero value otherwise.

func (*Route) GetSlippageOk

func (o *Route) GetSlippageOk() (*float32, bool)

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

func (o *Route) GetTargetID() string

GetTargetID returns the TargetID field value

func (*Route) GetTargetIDOk

func (o *Route) GetTargetIDOk() (*string, bool)

GetTargetIDOk returns a tuple with the TargetID field value and a boolean to check if the value has been set.

func (*Route) GetTo

func (o *Route) GetTo() TokenAmount

GetTo returns the To field value

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

func (o *Route) HasExtensions() bool

HasExtensions returns a boolean if a field has been set.

func (*Route) HasSlippage

func (o *Route) HasSlippage() bool

HasSlippage returns a boolean if a field has been set.

func (Route) MarshalJSON

func (o Route) MarshalJSON() ([]byte, error)

func (*Route) SetExtensions

func (o *Route) SetExtensions(v map[string]string)

SetExtensions gets a reference to the given map[string]string and assigns it to the Extensions field.

func (*Route) SetFrom

func (o *Route) SetFrom(v TokenAmount)

SetFrom sets field value

func (*Route) SetSlippage

func (o *Route) SetSlippage(v float32)

SetSlippage gets a reference to the given float32 and assigns it to the Slippage field.

func (*Route) SetSteps

func (o *Route) SetSteps(v IncludedSteps)

SetSteps sets field value

func (*Route) SetTargetID

func (o *Route) SetTargetID(v string)

SetTargetID sets field value

func (*Route) SetTo

func (o *Route) SetTo(v TokenAmount)

SetTo sets field value

func (*Route) SetTransactionRequest

func (o *Route) SetTransactionRequest(v TransactionRequest)

SetTransactionRequest sets field value

func (Route) ToMap

func (o Route) ToMap() (map[string]interface{}, error)

func (*Route) UnmarshalJSON

func (o *Route) UnmarshalJSON(data []byte) (err error)

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 (o Routes) MarshalJSON() ([]byte, error)

func (Routes) ToMap

func (o Routes) ToMap() (map[string]interface{}, error)

func (*Routes) UnmarshalJSON

func (o *Routes) UnmarshalJSON(data []byte) (err error)

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

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

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 (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 (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 (o Tags) MarshalJSON() ([]byte, error)

func (Tags) ToMap

func (o Tags) ToMap() (map[string]interface{}, error)

func (*Tags) UnmarshalJSON

func (o *Tags) UnmarshalJSON(data []byte) (err error)

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

func (o *Token) GetAddress() string

GetAddress returns the Address field value

func (*Token) GetAddressOk

func (o *Token) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*Token) GetChainID

func (o *Token) GetChainID() string

GetChainID returns the ChainID field value

func (*Token) GetChainIDOk

func (o *Token) GetChainIDOk() (*string, bool)

GetChainIDOk returns a tuple with the ChainID field value and a boolean to check if the value has been set.

func (*Token) GetDecimals

func (o *Token) GetDecimals() int32

GetDecimals returns the Decimals field value

func (*Token) GetDecimalsOk

func (o *Token) GetDecimalsOk() (*int32, bool)

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

func (o *Token) GetLogoURI() string

GetLogoURI returns the LogoURI field value

func (*Token) GetLogoURIOk

func (o *Token) GetLogoURIOk() (*string, bool)

GetLogoURIOk returns a tuple with the LogoURI field value and a boolean to check if the value has been set.

func (*Token) GetName

func (o *Token) GetName() string

GetName returns the Name field value

func (*Token) GetNameOk

func (o *Token) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Token) GetPriceUSD

func (o *Token) GetPriceUSD() float64

GetPriceUSD returns the PriceUSD field value if set, zero value otherwise.

func (*Token) GetPriceUSDOk

func (o *Token) GetPriceUSDOk() (*float64, bool)

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) GetSymbol

func (o *Token) GetSymbol() string

GetSymbol returns the Symbol field value

func (*Token) GetSymbolOk

func (o *Token) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (*Token) GetTags

func (o *Token) GetTags() Tags

GetTags returns the Tags field value

func (*Token) GetTagsOk

func (o *Token) GetTagsOk() (*Tags, bool)

GetTagsOk returns a tuple with the Tags field value and a boolean to check if the value has been set.

func (*Token) HasPriceUSD

func (o *Token) HasPriceUSD() bool

HasPriceUSD returns a boolean if a field has been set.

func (Token) MarshalJSON

func (o Token) MarshalJSON() ([]byte, error)

func (*Token) SetAddress

func (o *Token) SetAddress(v string)

SetAddress sets field value

func (*Token) SetChainID

func (o *Token) SetChainID(v string)

SetChainID sets field value

func (*Token) SetDecimals

func (o *Token) SetDecimals(v int32)

SetDecimals sets field value

func (*Token) SetExtensions

func (o *Token) SetExtensions(v Extensions)

SetExtensions sets field value

func (*Token) SetLogoURI

func (o *Token) SetLogoURI(v string)

SetLogoURI sets field value

func (*Token) SetName

func (o *Token) SetName(v string)

SetName sets field value

func (*Token) SetPriceUSD

func (o *Token) SetPriceUSD(v float64)

SetPriceUSD gets a reference to the given float64 and assigns it to the PriceUSD field.

func (*Token) SetSymbol

func (o *Token) SetSymbol(v string)

SetSymbol sets field value

func (*Token) SetTags

func (o *Token) SetTags(v Tags)

SetTags sets field value

func (Token) ToMap

func (o Token) ToMap() (map[string]interface{}, error)

func (*Token) UnmarshalJSON

func (o *Token) UnmarshalJSON(data []byte) (err error)

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) SetToken

func (o *TokenAmount) SetToken(v Token)

SetToken sets field value

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 (o TokenList) MarshalJSON() ([]byte, error)

func (TokenList) ToMap

func (o TokenList) ToMap() (map[string]interface{}, error)

func (*TokenList) UnmarshalJSON

func (o *TokenList) UnmarshalJSON(data []byte) (err error)

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 (o Tokens) MarshalJSON() ([]byte, error)

func (Tokens) ToMap

func (o Tokens) ToMap() (map[string]interface{}, error)

func (*Tokens) UnmarshalJSON

func (o *Tokens) UnmarshalJSON(data []byte) (err error)

type TokensAPIService

type TokensAPIService service

TokensAPIService TokensAPI service

func (*TokensAPIService) GetTokenTags

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

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 (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 (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

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

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

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

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

func (o *Transfer) GetFromAccount() Account

GetFromAccount returns the FromAccount field value

func (*Transfer) GetFromAccountOk

func (o *Transfer) GetFromAccountOk() (*Account, bool)

GetFromAccountOk returns a tuple with the FromAccount field value and a boolean to check if the value has been set.

func (*Transfer) GetToAccount

func (o *Transfer) GetToAccount() Account

GetToAccount returns the ToAccount field value

func (*Transfer) GetToAccountOk

func (o *Transfer) GetToAccountOk() (*Account, bool)

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 (o Transfer) MarshalJSON() ([]byte, error)

func (*Transfer) SetFromAccount

func (o *Transfer) SetFromAccount(v Account)

SetFromAccount sets field value

func (*Transfer) SetToAccount

func (o *Transfer) SetToAccount(v Account)

SetToAccount sets field value

func (*Transfer) SetTokenAmount

func (o *Transfer) SetTokenAmount(v TokenAmount)

SetTokenAmount sets field value

func (*Transfer) SetType

func (o *Transfer) SetType(v TransferType)

SetType sets field value

func (Transfer) ToMap

func (o Transfer) ToMap() (map[string]interface{}, error)

func (*Transfer) UnmarshalJSON

func (o *Transfer) UnmarshalJSON(data []byte) (err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL