blockaidclientgo

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Blockaid API Library

Go Reference

The Blockaid library provides convenient access to the Blockaid REST API from applications written in Go. The full API of this library can be found in api.md.

It is generated with Stainless.

Installation

import (
	"github.com/RectangelHelp/blockaid-client-go" // imported as blockaidclientgo
)

Or to pin the version:

go get -u 'github.com/RectangelHelp/blockaid-client-go@v0.3.1'

Requirements

This library requires Go 1.18+.

Usage

The full API of this library can be found in api.md.

package main

import (
	"context"
	"fmt"

	"github.com/RectangelHelp/blockaid-client-go"
	"github.com/RectangelHelp/blockaid-client-go/option"
)

func main() {
	client := blockaidclientgo.NewClient(
		option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("BLOCKAID_CLIENT_API_KEY")
	)
	transactionScanResponse, err := client.Evm.JsonRpc.Scan(context.TODO(), blockaidclientgo.EvmJsonRpcScanParams{
		Chain: blockaidclientgo.F("ethereum"),
		Data: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsData{
			Method: blockaidclientgo.F("eth_signTypedData_v4"),
			Params: blockaidclientgo.F([]interface{}{"0x49c73c9d361c04769a452E85D343b41aC38e0EE4", "{\"domain\":{\"chainId\":1,\"name\":\"Aave interest bearing WETH\",\"version\":\"1\",\"verifyingContract\":\"0x030ba81f1c18d280636f32af80b9aad02cf0854e\"},\"message\":{\"owner\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\",\"spender\":\"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd\",\"value\":\"115792089237316195423570985008687907853269984665640564039457584007913129639935\",\"nonce\":\"0\",\"deadline\":\"1988064000\",\"holder\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\"},\"primaryType\":\"Permit\",\"types\":{\"EIP712Domain\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"version\",\"type\":\"string\"},{\"name\":\"chainId\",\"type\":\"uint256\"},{\"name\":\"verifyingContract\",\"type\":\"address\"}],\"Permit\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"},{\"name\":\"nonce\",\"type\":\"uint256\"},{\"name\":\"deadline\",\"type\":\"uint256\"}]}}"}),
		}),
		Metadata: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsMetadata{
			Domain: blockaidclientgo.F("https://boredapeyartclub.com"),
		}),
	})
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", transactionScanResponse.Validation)
}

Request fields

All request parameters are wrapped in a generic Field type, which we use to distinguish zero values from null or omitted fields.

This prevents accidentally sending a zero value if you forget a required parameter, and enables explicitly sending null, false, '', or 0 on optional parameters. Any field not specified is not sent.

To construct fields with values, use the helpers String(), Int(), Float(), or most commonly, the generic F[T](). To send a null, use Null[T](), and to send a nonconforming value, use Raw[T](any). For example:

params := FooParams{
	Name: blockaidclientgo.F("hello"),

	// Explicitly send `"description": null`
	Description: blockaidclientgo.Null[string](),

	Point: blockaidclientgo.F(blockaidclientgo.Point{
		X: blockaidclientgo.Int(0),
		Y: blockaidclientgo.Int(1),

		// In cases where the API specifies a given type,
		// but you want to send something else, use `Raw`:
		Z: blockaidclientgo.Raw[int64](0.01), // sends a float
	}),
}
Response objects

All fields in response structs are value types (not pointers or wrappers).

If a given field is null, not present, or invalid, the corresponding field will simply be its zero value.

All response structs also include a special JSON field, containing more detailed information about each property, which you can use like so:

if res.Name == "" {
	// true if `"name"` is either not present or explicitly null
	res.JSON.Name.IsNull()

	// true if the `"name"` key was not present in the repsonse JSON at all
	res.JSON.Name.IsMissing()

	// When the API returns data that cannot be coerced to the expected type:
	if res.JSON.Name.IsInvalid() {
		raw := res.JSON.Name.Raw()

		legacyName := struct{
			First string `json:"first"`
			Last  string `json:"last"`
		}{}
		json.Unmarshal([]byte(raw), &legacyName)
		name = legacyName.First + " " + legacyName.Last
	}
}

These .JSON structs also include an Extras map containing any properties in the json response that were not specified in the struct. This can be useful for API features not yet present in the SDK.

body := res.JSON.ExtraFields["my_unexpected_field"].Raw()
RequestOptions

This library uses the functional options pattern. Functions defined in the option package return a RequestOption, which is a closure that mutates a RequestConfig. These options can be supplied to the client or at individual requests. For example:

client := blockaidclientgo.NewClient(
	// Adds a header to every request made by the client
	option.WithHeader("X-Some-Header", "custom_header_info"),
)

client.Evm.JsonRpc.Scan(context.TODO(), ...,
	// Override the header
	option.WithHeader("X-Some-Header", "some_other_custom_header_info"),
	// Add an undocumented field to the request body, using sjson syntax
	option.WithJSONSet("some.json.path", map[string]string{"my": "object"}),
)

See the full list of request options.

Pagination

This library provides some conveniences for working with paginated list endpoints.

You can use .ListAutoPaging() methods to iterate through items across all pages:

Or you can use simple .List() methods to fetch a single page and receive a standard response object with additional helper methods like .GetNextPage(), e.g.:

Errors

When the API returns a non-success status code, we return an error with type *blockaidclientgo.Error. This contains the StatusCode, *http.Request, and *http.Response values of the request, as well as the JSON of the error body (much like other response objects in the SDK).

To handle errors, we recommend that you use the errors.As pattern:

_, err := client.Evm.JsonRpc.Scan(context.TODO(), blockaidclientgo.EvmJsonRpcScanParams{
	Chain: blockaidclientgo.F("ethereum"),
	Data: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsData{
		Method: blockaidclientgo.F("eth_signTypedData_v4"),
		Params: blockaidclientgo.F([]interface{}{"0x49c73c9d361c04769a452E85D343b41aC38e0EE4", "{\"domain\":{\"chainId\":1,\"name\":\"Aave interest bearing WETH\",\"version\":\"1\",\"verifyingContract\":\"0x030ba81f1c18d280636f32af80b9aad02cf0854e\"},\"message\":{\"owner\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\",\"spender\":\"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd\",\"value\":\"115792089237316195423570985008687907853269984665640564039457584007913129639935\",\"nonce\":\"0\",\"deadline\":\"1988064000\",\"holder\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\"},\"primaryType\":\"Permit\",\"types\":{\"EIP712Domain\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"version\",\"type\":\"string\"},{\"name\":\"chainId\",\"type\":\"uint256\"},{\"name\":\"verifyingContract\",\"type\":\"address\"}],\"Permit\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"},{\"name\":\"nonce\",\"type\":\"uint256\"},{\"name\":\"deadline\",\"type\":\"uint256\"}]}}"}),
	}),
	Metadata: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsMetadata{
		Domain: blockaidclientgo.F("https://boredapeyartclub.com"),
	}),
})
if err != nil {
	var apierr *blockaidclientgo.Error
	if errors.As(err, &apierr) {
		println(string(apierr.DumpRequest(true)))  // Prints the serialized HTTP request
		println(string(apierr.DumpResponse(true))) // Prints the serialized HTTP response
	}
	panic(err.Error()) // GET "/evm/json-rpc/scan/": 400 Bad Request { ... }
}

When other errors occur, they are returned unwrapped; for example, if HTTP transport fails, you might receive *url.Error wrapping *net.OpError.

Timeouts

Requests do not time out by default; use context to configure a timeout for a request lifecycle.

Note that if a request is retried, the context timeout does not start over. To set a per-retry timeout, use option.WithRequestTimeout().

// This sets the timeout for the request, including all the retries.
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
client.Evm.JsonRpc.Scan(
	ctx,
	blockaidclientgo.EvmJsonRpcScanParams{
		Chain: blockaidclientgo.F("ethereum"),
		Data: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsData{
			Method: blockaidclientgo.F("eth_signTypedData_v4"),
			Params: blockaidclientgo.F([]interface{}{"0x49c73c9d361c04769a452E85D343b41aC38e0EE4", "{\"domain\":{\"chainId\":1,\"name\":\"Aave interest bearing WETH\",\"version\":\"1\",\"verifyingContract\":\"0x030ba81f1c18d280636f32af80b9aad02cf0854e\"},\"message\":{\"owner\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\",\"spender\":\"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd\",\"value\":\"115792089237316195423570985008687907853269984665640564039457584007913129639935\",\"nonce\":\"0\",\"deadline\":\"1988064000\",\"holder\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\"},\"primaryType\":\"Permit\",\"types\":{\"EIP712Domain\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"version\",\"type\":\"string\"},{\"name\":\"chainId\",\"type\":\"uint256\"},{\"name\":\"verifyingContract\",\"type\":\"address\"}],\"Permit\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"},{\"name\":\"nonce\",\"type\":\"uint256\"},{\"name\":\"deadline\",\"type\":\"uint256\"}]}}"}),
		}),
		Metadata: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsMetadata{
			Domain: blockaidclientgo.F("https://boredapeyartclub.com"),
		}),
	},
	// This sets the per-retry timeout
	option.WithRequestTimeout(20*time.Second),
)
File uploads

Request parameters that correspond to file uploads in multipart requests are typed as param.Field[io.Reader]. The contents of the io.Reader will by default be sent as a multipart form part with the file name of "anonymous_file" and content-type of "application/octet-stream".

The file name and content-type can be customized by implementing Name() string or ContentType() string on the run-time type of io.Reader. Note that os.File implements Name() string, so a file returned by os.Open will be sent with the file name on disk.

We also provide a helper blockaidclientgo.FileParam(reader io.Reader, filename string, contentType string) which can be used to wrap any io.Reader with the appropriate file name and content type.

Retries

Certain errors will be automatically retried 2 times by default, with a short exponential backoff. We retry by default all connection errors, 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors.

You can use the WithMaxRetries option to configure or disable this:

// Configure the default for all requests:
client := blockaidclientgo.NewClient(
	option.WithMaxRetries(0), // default is 2
)

// Override per-request:
client.Evm.JsonRpc.Scan(
	context.TODO(),
	blockaidclientgo.EvmJsonRpcScanParams{
		Chain: blockaidclientgo.F("ethereum"),
		Data: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsData{
			Method: blockaidclientgo.F("eth_signTypedData_v4"),
			Params: blockaidclientgo.F([]interface{}{"0x49c73c9d361c04769a452E85D343b41aC38e0EE4", "{\"domain\":{\"chainId\":1,\"name\":\"Aave interest bearing WETH\",\"version\":\"1\",\"verifyingContract\":\"0x030ba81f1c18d280636f32af80b9aad02cf0854e\"},\"message\":{\"owner\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\",\"spender\":\"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd\",\"value\":\"115792089237316195423570985008687907853269984665640564039457584007913129639935\",\"nonce\":\"0\",\"deadline\":\"1988064000\",\"holder\":\"0x49c73c9d361c04769a452E85D343b41aC38e0EE4\"},\"primaryType\":\"Permit\",\"types\":{\"EIP712Domain\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"version\",\"type\":\"string\"},{\"name\":\"chainId\",\"type\":\"uint256\"},{\"name\":\"verifyingContract\",\"type\":\"address\"}],\"Permit\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"},{\"name\":\"nonce\",\"type\":\"uint256\"},{\"name\":\"deadline\",\"type\":\"uint256\"}]}}"}),
		}),
		Metadata: blockaidclientgo.F(blockaidclientgo.EvmJsonRpcScanParamsMetadata{
			Domain: blockaidclientgo.F("https://boredapeyartclub.com"),
		}),
	},
	option.WithMaxRetries(5),
)
Making custom/undocumented requests

This library is typed for convenient access to the documented API. If you need to access undocumented endpoints, params, or response properties, the library can still be used.

Undocumented endpoints

To make requests to undocumented endpoints, you can use client.Get, client.Post, and other HTTP verbs. RequestOptions on the client, such as retries, will be respected when making these requests.

var (
    // params can be an io.Reader, a []byte, an encoding/json serializable object,
    // or a "…Params" struct defined in this library.
    params map[string]interface{}

    // result can be an []byte, *http.Response, a encoding/json deserializable object,
    // or a model defined in this library.
    result *http.Response
)
err := client.Post(context.Background(), "/unspecified", params, &result)
if err != nil {
    …
}
Undocumented request params

To make requests using undocumented parameters, you may use either the option.WithQuerySet() or the option.WithJSONSet() methods.

params := FooNewParams{
    ID:   blockaidclientgo.F("id_xxxx"),
    Data: blockaidclientgo.F(FooNewParamsData{
        FirstName: blockaidclientgo.F("John"),
    }),
}
client.Foo.New(context.Background(), params, option.WithJSONSet("data.last_name", "Doe"))
Undocumented response properties

To access undocumented response properties, you may either access the raw JSON of the response as a string with result.JSON.RawJSON(), or get the raw JSON of a particular field on the result with result.JSON.Foo.Raw().

Any fields that are not present on the response struct will be saved and can be accessed by result.JSON.ExtraFields() which returns the extra fields as a map[string]Field.

Middleware

We provide option.WithMiddleware which applies the given middleware to requests.

func Logger(req *http.Request, next option.MiddlewareNext) (res *http.Response, err error) {
	// Before the request
	start := time.Now()
	LogReq(req)

	// Forward the request to the next handler
	res, err = next(req)

	// Handle stuff after the request
	end := time.Now()
	LogRes(res, err, start - end)

    return res, err
}

client := blockaidclientgo.NewClient(
	option.WithMiddleware(Logger),
)

When multiple middlewares are provided as variadic arguments, the middlewares are applied left to right. If option.WithMiddleware is given multiple times, for example first in the client then the method, the middleware in the client will run first and the middleware given in the method will run next.

You may also replace the default http.Client with option.WithHTTPClient(client). Only one http client is accepted (this overwrites any previous client) and receives requests after any middleware has been applied.

Semantic versioning

This package generally follows SemVer conventions, though certain backwards-incompatible changes may be released as minor versions:

  1. Changes to library internals which are technically public but not intended or documented for external use. (Please open a GitHub issue to let us know if you are relying on such internals).
  2. Changes that we do not expect to impact the vast majority of users in practice.

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an issue with questions, bugs, or suggestions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(value bool) param.Field[bool]

Bool is a param field helper which helps specify bools.

func F

func F[T any](value T) param.Field[T]

F is a param field helper used to initialize a param.Field generic struct. This helps specify null, zero values, and overrides, as well as normal values. You can read more about this in our README.

func FileParam

func FileParam(reader io.Reader, filename string, contentType string) param.Field[io.Reader]

FileParam is a param field helper which helps files with a mime content-type.

func Float

func Float(value float64) param.Field[float64]

Float is a param field helper which helps specify floats.

func Int

func Int(value int64) param.Field[int64]

Int is a param field helper which helps specify integers. This is particularly helpful when specifying integer constants for fields.

func Null

func Null[T any]() param.Field[T]

Null is a param field helper which explicitly sends null to the API.

func Raw

func Raw[T any](value any) param.Field[T]

Raw is a param field helper for specifying values for fields when the type you are looking to send is different from the type that is specified in the SDK. For example, if the type of the field is an integer, but you want to send a float, you could do that by setting the corresponding field with Raw[int](0.5).

func String

func String(value string) param.Field[string]

String is a param field helper which helps specify strings.

Types

type Client

type Client struct {
	Options []option.RequestOption
	Evm     *EvmService
}

Client creates a struct with services and top level methods that help with interacting with the blockaid API. You should not instantiate this client directly, and instead use the NewClient method instead.

func NewClient

func NewClient(opts ...option.RequestOption) (r *Client)

NewClient generates a new client with the default option read from the environment (BLOCKAID_CLIENT_API_KEY). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.

func (*Client) Delete

func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error

Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Execute

func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, res interface{}, opts ...option.RequestOption) error

Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.

If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.

The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned [url.Values] will be used as query strings to the url.

If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.

Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.

The response body will be deserialized into the res variable, depending on its type:

  • A pointer to a *http.Response is populated by the raw response.
  • A pointer to a byte array will be populated with the contents of the request body.
  • A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.
  • A nil value will not read the response body.

For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.

func (*Client) Get

func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error

Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Patch

func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error

Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Post

func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error

Post makes a POST request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Put

func (r *Client) Put(ctx context.Context, path string, params interface{}, res interface{}, opts ...option.RequestOption) error

Put makes a PUT request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

type Error

type Error = apierror.Error

type EvmJsonRpcScanParams

type EvmJsonRpcScanParams struct {
	// The chain name
	Chain param.Field[string] `json:"chain,required"`
	// JSON-RPC request that was received by the wallet.
	Data param.Field[EvmJsonRpcScanParamsData] `json:"data,required"`
	// Object of additional information to validate against.
	Metadata param.Field[EvmJsonRpcScanParamsMetadata] `json:"metadata,required"`
	// The address of the account (wallet) received the request in hex string format
	AccountAddress param.Field[string] `json:"account_address"`
	// List of one or both of options for the desired output. "simulation" - include
	// simulation output in your response. "validation" - include security validation
	// of the transaction in your response. Default is ["validation"]
	Options param.Field[[]EvmJsonRpcScanParamsOption] `json:"options"`
}

func (EvmJsonRpcScanParams) MarshalJSON

func (r EvmJsonRpcScanParams) MarshalJSON() (data []byte, err error)

type EvmJsonRpcScanParamsData added in v0.3.0

type EvmJsonRpcScanParamsData struct {
	// The method of the JSON-RPC request
	Method param.Field[string] `json:"method,required"`
	// The parameters of the JSON-RPC request in JSON format
	Params param.Field[[]interface{}] `json:"params,required"`
}

JSON-RPC request that was received by the wallet.

func (EvmJsonRpcScanParamsData) MarshalJSON added in v0.3.0

func (r EvmJsonRpcScanParamsData) MarshalJSON() (data []byte, err error)

type EvmJsonRpcScanParamsMetadata

type EvmJsonRpcScanParamsMetadata struct {
	// cross reference transaction against the domain.
	Domain param.Field[string] `json:"domain,required"`
}

Object of additional information to validate against.

func (EvmJsonRpcScanParamsMetadata) MarshalJSON

func (r EvmJsonRpcScanParamsMetadata) MarshalJSON() (data []byte, err error)

type EvmJsonRpcScanParamsOption

type EvmJsonRpcScanParamsOption string

An enumeration.

const (
	EvmJsonRpcScanParamsOptionValidation EvmJsonRpcScanParamsOption = "validation"
	EvmJsonRpcScanParamsOptionSimulation EvmJsonRpcScanParamsOption = "simulation"
)

func (EvmJsonRpcScanParamsOption) IsKnown

func (r EvmJsonRpcScanParamsOption) IsKnown() bool

type EvmJsonRpcService

type EvmJsonRpcService struct {
	Options []option.RequestOption
}

EvmJsonRpcService contains methods and other services that help with interacting with the blockaid API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEvmJsonRpcService method instead.

func NewEvmJsonRpcService

func NewEvmJsonRpcService(opts ...option.RequestOption) (r *EvmJsonRpcService)

NewEvmJsonRpcService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*EvmJsonRpcService) Scan

Gets a json-rpc request and returns a full simulation indicating what will happen in the transaction together with a recommended action and some textual reasons of why the transaction was flagged that way.

type EvmService

type EvmService struct {
	Options         []option.RequestOption
	JsonRpc         *EvmJsonRpcService
	Transaction     *EvmTransactionService
	TransactionBulk *EvmTransactionBulkService
	UserOperation   *EvmUserOperationService
}

EvmService contains methods and other services that help with interacting with the blockaid API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEvmService method instead.

func NewEvmService

func NewEvmService(opts ...option.RequestOption) (r *EvmService)

NewEvmService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type EvmTransactionBulkScanParams

type EvmTransactionBulkScanParams struct {
	// The chain name
	Chain param.Field[string] `json:"chain,required"`
	// Transaction bulk parameters
	Data param.Field[[]EvmTransactionBulkScanParamsData] `json:"data,required"`
	// Object of additional information to validate against.
	Metadata param.Field[EvmTransactionBulkScanParamsMetadata] `json:"metadata,required"`
	// List of one or both of options for the desired output. "simulation" - include
	// simulation output in your response. "validation" - include security validation
	// of the transaction in your response. Default is ["validation"]
	Options param.Field[[]EvmTransactionBulkScanParamsOption] `json:"options"`
}

func (EvmTransactionBulkScanParams) MarshalJSON

func (r EvmTransactionBulkScanParams) MarshalJSON() (data []byte, err error)

type EvmTransactionBulkScanParamsData

type EvmTransactionBulkScanParamsData struct {
	// The source address of the transaction in hex string format
	From param.Field[string] `json:"from,required"`
	// The encoded call data of the transaction in hex string format
	Data param.Field[string] `json:"data"`
	// The gas required for the transaction in hex string format.
	Gas param.Field[string] `json:"gas"`
	// The gas price for the transaction in hex string format.
	GasPrice param.Field[string] `json:"gas_price"`
	// The destination address of the transaction in hex string format
	To param.Field[string] `json:"to"`
	// The value of the transaction in Wei in hex string format
	Value param.Field[string] `json:"value"`
}

func (EvmTransactionBulkScanParamsData) MarshalJSON

func (r EvmTransactionBulkScanParamsData) MarshalJSON() (data []byte, err error)

type EvmTransactionBulkScanParamsMetadata

type EvmTransactionBulkScanParamsMetadata struct {
	// cross reference transaction against the domain.
	Domain param.Field[string] `json:"domain,required"`
}

Object of additional information to validate against.

func (EvmTransactionBulkScanParamsMetadata) MarshalJSON

func (r EvmTransactionBulkScanParamsMetadata) MarshalJSON() (data []byte, err error)

type EvmTransactionBulkScanParamsOption

type EvmTransactionBulkScanParamsOption string

An enumeration.

const (
	EvmTransactionBulkScanParamsOptionValidation    EvmTransactionBulkScanParamsOption = "validation"
	EvmTransactionBulkScanParamsOptionSimulation    EvmTransactionBulkScanParamsOption = "simulation"
	EvmTransactionBulkScanParamsOptionGasEstimation EvmTransactionBulkScanParamsOption = "gas_estimation"
	EvmTransactionBulkScanParamsOptionEvents        EvmTransactionBulkScanParamsOption = "events"
)

func (EvmTransactionBulkScanParamsOption) IsKnown

type EvmTransactionBulkService

type EvmTransactionBulkService struct {
	Options []option.RequestOption
}

EvmTransactionBulkService contains methods and other services that help with interacting with the blockaid API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEvmTransactionBulkService method instead.

func NewEvmTransactionBulkService

func NewEvmTransactionBulkService(opts ...option.RequestOption) (r *EvmTransactionBulkService)

NewEvmTransactionBulkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*EvmTransactionBulkService) Scan

Gets a bulk of transactions and returns a simulation showcasing the outcome after executing the transactions synchronously, along with a suggested course of action and textual explanations highlighting the reasons for flagging the bulk in that manner.

type EvmTransactionScanParams

type EvmTransactionScanParams struct {
	// The address to relate the transaction to. Account address determines in which
	// perspective the transaction is simulated and validated.
	AccountAddress param.Field[string] `json:"account_address,required"`
	// The chain name
	Chain param.Field[string] `json:"chain,required"`
	// Transaction parameters
	Data param.Field[EvmTransactionScanParamsData] `json:"data,required"`
	// Object of additional information to validate against.
	Metadata param.Field[EvmTransactionScanParamsMetadata] `json:"metadata,required"`
	// List of one or both of options for the desired output. "simulation" - include
	// simulation output in your response. "validation" - include security validation
	// of the transaction in your response. Default is ["validation"]
	Options param.Field[[]EvmTransactionScanParamsOption] `json:"options"`
}

func (EvmTransactionScanParams) MarshalJSON

func (r EvmTransactionScanParams) MarshalJSON() (data []byte, err error)

type EvmTransactionScanParamsData

type EvmTransactionScanParamsData struct {
	// The source address of the transaction in hex string format
	From param.Field[string] `json:"from,required"`
	// The encoded call data of the transaction in hex string format
	Data param.Field[string] `json:"data"`
	// The gas required for the transaction in hex string format.
	Gas param.Field[string] `json:"gas"`
	// The gas price for the transaction in hex string format.
	GasPrice param.Field[string] `json:"gas_price"`
	// The destination address of the transaction in hex string format
	To param.Field[string] `json:"to"`
	// The value of the transaction in Wei in hex string format
	Value param.Field[string] `json:"value"`
}

Transaction parameters

func (EvmTransactionScanParamsData) MarshalJSON

func (r EvmTransactionScanParamsData) MarshalJSON() (data []byte, err error)

type EvmTransactionScanParamsMetadata

type EvmTransactionScanParamsMetadata struct {
	// cross reference transaction against the domain.
	Domain param.Field[string] `json:"domain,required"`
}

Object of additional information to validate against.

func (EvmTransactionScanParamsMetadata) MarshalJSON

func (r EvmTransactionScanParamsMetadata) MarshalJSON() (data []byte, err error)

type EvmTransactionScanParamsOption

type EvmTransactionScanParamsOption string

An enumeration.

const (
	EvmTransactionScanParamsOptionValidation EvmTransactionScanParamsOption = "validation"
	EvmTransactionScanParamsOptionSimulation EvmTransactionScanParamsOption = "simulation"
)

func (EvmTransactionScanParamsOption) IsKnown

type EvmTransactionService

type EvmTransactionService struct {
	Options []option.RequestOption
}

EvmTransactionService contains methods and other services that help with interacting with the blockaid API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEvmTransactionService method instead.

func NewEvmTransactionService

func NewEvmTransactionService(opts ...option.RequestOption) (r *EvmTransactionService)

NewEvmTransactionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*EvmTransactionService) Scan

Gets a transaction and returns a full simulation indicating what will happen in the transaction together with a recommended action and some textual reasons of why the transaction was flagged that way.

type EvmUserOperationScanParams

type EvmUserOperationScanParams struct {
	// The chain name
	Chain param.Field[string] `json:"chain,required"`
	// The user operation request that was received by the wallet
	Data param.Field[EvmUserOperationScanParamsData] `json:"data,required"`
	// Object of additional information to validate against.
	Metadata param.Field[EvmUserOperationScanParamsMetadata] `json:"metadata,required"`
	// The address of the account (wallet) sending the request in hex string format
	AccountAddress param.Field[string] `json:"account_address"`
	// List of one or both of options for the desired output. "simulation" - include
	// simulation output in your response. "validation" - include security validation
	// of the transaction in your response. Default is ["validation"]
	Options param.Field[[]EvmUserOperationScanParamsOption] `json:"options"`
}

func (EvmUserOperationScanParams) MarshalJSON

func (r EvmUserOperationScanParams) MarshalJSON() (data []byte, err error)

type EvmUserOperationScanParamsData

type EvmUserOperationScanParamsData struct {
	// The operation parameters of the user operation request
	Operation param.Field[EvmUserOperationScanParamsDataOperation] `json:"operation,required"`
	// The address of the entrypoint receiving the request in hex string format
	Entrypoint param.Field[string] `json:"entrypoint"`
}

The user operation request that was received by the wallet

func (EvmUserOperationScanParamsData) MarshalJSON

func (r EvmUserOperationScanParamsData) MarshalJSON() (data []byte, err error)

type EvmUserOperationScanParamsDataOperation

type EvmUserOperationScanParamsDataOperation struct {
	// The call data value in hex string format.
	CallData param.Field[string] `json:"call_data"`
	// The call gas limit value in hex string format.
	CallGasLimit param.Field[string] `json:"call_gas_limit"`
	// The init code value in hex string format.
	InitCode param.Field[string] `json:"init_code"`
	// The max fee per gas value in hex string format.
	MaxFeePerGas param.Field[string] `json:"max_fee_per_gas"`
	// The max priority fee per gas value in hex string format.
	MaxPriorityFeePerGas param.Field[string] `json:"max_priority_fee_per_gas"`
	// The nonce value in hex string format.
	Nonce param.Field[string] `json:"nonce"`
	// The paymaster and data value in hex string format.
	PaymasterAndData param.Field[string] `json:"paymaster_and_data"`
	// The pre verification gas value in hex string format.
	PreVerificationGas param.Field[string] `json:"pre_verification_gas"`
	// The sender address of the operation in hex string format
	Sender param.Field[string] `json:"sender"`
	// The signature value in hex string format.
	Signature param.Field[string] `json:"signature"`
	// The verification gas limit value in hex string format.
	VerificationGasLimit param.Field[string] `json:"verification_gas_limit"`
}

The operation parameters of the user operation request

func (EvmUserOperationScanParamsDataOperation) MarshalJSON

func (r EvmUserOperationScanParamsDataOperation) MarshalJSON() (data []byte, err error)

type EvmUserOperationScanParamsMetadata

type EvmUserOperationScanParamsMetadata struct {
	// cross reference transaction against the domain.
	Domain param.Field[string] `json:"domain,required"`
}

Object of additional information to validate against.

func (EvmUserOperationScanParamsMetadata) MarshalJSON

func (r EvmUserOperationScanParamsMetadata) MarshalJSON() (data []byte, err error)

type EvmUserOperationScanParamsOption

type EvmUserOperationScanParamsOption string

An enumeration.

const (
	EvmUserOperationScanParamsOptionValidation EvmUserOperationScanParamsOption = "validation"
	EvmUserOperationScanParamsOptionSimulation EvmUserOperationScanParamsOption = "simulation"
)

func (EvmUserOperationScanParamsOption) IsKnown

type EvmUserOperationService

type EvmUserOperationService struct {
	Options []option.RequestOption
}

EvmUserOperationService contains methods and other services that help with interacting with the blockaid API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEvmUserOperationService method instead.

func NewEvmUserOperationService

func NewEvmUserOperationService(opts ...option.RequestOption) (r *EvmUserOperationService)

NewEvmUserOperationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*EvmUserOperationService) Scan

Gets a user operation request and returns a full simulation indicating what will happen in the transaction together with a recommended action and some textual reasons of why the transaction was flagged that way.

type TransactionBulkResponse

type TransactionBulkResponse struct {
	Events        []TransactionBulkResponseEvent       `json:"events"`
	GasEstimation TransactionBulkResponseGasEstimation `json:"gas_estimation"`
	Simulation    TransactionBulkResponseSimulation    `json:"simulation"`
	Validation    TransactionBulkResponseValidation    `json:"validation"`
	JSON          transactionBulkResponseJSON          `json:"-"`
}

func (*TransactionBulkResponse) UnmarshalJSON

func (r *TransactionBulkResponse) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseEvent

type TransactionBulkResponseEvent struct {
	Data           string                               `json:"data,required"`
	EmitterAddress string                               `json:"emitter_address,required"`
	Topics         []string                             `json:"topics,required"`
	EmitterName    string                               `json:"emitter_name"`
	Error          string                               `json:"error"`
	Name           string                               `json:"name"`
	Params         []TransactionBulkResponseEventsParam `json:"params"`
	JSON           transactionBulkResponseEventJSON     `json:"-"`
}

func (*TransactionBulkResponseEvent) UnmarshalJSON

func (r *TransactionBulkResponseEvent) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseEventsParam

type TransactionBulkResponseEventsParam struct {
	Type         string                                        `json:"type,required"`
	Value        TransactionBulkResponseEventsParamsValueUnion `json:"value,required"`
	InternalType string                                        `json:"internalType"`
	Name         string                                        `json:"name"`
	JSON         transactionBulkResponseEventsParamJSON        `json:"-"`
}

func (*TransactionBulkResponseEventsParam) UnmarshalJSON

func (r *TransactionBulkResponseEventsParam) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseEventsParamsValueArray

type TransactionBulkResponseEventsParamsValueArray []interface{}

func (TransactionBulkResponseEventsParamsValueArray) ImplementsTransactionBulkResponseEventsParamsValueUnion

func (r TransactionBulkResponseEventsParamsValueArray) ImplementsTransactionBulkResponseEventsParamsValueUnion()

type TransactionBulkResponseEventsParamsValueUnion

type TransactionBulkResponseEventsParamsValueUnion interface {
	ImplementsTransactionBulkResponseEventsParamsValueUnion()
}

Union satisfied by shared.UnionString, [TransactionBulkResponseEventsParamsValueUnknown] or TransactionBulkResponseEventsParamsValueArray.

type TransactionBulkResponseGasEstimation

type TransactionBulkResponseGasEstimation struct {
	Used     int64                                    `json:"used"`
	Estimate int64                                    `json:"estimate"`
	Error    string                                   `json:"error"`
	JSON     transactionBulkResponseGasEstimationJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionBulkResponseGasEstimation) AsUnion

func (*TransactionBulkResponseGasEstimation) UnmarshalJSON

func (r *TransactionBulkResponseGasEstimation) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseGasEstimationTransactionScanGasEstimation

type TransactionBulkResponseGasEstimationTransactionScanGasEstimation struct {
	Estimate int64                                                                `json:"estimate"`
	Used     int64                                                                `json:"used"`
	JSON     transactionBulkResponseGasEstimationTransactionScanGasEstimationJSON `json:"-"`
}

func (*TransactionBulkResponseGasEstimationTransactionScanGasEstimation) UnmarshalJSON

type TransactionBulkResponseGasEstimationTransactionScanGasEstimationError

type TransactionBulkResponseGasEstimationTransactionScanGasEstimationError struct {
	Error string                                                                    `json:"error,required"`
	JSON  transactionBulkResponseGasEstimationTransactionScanGasEstimationErrorJSON `json:"-"`
}

func (*TransactionBulkResponseGasEstimationTransactionScanGasEstimationError) UnmarshalJSON

type TransactionBulkResponseGasEstimationUnion

type TransactionBulkResponseGasEstimationUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by TransactionBulkResponseGasEstimationTransactionScanGasEstimation or TransactionBulkResponseGasEstimationTransactionScanGasEstimationError.

type TransactionBulkResponseSimulation

type TransactionBulkResponseSimulation struct {
	AssetsDiffs      interface{} `json:"assets_diffs,required"`
	TotalUsdDiff     interface{} `json:"total_usd_diff,required"`
	Exposures        interface{} `json:"exposures,required"`
	TotalUsdExposure interface{} `json:"total_usd_exposure,required"`
	AddressDetails   interface{} `json:"address_details,required"`
	AccountSummary   interface{} `json:"account_summary,required"`
	// An error message if the simulation failed.
	Error string                                `json:"error"`
	JSON  transactionBulkResponseSimulationJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionBulkResponseSimulation) AsUnion

func (*TransactionBulkResponseSimulation) UnmarshalJSON

func (r *TransactionBulkResponseSimulation) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseSimulationTransactionSimulation

type TransactionBulkResponseSimulationTransactionSimulation struct {
	// Account summary for the account address. account address is determined implicit
	// by the `from` field in the transaction request, or explicit by the
	// account_address field in the request.
	AccountSummary TransactionBulkResponseSimulationTransactionSimulationAccountSummary `json:"account_summary,required"`
	// a dictionary including additional information about each relevant address in the
	// transaction.
	AddressDetails map[string]TransactionBulkResponseSimulationTransactionSimulationAddressDetail `json:"address_details"`
	// dictionary describes the assets differences as a result of this transaction for
	// every involved address
	AssetsDiffs map[string][]TransactionBulkResponseSimulationTransactionSimulationAssetsDiff `json:"assets_diffs"`
	// dictionary describes the exposure differences as a result of this transaction
	// for every involved address (as a result of any approval / setApproval / permit
	// function)
	Exposures map[string][]TransactionBulkResponseSimulationTransactionSimulationExposure `json:"exposures"`
	// dictionary represents the usd value each address gained / lost during this
	// transaction
	TotalUsdDiff map[string]TransactionBulkResponseSimulationTransactionSimulationTotalUsdDiff `json:"total_usd_diff"`
	// a dictionary representing the usd value each address is exposed to, split by
	// spenders
	TotalUsdExposure map[string]map[string]string                               `json:"total_usd_exposure"`
	JSON             transactionBulkResponseSimulationTransactionSimulationJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulation) UnmarshalJSON

func (r *TransactionBulkResponseSimulationTransactionSimulation) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseSimulationTransactionSimulationAccountSummary

type TransactionBulkResponseSimulationTransactionSimulationAccountSummary struct {
	// All assets diffs related to the account address
	AssetsDiffs []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiff `json:"assets_diffs,required"`
	// All assets exposures related to the account address
	Exposures []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposure `json:"exposures,required"`
	// Total usd diff related to the account address
	TotalUsdDiff TransactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff `json:"total_usd_diff,required"`
	// Total usd exposure related to the account address
	TotalUsdExposure map[string]string                                                        `json:"total_usd_exposure,required"`
	JSON             transactionBulkResponseSimulationTransactionSimulationAccountSummaryJSON `json:"-"`
}

Account summary for the account address. account address is determined implicit by the `from` field in the transaction request, or explicit by the account_address field in the request.

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummary) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiff struct {
	// description of the asset for the current diff
	Asset TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset `json:"asset,required"`
	// amount of the asset that was transferred to the address in this transaction
	In []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn `json:"in,required"`
	// amount of the asset that was transferred from the address in this transaction
	Out  []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut `json:"out,required"`
	JSON transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffJSON   `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType `json:"type,required"`
	// asset's decimals
	Decimals  int64                                                                                    `json:"decimals"`
	ChainName string                                                                                   `json:"chain_name"`
	ChainID   int64                                                                                    `json:"chain_id"`
	JSON      transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                      `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                    `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                     `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails struct {
	ChainID   int64  `json:"chain_id,required"`
	ChainName string `json:"chain_name,required"`
	Decimals  int64  `json:"decimals,required"`
	LogoURL   string `json:"logo_url,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType `json:"type,required"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                     `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                     `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc20   TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC20"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC1155"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc721  TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC721"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNonerc  TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NONERC"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNative  TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NATIVE"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                               `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                          `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                        `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                         `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                         `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                           `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                         `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                          `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                          `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposure struct {
	// description of the asset for the current diff
	Asset TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAsset `json:"asset,required"`
	// dictionary of spender addresses where the exposure has changed during this
	// transaction for the current address and asset
	Spenders map[string]TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender `json:"spenders,required"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposureJSON                `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAsset

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType `json:"type,required"`
	// asset's decimals
	Decimals int64                                                                                  `json:"decimals"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAsset) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                    `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                  `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                   `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                   `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc20   TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC20"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC1155"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc721  TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC721"
	TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeNonerc  TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "NONERC"
)

func (TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender struct {
	Exposure interface{} `json:"exposure"`
	// user friendly description of the approval
	Summary string `json:"summary"`
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64 `json:"approval"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool                                                                                     `json:"is_approved_for_all"`
	JSON             transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpenderJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure struct {
	Exposure []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                                   `json:"summary"`
	JSON    transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                          `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                     `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                   `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                    `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                    `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure struct {
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64                                                                                                        `json:"approval,required"`
	Exposure []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure `json:"exposure,required"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// user friendly description of the approval
	Summary string                                                                                                 `json:"summary"`
	JSON    transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                        `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                   `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                 `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                  `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                  `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure struct {
	Exposure []TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                                  `json:"summary"`
	JSON    transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                         `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                    `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                  `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                   `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                   `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff

type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff struct {
	In    string                                                                               `json:"in,required"`
	Out   string                                                                               `json:"out,required"`
	Total string                                                                               `json:"total,required"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiffJSON `json:"-"`
}

Total usd diff related to the account address

func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAddressDetail

type TransactionBulkResponseSimulationTransactionSimulationAddressDetail struct {
	// contains the contract's name if the address is a verified contract
	ContractName string `json:"contract_name"`
	// known name tag for the address
	NameTag string                                                                  `json:"name_tag"`
	JSON    transactionBulkResponseSimulationTransactionSimulationAddressDetailJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAddressDetail) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiff struct {
	// description of the asset for the current diff
	Asset TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAsset `json:"asset,required"`
	// amount of the asset that was transferred to the address in this transaction
	In []TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn `json:"in,required"`
	// amount of the asset that was transferred from the address in this transaction
	Out  []TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut `json:"out,required"`
	JSON transactionBulkResponseSimulationTransactionSimulationAssetsDiffJSON   `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAsset

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType `json:"type,required"`
	// asset's decimals
	Decimals  int64                                                                      `json:"decimals"`
	ChainName string                                                                     `json:"chain_name"`
	ChainID   int64                                                                      `json:"chain_id"`
	JSON      transactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAsset) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                        `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                      `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                       `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails struct {
	ChainID   int64  `json:"chain_id,required"`
	ChainName string `json:"chain_name,required"`
	Decimals  int64  `json:"decimals,required"`
	LogoURL   string `json:"logo_url,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType `json:"type,required"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                       `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                       `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetTypeErc20   TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType = "ERC20"
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType = "ERC1155"
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetTypeErc721  TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType = "ERC721"
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetTypeNonerc  TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType = "NONERC"
	TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetTypeNative  TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType = "NATIVE"
)

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                 `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAssetsDiffsInJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn) AsUnion

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                            `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                          `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                           `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                           `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                  `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut) AsUnion

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                             `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                           `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                            `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                            `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationError

type TransactionBulkResponseSimulationTransactionSimulationError struct {
	// An error message if the simulation failed.
	Error string                                                          `json:"error,required"`
	JSON  transactionBulkResponseSimulationTransactionSimulationErrorJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationError) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposure

type TransactionBulkResponseSimulationTransactionSimulationExposure struct {
	// description of the asset for the current diff
	Asset TransactionBulkResponseSimulationTransactionSimulationExposuresAsset `json:"asset,required"`
	// dictionary of spender addresses where the exposure has changed during this
	// transaction for the current address and asset
	Spenders map[string]TransactionBulkResponseSimulationTransactionSimulationExposuresSpender `json:"spenders,required"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposureJSON                `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresAsset

type TransactionBulkResponseSimulationTransactionSimulationExposuresAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType `json:"type,required"`
	// asset's decimals
	Decimals int64                                                                    `json:"decimals"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (TransactionBulkResponseSimulationTransactionSimulationExposuresAsset) AsUnion

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresAsset) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                      `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                    `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                     `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                     `json:"symbol"`
	JSON   transactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType

type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType string

asset type.

const (
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeErc20   TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "ERC20"
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "ERC1155"
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeErc721  TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "ERC721"
	TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeNonerc  TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "NONERC"
)

func (TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType) IsKnown

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpender

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpender struct {
	Exposure interface{} `json:"exposure"`
	// user friendly description of the approval
	Summary string `json:"summary"`
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64 `json:"approval"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool                                                                       `json:"is_approved_for_all"`
	JSON             transactionBulkResponseSimulationTransactionSimulationExposuresSpenderJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpender) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure struct {
	Exposure []TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                     `json:"summary"`
	JSON    transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                            `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                       `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                     `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                      `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                      `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure struct {
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64                                                                                          `json:"approval,required"`
	Exposure []TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure `json:"exposure,required"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// user friendly description of the approval
	Summary string                                                                                   `json:"summary"`
	JSON    transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                          `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                     `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                   `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                    `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                    `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure struct {
	Exposure []TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                    `json:"summary"`
	JSON    transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                           `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                      `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                    `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                     `json:"usd_price"`
	JSON     transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff

type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                     `json:"value"`
	JSON  transactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON

type TransactionBulkResponseSimulationTransactionSimulationTotalUsdDiff

type TransactionBulkResponseSimulationTransactionSimulationTotalUsdDiff struct {
	In    string                                                                 `json:"in,required"`
	Out   string                                                                 `json:"out,required"`
	Total string                                                                 `json:"total,required"`
	JSON  transactionBulkResponseSimulationTransactionSimulationTotalUsdDiffJSON `json:"-"`
}

func (*TransactionBulkResponseSimulationTransactionSimulationTotalUsdDiff) UnmarshalJSON

type TransactionBulkResponseSimulationUnion

type TransactionBulkResponseSimulationUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by TransactionBulkResponseSimulationTransactionSimulation or TransactionBulkResponseSimulationTransactionSimulationError.

type TransactionBulkResponseValidation

type TransactionBulkResponseValidation struct {
	// An enumeration.
	ResultType TransactionBulkResponseValidationResultType `json:"result_type,required"`
	// A textual description that can be presented to the user about what this
	// transaction is doing.
	Description string `json:"description"`
	// A textual description about the reasons the transaction was flagged with
	// result_type.
	Reason string `json:"reason"`
	// A textual classification that can be presented to the user explaining the
	// reason.
	Classification string      `json:"classification"`
	Features       interface{} `json:"features"`
	// An error message if the validation failed.
	Error string                                `json:"error"`
	JSON  transactionBulkResponseValidationJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionBulkResponseValidation) AsUnion

func (*TransactionBulkResponseValidation) UnmarshalJSON

func (r *TransactionBulkResponseValidation) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseValidationResultType

type TransactionBulkResponseValidationResultType string

An enumeration.

const (
	TransactionBulkResponseValidationResultTypeBenign    TransactionBulkResponseValidationResultType = "Benign"
	TransactionBulkResponseValidationResultTypeWarning   TransactionBulkResponseValidationResultType = "Warning"
	TransactionBulkResponseValidationResultTypeMalicious TransactionBulkResponseValidationResultType = "Malicious"
	TransactionBulkResponseValidationResultTypeError     TransactionBulkResponseValidationResultType = "Error"
)

func (TransactionBulkResponseValidationResultType) IsKnown

type TransactionBulkResponseValidationTransactionValidation

type TransactionBulkResponseValidationTransactionValidation struct {
	// A list of features about this transaction explaining the validation.
	Features []TransactionBulkResponseValidationTransactionValidationFeature `json:"features,required"`
	// An enumeration.
	ResultType TransactionBulkResponseValidationTransactionValidationResultType `json:"result_type,required"`
	// A textual classification that can be presented to the user explaining the
	// reason.
	Classification string `json:"classification"`
	// A textual description that can be presented to the user about what this
	// transaction is doing.
	Description string `json:"description"`
	// A textual description about the reasons the transaction was flagged with
	// result_type.
	Reason string                                                     `json:"reason"`
	JSON   transactionBulkResponseValidationTransactionValidationJSON `json:"-"`
}

func (*TransactionBulkResponseValidationTransactionValidation) UnmarshalJSON

func (r *TransactionBulkResponseValidationTransactionValidation) UnmarshalJSON(data []byte) (err error)

type TransactionBulkResponseValidationTransactionValidationFeature

type TransactionBulkResponseValidationTransactionValidationFeature struct {
	// Textual description
	Description string `json:"description,required"`
	// Feature name
	FeatureID string `json:"feature_id,required"`
	// An enumeration.
	Type TransactionBulkResponseValidationTransactionValidationFeaturesType `json:"type,required"`
	// Address the feature refers to
	Address string                                                            `json:"address"`
	JSON    transactionBulkResponseValidationTransactionValidationFeatureJSON `json:"-"`
}

func (*TransactionBulkResponseValidationTransactionValidationFeature) UnmarshalJSON

type TransactionBulkResponseValidationTransactionValidationFeaturesType

type TransactionBulkResponseValidationTransactionValidationFeaturesType string

An enumeration.

const (
	TransactionBulkResponseValidationTransactionValidationFeaturesTypeMalicious TransactionBulkResponseValidationTransactionValidationFeaturesType = "Malicious"
	TransactionBulkResponseValidationTransactionValidationFeaturesTypeWarning   TransactionBulkResponseValidationTransactionValidationFeaturesType = "Warning"
	TransactionBulkResponseValidationTransactionValidationFeaturesTypeBenign    TransactionBulkResponseValidationTransactionValidationFeaturesType = "Benign"
	TransactionBulkResponseValidationTransactionValidationFeaturesTypeInfo      TransactionBulkResponseValidationTransactionValidationFeaturesType = "Info"
)

func (TransactionBulkResponseValidationTransactionValidationFeaturesType) IsKnown

type TransactionBulkResponseValidationTransactionValidationResultType

type TransactionBulkResponseValidationTransactionValidationResultType string

An enumeration.

const (
	TransactionBulkResponseValidationTransactionValidationResultTypeBenign    TransactionBulkResponseValidationTransactionValidationResultType = "Benign"
	TransactionBulkResponseValidationTransactionValidationResultTypeWarning   TransactionBulkResponseValidationTransactionValidationResultType = "Warning"
	TransactionBulkResponseValidationTransactionValidationResultTypeMalicious TransactionBulkResponseValidationTransactionValidationResultType = "Malicious"
)

func (TransactionBulkResponseValidationTransactionValidationResultType) IsKnown

type TransactionBulkResponseValidationTransactrionValidationError

type TransactionBulkResponseValidationTransactrionValidationError struct {
	// A textual classification that can be presented to the user explaining the
	// reason.
	Classification TransactionBulkResponseValidationTransactrionValidationErrorClassification `json:"classification,required"`
	// A textual description that can be presented to the user about what this
	// transaction is doing.
	Description TransactionBulkResponseValidationTransactrionValidationErrorDescription `json:"description,required"`
	// An error message if the validation failed.
	Error string `json:"error,required"`
	// A list of features about this transaction explaining the validation.
	Features []TransactionBulkResponseValidationTransactrionValidationErrorFeature `json:"features,required"`
	// A textual description about the reasons the transaction was flagged with
	// result_type.
	Reason TransactionBulkResponseValidationTransactrionValidationErrorReason `json:"reason,required"`
	// A string indicating if the transaction is safe to sign or not.
	ResultType TransactionBulkResponseValidationTransactrionValidationErrorResultType `json:"result_type,required"`
	JSON       transactionBulkResponseValidationTransactrionValidationErrorJSON       `json:"-"`
}

func (*TransactionBulkResponseValidationTransactrionValidationError) UnmarshalJSON

type TransactionBulkResponseValidationTransactrionValidationErrorClassification

type TransactionBulkResponseValidationTransactrionValidationErrorClassification string

A textual classification that can be presented to the user explaining the reason.

const (
	TransactionBulkResponseValidationTransactrionValidationErrorClassificationEmpty TransactionBulkResponseValidationTransactrionValidationErrorClassification = ""
)

func (TransactionBulkResponseValidationTransactrionValidationErrorClassification) IsKnown

type TransactionBulkResponseValidationTransactrionValidationErrorDescription

type TransactionBulkResponseValidationTransactrionValidationErrorDescription string

A textual description that can be presented to the user about what this transaction is doing.

const (
	TransactionBulkResponseValidationTransactrionValidationErrorDescriptionEmpty TransactionBulkResponseValidationTransactrionValidationErrorDescription = ""
)

func (TransactionBulkResponseValidationTransactrionValidationErrorDescription) IsKnown

type TransactionBulkResponseValidationTransactrionValidationErrorFeature

type TransactionBulkResponseValidationTransactrionValidationErrorFeature struct {
	// Textual description
	Description string `json:"description,required"`
	// Feature name
	FeatureID string `json:"feature_id,required"`
	// An enumeration.
	Type TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType `json:"type,required"`
	// Address the feature refers to
	Address string                                                                  `json:"address"`
	JSON    transactionBulkResponseValidationTransactrionValidationErrorFeatureJSON `json:"-"`
}

func (*TransactionBulkResponseValidationTransactrionValidationErrorFeature) UnmarshalJSON

type TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType

type TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType string

An enumeration.

const (
	TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeMalicious TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Malicious"
	TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeWarning   TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Warning"
	TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeBenign    TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Benign"
	TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeInfo      TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Info"
)

func (TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType) IsKnown

type TransactionBulkResponseValidationTransactrionValidationErrorReason

type TransactionBulkResponseValidationTransactrionValidationErrorReason string

A textual description about the reasons the transaction was flagged with result_type.

const (
	TransactionBulkResponseValidationTransactrionValidationErrorReasonEmpty TransactionBulkResponseValidationTransactrionValidationErrorReason = ""
)

func (TransactionBulkResponseValidationTransactrionValidationErrorReason) IsKnown

type TransactionBulkResponseValidationTransactrionValidationErrorResultType

type TransactionBulkResponseValidationTransactrionValidationErrorResultType string

A string indicating if the transaction is safe to sign or not.

const (
	TransactionBulkResponseValidationTransactrionValidationErrorResultTypeError TransactionBulkResponseValidationTransactrionValidationErrorResultType = "Error"
)

func (TransactionBulkResponseValidationTransactrionValidationErrorResultType) IsKnown

type TransactionBulkResponseValidationUnion

type TransactionBulkResponseValidationUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by TransactionBulkResponseValidationTransactionValidation or TransactionBulkResponseValidationTransactrionValidationError.

type TransactionScanResponse

type TransactionScanResponse struct {
	Simulation TransactionScanResponseSimulation `json:"simulation"`
	Validation TransactionScanResponseValidation `json:"validation"`
	JSON       transactionScanResponseJSON       `json:"-"`
}

func (*TransactionScanResponse) UnmarshalJSON

func (r *TransactionScanResponse) UnmarshalJSON(data []byte) (err error)

type TransactionScanResponseSimulation

type TransactionScanResponseSimulation struct {
	AssetsDiffs      interface{} `json:"assets_diffs,required"`
	TotalUsdDiff     interface{} `json:"total_usd_diff,required"`
	Exposures        interface{} `json:"exposures,required"`
	TotalUsdExposure interface{} `json:"total_usd_exposure,required"`
	AddressDetails   interface{} `json:"address_details,required"`
	AccountSummary   interface{} `json:"account_summary,required"`
	// An error message if the simulation failed.
	Error string                                `json:"error"`
	JSON  transactionScanResponseSimulationJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionScanResponseSimulation) AsUnion

func (*TransactionScanResponseSimulation) UnmarshalJSON

func (r *TransactionScanResponseSimulation) UnmarshalJSON(data []byte) (err error)

type TransactionScanResponseSimulationTransactionSimulation

type TransactionScanResponseSimulationTransactionSimulation struct {
	// Account summary for the account address. account address is determined implicit
	// by the `from` field in the transaction request, or explicit by the
	// account_address field in the request.
	AccountSummary TransactionScanResponseSimulationTransactionSimulationAccountSummary `json:"account_summary,required"`
	// a dictionary including additional information about each relevant address in the
	// transaction.
	AddressDetails map[string]TransactionScanResponseSimulationTransactionSimulationAddressDetail `json:"address_details"`
	// dictionary describes the assets differences as a result of this transaction for
	// every involved address
	AssetsDiffs map[string][]TransactionScanResponseSimulationTransactionSimulationAssetsDiff `json:"assets_diffs"`
	// dictionary describes the exposure differences as a result of this transaction
	// for every involved address (as a result of any approval / setApproval / permit
	// function)
	Exposures map[string][]TransactionScanResponseSimulationTransactionSimulationExposure `json:"exposures"`
	// dictionary represents the usd value each address gained / lost during this
	// transaction
	TotalUsdDiff map[string]TransactionScanResponseSimulationTransactionSimulationTotalUsdDiff `json:"total_usd_diff"`
	// a dictionary representing the usd value each address is exposed to, split by
	// spenders
	TotalUsdExposure map[string]map[string]string                               `json:"total_usd_exposure"`
	JSON             transactionScanResponseSimulationTransactionSimulationJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulation) UnmarshalJSON

func (r *TransactionScanResponseSimulationTransactionSimulation) UnmarshalJSON(data []byte) (err error)

type TransactionScanResponseSimulationTransactionSimulationAccountSummary

type TransactionScanResponseSimulationTransactionSimulationAccountSummary struct {
	// All assets diffs related to the account address
	AssetsDiffs []TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiff `json:"assets_diffs,required"`
	// All assets exposures related to the account address
	Exposures []TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposure `json:"exposures,required"`
	// Total usd diff related to the account address
	TotalUsdDiff TransactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff `json:"total_usd_diff,required"`
	// Total usd exposure related to the account address
	TotalUsdExposure map[string]string                                                        `json:"total_usd_exposure,required"`
	JSON             transactionScanResponseSimulationTransactionSimulationAccountSummaryJSON `json:"-"`
}

Account summary for the account address. account address is determined implicit by the `from` field in the transaction request, or explicit by the account_address field in the request.

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummary) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiff struct {
	// description of the asset for the current diff
	Asset TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset `json:"asset,required"`
	// amount of the asset that was transferred to the address in this transaction
	In []TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn `json:"in,required"`
	// amount of the asset that was transferred from the address in this transaction
	Out  []TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut `json:"out,required"`
	JSON transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffJSON   `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType `json:"type,required"`
	// asset's decimals
	Decimals  int64                                                                                    `json:"decimals"`
	ChainName string                                                                                   `json:"chain_name"`
	ChainID   int64                                                                                    `json:"chain_id"`
	JSON      transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                      `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                    `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                     `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails struct {
	ChainID   int64  `json:"chain_id,required"`
	ChainName string `json:"chain_name,required"`
	Decimals  int64  `json:"decimals,required"`
	LogoURL   string `json:"logo_url,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType `json:"type,required"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                     `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                     `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc20   TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC20"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC1155"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc721  TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC721"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNonerc  TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NONERC"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNative  TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NATIVE"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                               `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                          `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                        `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                         `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                         `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                           `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                         `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                          `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                          `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposure struct {
	// description of the asset for the current diff
	Asset TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAsset `json:"asset,required"`
	// dictionary of spender addresses where the exposure has changed during this
	// transaction for the current address and asset
	Spenders map[string]TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender `json:"spenders,required"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposureJSON                `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAsset

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType `json:"type,required"`
	// asset's decimals
	Decimals int64                                                                                  `json:"decimals"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAsset) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                    `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                  `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                   `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                                   `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc20   TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC20"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC1155"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc721  TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC721"
	TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeNonerc  TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "NONERC"
)

func (TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender struct {
	Exposure interface{} `json:"exposure"`
	// user friendly description of the approval
	Summary string `json:"summary"`
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64 `json:"approval"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool                                                                                     `json:"is_approved_for_all"`
	JSON             transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpenderJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure struct {
	Exposure []TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                                   `json:"summary"`
	JSON    transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                          `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                     `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                   `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                    `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                    `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure struct {
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64                                                                                                        `json:"approval,required"`
	Exposure []TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure `json:"exposure,required"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// user friendly description of the approval
	Summary string                                                                                                 `json:"summary"`
	JSON    transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                        `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                   `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                 `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                  `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                  `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure struct {
	Exposure []TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                                  `json:"summary"`
	JSON    transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                         `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                    `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                  `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                                   `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                                   `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff

type TransactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff struct {
	In    string                                                                               `json:"in,required"`
	Out   string                                                                               `json:"out,required"`
	Total string                                                                               `json:"total,required"`
	JSON  transactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiffJSON `json:"-"`
}

Total usd diff related to the account address

func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAddressDetail

type TransactionScanResponseSimulationTransactionSimulationAddressDetail struct {
	// contains the contract's name if the address is a verified contract
	ContractName string `json:"contract_name"`
	// known name tag for the address
	NameTag string                                                                  `json:"name_tag"`
	JSON    transactionScanResponseSimulationTransactionSimulationAddressDetailJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAddressDetail) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiff struct {
	// description of the asset for the current diff
	Asset TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAsset `json:"asset,required"`
	// amount of the asset that was transferred to the address in this transaction
	In []TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn `json:"in,required"`
	// amount of the asset that was transferred from the address in this transaction
	Out  []TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut `json:"out,required"`
	JSON transactionScanResponseSimulationTransactionSimulationAssetsDiffJSON   `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAsset

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType `json:"type,required"`
	// asset's decimals
	Decimals  int64                                                                      `json:"decimals"`
	ChainName string                                                                     `json:"chain_name"`
	ChainID   int64                                                                      `json:"chain_id"`
	JSON      transactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAsset) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                        `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                      `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                       `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails struct {
	ChainID   int64  `json:"chain_id,required"`
	ChainName string `json:"chain_name,required"`
	Decimals  int64  `json:"decimals,required"`
	LogoURL   string `json:"logo_url,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType `json:"type,required"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                       `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                       `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetTypeErc20   TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType = "ERC20"
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType = "ERC1155"
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetTypeErc721  TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType = "ERC721"
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetTypeNonerc  TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType = "NONERC"
	TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetTypeNative  TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType = "NATIVE"
)

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                 `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAssetsDiffsInJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn) AsUnion

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                            `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                          `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                           `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                           `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                  `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAssetsDiffsOutJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut) AsUnion

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                             `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                           `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                            `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff

type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                            `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationError

type TransactionScanResponseSimulationTransactionSimulationError struct {
	// An error message if the simulation failed.
	Error string                                                          `json:"error,required"`
	JSON  transactionScanResponseSimulationTransactionSimulationErrorJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationError) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposure

type TransactionScanResponseSimulationTransactionSimulationExposure struct {
	// description of the asset for the current diff
	Asset TransactionScanResponseSimulationTransactionSimulationExposuresAsset `json:"asset,required"`
	// dictionary of spender addresses where the exposure has changed during this
	// transaction for the current address and asset
	Spenders map[string]TransactionScanResponseSimulationTransactionSimulationExposuresSpender `json:"spenders,required"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposureJSON                `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresAsset

type TransactionScanResponseSimulationTransactionSimulationExposuresAsset struct {
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string `json:"symbol"`
	// address of the token
	Address string `json:"address,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationExposuresAssetType `json:"type,required"`
	// asset's decimals
	Decimals int64                                                                    `json:"decimals"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresAssetJSON `json:"-"`
	// contains filtered or unexported fields
}

description of the asset for the current diff

func (TransactionScanResponseSimulationTransactionSimulationExposuresAsset) AsUnion

func (*TransactionScanResponseSimulationTransactionSimulationExposuresAsset) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                      `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType = "ERC1155"
)

func (TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset's decimals
	Decimals int64 `json:"decimals,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                    `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType = "ERC20"
)

func (TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                     `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType = "ERC721"
)

func (TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails struct {
	// address of the token
	Address string `json:"address,required"`
	// asset type.
	Type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType `json:"type,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// string represents the name of the asset
	Name string `json:"name"`
	// asset's symbol name
	Symbol string                                                                                     `json:"symbol"`
	JSON   transactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType = "NONERC"
)

func (TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetType

type TransactionScanResponseSimulationTransactionSimulationExposuresAssetType string

asset type.

const (
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeErc20   TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "ERC20"
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "ERC1155"
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeErc721  TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "ERC721"
	TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeNonerc  TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "NONERC"
)

func (TransactionScanResponseSimulationTransactionSimulationExposuresAssetType) IsKnown

type TransactionScanResponseSimulationTransactionSimulationExposuresSpender

type TransactionScanResponseSimulationTransactionSimulationExposuresSpender struct {
	Exposure interface{} `json:"exposure"`
	// user friendly description of the approval
	Summary string `json:"summary"`
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64 `json:"approval"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool                                                                       `json:"is_approved_for_all"`
	JSON             transactionScanResponseSimulationTransactionSimulationExposuresSpenderJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpender) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure struct {
	Exposure []TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                     `json:"summary"`
	JSON    transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                            `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                       `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                     `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                      `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                      `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure struct {
	// the amount that was asked in the approval request for this spender from the
	// current address and asset
	Approval int64                                                                                          `json:"approval,required"`
	Exposure []TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure `json:"exposure,required"`
	// the expiration time of the permit2 protocol
	Expiration time.Time `json:"expiration" format:"date-time"`
	// user friendly description of the approval
	Summary string                                                                                   `json:"summary"`
	JSON    transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                          `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                     `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                   `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                    `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                    `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure struct {
	Exposure []TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure `json:"exposure,required"`
	// boolean indicates whether an is_approved_for_all function was used (missing in
	// case of ERC20 / ERC1155)
	IsApprovedForAll bool `json:"is_approved_for_all,required"`
	// user friendly description of the approval
	Summary string                                                                                    `json:"summary"`
	JSON    transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure struct {
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// id of the token
	TokenID int64 `json:"token_id"`
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                           `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                      `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                    `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff struct {
	// id of the token
	TokenID int64 `json:"token_id,required"`
	// url of the token logo
	LogoURL string `json:"logo_url"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64                                                                                                     `json:"usd_price"`
	JSON     transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721DiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff

type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff struct {
	// value before divided by decimal, that was transferred from this address
	RawValue int64 `json:"raw_value,required"`
	// user friendly description of the asset transfer
	Summary string `json:"summary"`
	// usd equal of the asset that was transferred from this address
	UsdPrice float64 `json:"usd_price"`
	// value after divided by decimals, that was transferred from this address
	Value float64                                                                                                     `json:"value"`
	JSON  transactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON

type TransactionScanResponseSimulationTransactionSimulationTotalUsdDiff

type TransactionScanResponseSimulationTransactionSimulationTotalUsdDiff struct {
	In    string                                                                 `json:"in,required"`
	Out   string                                                                 `json:"out,required"`
	Total string                                                                 `json:"total,required"`
	JSON  transactionScanResponseSimulationTransactionSimulationTotalUsdDiffJSON `json:"-"`
}

func (*TransactionScanResponseSimulationTransactionSimulationTotalUsdDiff) UnmarshalJSON

type TransactionScanResponseSimulationUnion

type TransactionScanResponseSimulationUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by TransactionScanResponseSimulationTransactionSimulation or TransactionScanResponseSimulationTransactionSimulationError.

type TransactionScanResponseValidation

type TransactionScanResponseValidation struct {
	// An enumeration.
	ResultType TransactionScanResponseValidationResultType `json:"result_type,required"`
	// A textual description that can be presented to the user about what this
	// transaction is doing.
	Description string `json:"description"`
	// A textual description about the reasons the transaction was flagged with
	// result_type.
	Reason string `json:"reason"`
	// A textual classification that can be presented to the user explaining the
	// reason.
	Classification string      `json:"classification"`
	Features       interface{} `json:"features"`
	// An error message if the validation failed.
	Error string                                `json:"error"`
	JSON  transactionScanResponseValidationJSON `json:"-"`
	// contains filtered or unexported fields
}

func (TransactionScanResponseValidation) AsUnion

func (*TransactionScanResponseValidation) UnmarshalJSON

func (r *TransactionScanResponseValidation) UnmarshalJSON(data []byte) (err error)

type TransactionScanResponseValidationResultType

type TransactionScanResponseValidationResultType string

An enumeration.

const (
	TransactionScanResponseValidationResultTypeBenign    TransactionScanResponseValidationResultType = "Benign"
	TransactionScanResponseValidationResultTypeWarning   TransactionScanResponseValidationResultType = "Warning"
	TransactionScanResponseValidationResultTypeMalicious TransactionScanResponseValidationResultType = "Malicious"
	TransactionScanResponseValidationResultTypeError     TransactionScanResponseValidationResultType = "Error"
)

func (TransactionScanResponseValidationResultType) IsKnown

type TransactionScanResponseValidationTransactionValidation

type TransactionScanResponseValidationTransactionValidation struct {
	// A list of features about this transaction explaining the validation.
	Features []TransactionScanResponseValidationTransactionValidationFeature `json:"features,required"`
	// An enumeration.
	ResultType TransactionScanResponseValidationTransactionValidationResultType `json:"result_type,required"`
	// A textual classification that can be presented to the user explaining the
	// reason.
	Classification string `json:"classification"`
	// A textual description that can be presented to the user about what this
	// transaction is doing.
	Description string `json:"description"`
	// A textual description about the reasons the transaction was flagged with
	// result_type.
	Reason string                                                     `json:"reason"`
	JSON   transactionScanResponseValidationTransactionValidationJSON `json:"-"`
}

func (*TransactionScanResponseValidationTransactionValidation) UnmarshalJSON

func (r *TransactionScanResponseValidationTransactionValidation) UnmarshalJSON(data []byte) (err error)

type TransactionScanResponseValidationTransactionValidationFeature

type TransactionScanResponseValidationTransactionValidationFeature struct {
	// Textual description
	Description string `json:"description,required"`
	// Feature name
	FeatureID string `json:"feature_id,required"`
	// An enumeration.
	Type TransactionScanResponseValidationTransactionValidationFeaturesType `json:"type,required"`
	// Address the feature refers to
	Address string                                                            `json:"address"`
	JSON    transactionScanResponseValidationTransactionValidationFeatureJSON `json:"-"`
}

func (*TransactionScanResponseValidationTransactionValidationFeature) UnmarshalJSON

type TransactionScanResponseValidationTransactionValidationFeaturesType

type TransactionScanResponseValidationTransactionValidationFeaturesType string

An enumeration.

const (
	TransactionScanResponseValidationTransactionValidationFeaturesTypeMalicious TransactionScanResponseValidationTransactionValidationFeaturesType = "Malicious"
	TransactionScanResponseValidationTransactionValidationFeaturesTypeWarning   TransactionScanResponseValidationTransactionValidationFeaturesType = "Warning"
	TransactionScanResponseValidationTransactionValidationFeaturesTypeBenign    TransactionScanResponseValidationTransactionValidationFeaturesType = "Benign"
	TransactionScanResponseValidationTransactionValidationFeaturesTypeInfo      TransactionScanResponseValidationTransactionValidationFeaturesType = "Info"
)

func (TransactionScanResponseValidationTransactionValidationFeaturesType) IsKnown

type TransactionScanResponseValidationTransactionValidationResultType

type TransactionScanResponseValidationTransactionValidationResultType string

An enumeration.

const (
	TransactionScanResponseValidationTransactionValidationResultTypeBenign    TransactionScanResponseValidationTransactionValidationResultType = "Benign"
	TransactionScanResponseValidationTransactionValidationResultTypeWarning   TransactionScanResponseValidationTransactionValidationResultType = "Warning"
	TransactionScanResponseValidationTransactionValidationResultTypeMalicious TransactionScanResponseValidationTransactionValidationResultType = "Malicious"
)

func (TransactionScanResponseValidationTransactionValidationResultType) IsKnown

type TransactionScanResponseValidationTransactrionValidationError

type TransactionScanResponseValidationTransactrionValidationError struct {
	// A textual classification that can be presented to the user explaining the
	// reason.
	Classification TransactionScanResponseValidationTransactrionValidationErrorClassification `json:"classification,required"`
	// A textual description that can be presented to the user about what this
	// transaction is doing.
	Description TransactionScanResponseValidationTransactrionValidationErrorDescription `json:"description,required"`
	// An error message if the validation failed.
	Error string `json:"error,required"`
	// A list of features about this transaction explaining the validation.
	Features []TransactionScanResponseValidationTransactrionValidationErrorFeature `json:"features,required"`
	// A textual description about the reasons the transaction was flagged with
	// result_type.
	Reason TransactionScanResponseValidationTransactrionValidationErrorReason `json:"reason,required"`
	// A string indicating if the transaction is safe to sign or not.
	ResultType TransactionScanResponseValidationTransactrionValidationErrorResultType `json:"result_type,required"`
	JSON       transactionScanResponseValidationTransactrionValidationErrorJSON       `json:"-"`
}

func (*TransactionScanResponseValidationTransactrionValidationError) UnmarshalJSON

type TransactionScanResponseValidationTransactrionValidationErrorClassification

type TransactionScanResponseValidationTransactrionValidationErrorClassification string

A textual classification that can be presented to the user explaining the reason.

const (
	TransactionScanResponseValidationTransactrionValidationErrorClassificationEmpty TransactionScanResponseValidationTransactrionValidationErrorClassification = ""
)

func (TransactionScanResponseValidationTransactrionValidationErrorClassification) IsKnown

type TransactionScanResponseValidationTransactrionValidationErrorDescription

type TransactionScanResponseValidationTransactrionValidationErrorDescription string

A textual description that can be presented to the user about what this transaction is doing.

const (
	TransactionScanResponseValidationTransactrionValidationErrorDescriptionEmpty TransactionScanResponseValidationTransactrionValidationErrorDescription = ""
)

func (TransactionScanResponseValidationTransactrionValidationErrorDescription) IsKnown

type TransactionScanResponseValidationTransactrionValidationErrorFeature

type TransactionScanResponseValidationTransactrionValidationErrorFeature struct {
	// Textual description
	Description string `json:"description,required"`
	// Feature name
	FeatureID string `json:"feature_id,required"`
	// An enumeration.
	Type TransactionScanResponseValidationTransactrionValidationErrorFeaturesType `json:"type,required"`
	// Address the feature refers to
	Address string                                                                  `json:"address"`
	JSON    transactionScanResponseValidationTransactrionValidationErrorFeatureJSON `json:"-"`
}

func (*TransactionScanResponseValidationTransactrionValidationErrorFeature) UnmarshalJSON

type TransactionScanResponseValidationTransactrionValidationErrorFeaturesType

type TransactionScanResponseValidationTransactrionValidationErrorFeaturesType string

An enumeration.

const (
	TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeMalicious TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Malicious"
	TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeWarning   TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Warning"
	TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeBenign    TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Benign"
	TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeInfo      TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Info"
)

func (TransactionScanResponseValidationTransactrionValidationErrorFeaturesType) IsKnown

type TransactionScanResponseValidationTransactrionValidationErrorReason

type TransactionScanResponseValidationTransactrionValidationErrorReason string

A textual description about the reasons the transaction was flagged with result_type.

const (
	TransactionScanResponseValidationTransactrionValidationErrorReasonEmpty TransactionScanResponseValidationTransactrionValidationErrorReason = ""
)

func (TransactionScanResponseValidationTransactrionValidationErrorReason) IsKnown

type TransactionScanResponseValidationTransactrionValidationErrorResultType

type TransactionScanResponseValidationTransactrionValidationErrorResultType string

A string indicating if the transaction is safe to sign or not.

const (
	TransactionScanResponseValidationTransactrionValidationErrorResultTypeError TransactionScanResponseValidationTransactrionValidationErrorResultType = "Error"
)

func (TransactionScanResponseValidationTransactrionValidationErrorResultType) IsKnown

type TransactionScanResponseValidationUnion

type TransactionScanResponseValidationUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by TransactionScanResponseValidationTransactionValidation or TransactionScanResponseValidationTransactrionValidationError.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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