Documentation ¶
Index ¶
- func Bool(value bool) param.Field[bool]
- func F[T any](value T) param.Field[T]
- func FileParam(reader io.Reader, filename string, contentType string) param.Field[io.Reader]
- func Float(value float64) param.Field[float64]
- func Int(value int64) param.Field[int64]
- func Null[T any]() param.Field[T]
- func Raw[T any](value any) param.Field[T]
- func String(value string) param.Field[string]
- type Client
- func (r *Client) Delete(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, ...) error
- func (r *Client) Get(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Patch(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Post(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- func (r *Client) Put(ctx context.Context, path string, params interface{}, res interface{}, ...) error
- type Error
- type EvmJsonRpcScanParams
- type EvmJsonRpcScanParamsData
- type EvmJsonRpcScanParamsMetadata
- type EvmJsonRpcScanParamsOption
- type EvmJsonRpcService
- type EvmService
- type EvmTransactionBulkScanParams
- type EvmTransactionBulkScanParamsData
- type EvmTransactionBulkScanParamsMetadata
- type EvmTransactionBulkScanParamsOption
- type EvmTransactionBulkService
- type EvmTransactionScanParams
- type EvmTransactionScanParamsData
- type EvmTransactionScanParamsMetadata
- type EvmTransactionScanParamsOption
- type EvmTransactionService
- type EvmUserOperationScanParams
- type EvmUserOperationScanParamsData
- type EvmUserOperationScanParamsDataOperation
- type EvmUserOperationScanParamsMetadata
- type EvmUserOperationScanParamsOption
- type EvmUserOperationService
- type TransactionBulkResponse
- type TransactionBulkResponseEvent
- type TransactionBulkResponseEventsParam
- type TransactionBulkResponseEventsParamsValueArray
- type TransactionBulkResponseEventsParamsValueUnion
- type TransactionBulkResponseGasEstimation
- type TransactionBulkResponseGasEstimationTransactionScanGasEstimation
- type TransactionBulkResponseGasEstimationTransactionScanGasEstimationError
- type TransactionBulkResponseGasEstimationUnion
- type TransactionBulkResponseSimulation
- type TransactionBulkResponseSimulationTransactionSimulation
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummary
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAsset
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersUnion
- type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff
- type TransactionBulkResponseSimulationTransactionSimulationAddressDetail
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAsset
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetUnion
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInUnion
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutUnion
- type TransactionBulkResponseSimulationTransactionSimulationError
- type TransactionBulkResponseSimulationTransactionSimulationExposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAsset
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType
- type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetUnion
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpender
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureUnion
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureUnion
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureUnion
- type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersUnion
- type TransactionBulkResponseSimulationTransactionSimulationTotalUsdDiff
- type TransactionBulkResponseSimulationUnion
- type TransactionBulkResponseValidation
- type TransactionBulkResponseValidationResultType
- type TransactionBulkResponseValidationTransactionValidation
- type TransactionBulkResponseValidationTransactionValidationFeature
- type TransactionBulkResponseValidationTransactionValidationFeaturesType
- type TransactionBulkResponseValidationTransactionValidationResultType
- type TransactionBulkResponseValidationTransactrionValidationError
- type TransactionBulkResponseValidationTransactrionValidationErrorClassification
- type TransactionBulkResponseValidationTransactrionValidationErrorDescription
- type TransactionBulkResponseValidationTransactrionValidationErrorFeature
- type TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType
- type TransactionBulkResponseValidationTransactrionValidationErrorReason
- type TransactionBulkResponseValidationTransactrionValidationErrorResultType
- type TransactionBulkResponseValidationUnion
- type TransactionScanResponse
- type TransactionScanResponseSimulation
- type TransactionScanResponseSimulationTransactionSimulation
- type TransactionScanResponseSimulationTransactionSimulationAccountSummary
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAsset
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersUnion
- type TransactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff
- type TransactionScanResponseSimulationTransactionSimulationAddressDetail
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAsset
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetUnion
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInUnion
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutUnion
- type TransactionScanResponseSimulationTransactionSimulationError
- type TransactionScanResponseSimulationTransactionSimulationExposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresAsset
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetType
- type TransactionScanResponseSimulationTransactionSimulationExposuresAssetUnion
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpender
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureUnion
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureUnion
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureUnion
- type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersUnion
- type TransactionScanResponseSimulationTransactionSimulationTotalUsdDiff
- type TransactionScanResponseSimulationUnion
- type TransactionScanResponseValidation
- type TransactionScanResponseValidationResultType
- type TransactionScanResponseValidationTransactionValidation
- type TransactionScanResponseValidationTransactionValidationFeature
- type TransactionScanResponseValidationTransactionValidationFeaturesType
- type TransactionScanResponseValidationTransactionValidationResultType
- type TransactionScanResponseValidationTransactrionValidationError
- type TransactionScanResponseValidationTransactrionValidationErrorClassification
- type TransactionScanResponseValidationTransactrionValidationErrorDescription
- type TransactionScanResponseValidationTransactrionValidationErrorFeature
- type TransactionScanResponseValidationTransactrionValidationErrorFeaturesType
- type TransactionScanResponseValidationTransactrionValidationErrorReason
- type TransactionScanResponseValidationTransactrionValidationErrorResultType
- type TransactionScanResponseValidationUnion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func F ¶
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 Int ¶
Int is a param field helper which helps specify integers. This is particularly helpful when specifying integer constants for fields.
func Raw ¶
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).
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.
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 ¶
func (r *EvmJsonRpcService) Scan(ctx context.Context, body EvmJsonRpcScanParams, opts ...option.RequestOption) (res *TransactionScanResponse, err error)
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 ¶
func (r EvmTransactionBulkScanParamsOption) IsKnown() bool
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 ¶
func (r *EvmTransactionBulkService) Scan(ctx context.Context, body EvmTransactionBulkScanParams, opts ...option.RequestOption) (res *[]TransactionBulkResponse, err error)
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 ¶
func (r EvmTransactionScanParamsOption) IsKnown() bool
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 ¶
func (r *EvmTransactionService) Scan(ctx context.Context, body EvmTransactionScanParams, opts ...option.RequestOption) (res *TransactionScanResponse, err error)
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 ¶
func (r EvmUserOperationScanParamsOption) IsKnown() bool
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 ¶
func (r *EvmUserOperationService) Scan(ctx context.Context, body EvmUserOperationScanParams, opts ...option.RequestOption) (res *TransactionScanResponse, err error)
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 (r TransactionBulkResponseGasEstimation) AsUnion() TransactionBulkResponseGasEstimationUnion
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 ¶
func (r *TransactionBulkResponseGasEstimationTransactionScanGasEstimation) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseGasEstimationTransactionScanGasEstimationError ¶
type TransactionBulkResponseGasEstimationTransactionScanGasEstimationError struct { Error string `json:"error,required"` JSON transactionBulkResponseGasEstimationTransactionScanGasEstimationErrorJSON `json:"-"` }
func (*TransactionBulkResponseGasEstimationTransactionScanGasEstimationError) UnmarshalJSON ¶
func (r *TransactionBulkResponseGasEstimationTransactionScanGasEstimationError) UnmarshalJSON(data []byte) (err error)
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 (r TransactionBulkResponseSimulation) AsUnion() TransactionBulkResponseSimulationUnion
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummary) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiff) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType string
asset type.
const ( TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC20" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC1155" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC721" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NONERC" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNative TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NATIVE" )
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType = "NONERC"
)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType string
asset type.
const ( TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC20" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC1155" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC721" TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "NONERC" )
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails.
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpender) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff.
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure, TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure or TransactionBulkResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAddressDetail) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)
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 ¶
func (r TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetType) IsKnown() bool
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails or TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails.
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) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff.
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) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff, TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff or TransactionBulkResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff.
type TransactionBulkResponseSimulationTransactionSimulationError ¶
type TransactionBulkResponseSimulationTransactionSimulationError struct { // An error message if the simulation failed. Error string `json:"error,required"` JSON transactionBulkResponseSimulationTransactionSimulationErrorJSON `json:"-"` }
func (*TransactionBulkResponseSimulationTransactionSimulationError) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationError) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposure) UnmarshalJSON(data []byte) (err error)
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) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsTypeErc20 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsTypeErc721 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType string
asset type.
const (
TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsTypeNonerc TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType = "NONERC"
)
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType string
asset type.
const ( TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeErc20 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "ERC20" TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeErc1155 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "ERC1155" TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeErc721 TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "ERC721" TransactionBulkResponseSimulationTransactionSimulationExposuresAssetTypeNonerc TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType = "NONERC" )
func (TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType) IsKnown ¶
func (r TransactionBulkResponseSimulationTransactionSimulationExposuresAssetType) IsKnown() bool
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails, TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails, TransactionBulkResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails or TransactionBulkResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpender) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff or TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff or TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff or TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff.
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersUnion ¶
type TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure, TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure or TransactionBulkResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure.
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 ¶
func (r *TransactionBulkResponseSimulationTransactionSimulationTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
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 (r TransactionBulkResponseValidation) AsUnion() TransactionBulkResponseValidationUnion
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 ¶
func (r TransactionBulkResponseValidationResultType) IsKnown() bool
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 ¶
func (r *TransactionBulkResponseValidationTransactionValidationFeature) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseValidationTransactionValidationFeaturesType ¶
type TransactionBulkResponseValidationTransactionValidationFeaturesType string
An enumeration.
const ( TransactionBulkResponseValidationTransactionValidationFeaturesTypeMalicious TransactionBulkResponseValidationTransactionValidationFeaturesType = "Malicious" TransactionBulkResponseValidationTransactionValidationFeaturesTypeWarning TransactionBulkResponseValidationTransactionValidationFeaturesType = "Warning" TransactionBulkResponseValidationTransactionValidationFeaturesTypeBenign TransactionBulkResponseValidationTransactionValidationFeaturesType = "Benign" TransactionBulkResponseValidationTransactionValidationFeaturesTypeInfo TransactionBulkResponseValidationTransactionValidationFeaturesType = "Info" )
func (TransactionBulkResponseValidationTransactionValidationFeaturesType) IsKnown ¶
func (r TransactionBulkResponseValidationTransactionValidationFeaturesType) IsKnown() bool
type TransactionBulkResponseValidationTransactionValidationResultType ¶
type TransactionBulkResponseValidationTransactionValidationResultType string
An enumeration.
const ( TransactionBulkResponseValidationTransactionValidationResultTypeBenign TransactionBulkResponseValidationTransactionValidationResultType = "Benign" TransactionBulkResponseValidationTransactionValidationResultTypeWarning TransactionBulkResponseValidationTransactionValidationResultType = "Warning" TransactionBulkResponseValidationTransactionValidationResultTypeMalicious TransactionBulkResponseValidationTransactionValidationResultType = "Malicious" )
func (TransactionBulkResponseValidationTransactionValidationResultType) IsKnown ¶
func (r TransactionBulkResponseValidationTransactionValidationResultType) IsKnown() bool
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 ¶
func (r *TransactionBulkResponseValidationTransactrionValidationError) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseValidationTransactrionValidationErrorClassification ¶
type TransactionBulkResponseValidationTransactrionValidationErrorClassification string
A textual classification that can be presented to the user explaining the reason.
const (
TransactionBulkResponseValidationTransactrionValidationErrorClassificationEmpty TransactionBulkResponseValidationTransactrionValidationErrorClassification = ""
)
func (TransactionBulkResponseValidationTransactrionValidationErrorClassification) IsKnown ¶
func (r TransactionBulkResponseValidationTransactrionValidationErrorClassification) IsKnown() bool
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 ¶
func (r TransactionBulkResponseValidationTransactrionValidationErrorDescription) IsKnown() bool
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 ¶
func (r *TransactionBulkResponseValidationTransactrionValidationErrorFeature) UnmarshalJSON(data []byte) (err error)
type TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType ¶
type TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType string
An enumeration.
const ( TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeMalicious TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Malicious" TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeWarning TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Warning" TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeBenign TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Benign" TransactionBulkResponseValidationTransactrionValidationErrorFeaturesTypeInfo TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType = "Info" )
func (TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType) IsKnown ¶
func (r TransactionBulkResponseValidationTransactrionValidationErrorFeaturesType) IsKnown() bool
type TransactionBulkResponseValidationTransactrionValidationErrorReason ¶
type TransactionBulkResponseValidationTransactrionValidationErrorReason string
A textual description about the reasons the transaction was flagged with result_type.
const (
TransactionBulkResponseValidationTransactrionValidationErrorReasonEmpty TransactionBulkResponseValidationTransactrionValidationErrorReason = ""
)
func (TransactionBulkResponseValidationTransactrionValidationErrorReason) IsKnown ¶
func (r TransactionBulkResponseValidationTransactrionValidationErrorReason) IsKnown() bool
type TransactionBulkResponseValidationTransactrionValidationErrorResultType ¶
type TransactionBulkResponseValidationTransactrionValidationErrorResultType string
A string indicating if the transaction is safe to sign or not.
const (
TransactionBulkResponseValidationTransactrionValidationErrorResultTypeError TransactionBulkResponseValidationTransactrionValidationErrorResultType = "Error"
)
func (TransactionBulkResponseValidationTransactrionValidationErrorResultType) IsKnown ¶
func (r TransactionBulkResponseValidationTransactrionValidationErrorResultType) IsKnown() bool
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 (r TransactionScanResponseSimulation) AsUnion() TransactionScanResponseSimulationUnion
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummary) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiff) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType string
asset type.
const ( TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc20 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC20" TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC1155" TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc721 TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC721" TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNonerc TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NONERC" TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetTypeNative TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetType = "NATIVE" )
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails or TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc721Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInErc20Diff or TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsInNativeDiff.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc721Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutErc20Diff or TransactionScanResponseSimulationTransactionSimulationAccountSummaryAssetsDiffsOutNativeDiff.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetailsType = "NONERC"
)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType string
asset type.
const ( TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc20 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC20" TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC1155" TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeErc721 TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "ERC721" TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetTypeNonerc TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetType = "NONERC" )
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc20TokenDetails, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc1155TokenDetails, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetErc721TokenDetails or TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresAssetNonercTokenDetails.
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpender) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff or TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff or TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff or TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff.
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc20Exposure, TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc721Exposure or TransactionScanResponseSimulationTransactionSimulationAccountSummaryExposuresSpendersErc1155Exposure.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAccountSummaryTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAddressDetail) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsTypeNative TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)
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 ¶
func (r TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetType) IsKnown() bool
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc20TokenDetails, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc1155TokenDetails, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetErc721TokenDetails, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNonercTokenDetails or TransactionScanResponseSimulationTransactionSimulationAssetsDiffsAssetNativeAssetDetails.
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) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc721Diff, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInErc20Diff or TransactionScanResponseSimulationTransactionSimulationAssetsDiffsInNativeDiff.
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) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutUnion ¶
type TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc1155Diff, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc721Diff, TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutErc20Diff or TransactionScanResponseSimulationTransactionSimulationAssetsDiffsOutNativeDiff.
type TransactionScanResponseSimulationTransactionSimulationError ¶
type TransactionScanResponseSimulationTransactionSimulationError struct { // An error message if the simulation failed. Error string `json:"error,required"` JSON transactionScanResponseSimulationTransactionSimulationErrorJSON `json:"-"` }
func (*TransactionScanResponseSimulationTransactionSimulationError) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationError) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposure) UnmarshalJSON(data []byte) (err error)
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) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresAsset) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsTypeErc1155 TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetailsType = "ERC1155"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsTypeErc20 TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetailsType = "ERC20"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsTypeErc721 TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetailsType = "ERC721"
)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType string
asset type.
const (
TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsTypeNonerc TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetailsType = "NONERC"
)
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetType ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetType string
asset type.
const ( TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeErc20 TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "ERC20" TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeErc1155 TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "ERC1155" TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeErc721 TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "ERC721" TransactionScanResponseSimulationTransactionSimulationExposuresAssetTypeNonerc TransactionScanResponseSimulationTransactionSimulationExposuresAssetType = "NONERC" )
func (TransactionScanResponseSimulationTransactionSimulationExposuresAssetType) IsKnown ¶
func (r TransactionScanResponseSimulationTransactionSimulationExposuresAssetType) IsKnown() bool
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetUnion ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc20TokenDetails, TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc1155TokenDetails, TransactionScanResponseSimulationTransactionSimulationExposuresAssetErc721TokenDetails or TransactionScanResponseSimulationTransactionSimulationExposuresAssetNonercTokenDetails.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpender) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureUnion ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc721Diff, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureErc20Diff or TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155ExposureExposureNativeDiff.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureUnion ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc1155Diff, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc721Diff, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureErc20Diff or TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20ExposureExposureNativeDiff.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure) UnmarshalJSON(data []byte) (err error)
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) AsUnion ¶
func (*TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureUnion ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc1155Diff, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc721Diff, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureErc20Diff or TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721ExposureExposureNativeDiff.
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersUnion ¶
type TransactionScanResponseSimulationTransactionSimulationExposuresSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc20Exposure, TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc721Exposure or TransactionScanResponseSimulationTransactionSimulationExposuresSpendersErc1155Exposure.
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 ¶
func (r *TransactionScanResponseSimulationTransactionSimulationTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
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 (r TransactionScanResponseValidation) AsUnion() TransactionScanResponseValidationUnion
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 ¶
func (r TransactionScanResponseValidationResultType) IsKnown() bool
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 ¶
func (r *TransactionScanResponseValidationTransactionValidationFeature) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseValidationTransactionValidationFeaturesType ¶
type TransactionScanResponseValidationTransactionValidationFeaturesType string
An enumeration.
const ( TransactionScanResponseValidationTransactionValidationFeaturesTypeMalicious TransactionScanResponseValidationTransactionValidationFeaturesType = "Malicious" TransactionScanResponseValidationTransactionValidationFeaturesTypeWarning TransactionScanResponseValidationTransactionValidationFeaturesType = "Warning" TransactionScanResponseValidationTransactionValidationFeaturesTypeBenign TransactionScanResponseValidationTransactionValidationFeaturesType = "Benign" TransactionScanResponseValidationTransactionValidationFeaturesTypeInfo TransactionScanResponseValidationTransactionValidationFeaturesType = "Info" )
func (TransactionScanResponseValidationTransactionValidationFeaturesType) IsKnown ¶
func (r TransactionScanResponseValidationTransactionValidationFeaturesType) IsKnown() bool
type TransactionScanResponseValidationTransactionValidationResultType ¶
type TransactionScanResponseValidationTransactionValidationResultType string
An enumeration.
const ( TransactionScanResponseValidationTransactionValidationResultTypeBenign TransactionScanResponseValidationTransactionValidationResultType = "Benign" TransactionScanResponseValidationTransactionValidationResultTypeWarning TransactionScanResponseValidationTransactionValidationResultType = "Warning" TransactionScanResponseValidationTransactionValidationResultTypeMalicious TransactionScanResponseValidationTransactionValidationResultType = "Malicious" )
func (TransactionScanResponseValidationTransactionValidationResultType) IsKnown ¶
func (r TransactionScanResponseValidationTransactionValidationResultType) IsKnown() bool
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 ¶
func (r *TransactionScanResponseValidationTransactrionValidationError) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseValidationTransactrionValidationErrorClassification ¶
type TransactionScanResponseValidationTransactrionValidationErrorClassification string
A textual classification that can be presented to the user explaining the reason.
const (
TransactionScanResponseValidationTransactrionValidationErrorClassificationEmpty TransactionScanResponseValidationTransactrionValidationErrorClassification = ""
)
func (TransactionScanResponseValidationTransactrionValidationErrorClassification) IsKnown ¶
func (r TransactionScanResponseValidationTransactrionValidationErrorClassification) IsKnown() bool
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 ¶
func (r TransactionScanResponseValidationTransactrionValidationErrorDescription) IsKnown() bool
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 ¶
func (r *TransactionScanResponseValidationTransactrionValidationErrorFeature) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseValidationTransactrionValidationErrorFeaturesType ¶
type TransactionScanResponseValidationTransactrionValidationErrorFeaturesType string
An enumeration.
const ( TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeMalicious TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Malicious" TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeWarning TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Warning" TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeBenign TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Benign" TransactionScanResponseValidationTransactrionValidationErrorFeaturesTypeInfo TransactionScanResponseValidationTransactrionValidationErrorFeaturesType = "Info" )
func (TransactionScanResponseValidationTransactrionValidationErrorFeaturesType) IsKnown ¶
func (r TransactionScanResponseValidationTransactrionValidationErrorFeaturesType) IsKnown() bool
type TransactionScanResponseValidationTransactrionValidationErrorReason ¶
type TransactionScanResponseValidationTransactrionValidationErrorReason string
A textual description about the reasons the transaction was flagged with result_type.
const (
TransactionScanResponseValidationTransactrionValidationErrorReasonEmpty TransactionScanResponseValidationTransactrionValidationErrorReason = ""
)
func (TransactionScanResponseValidationTransactrionValidationErrorReason) IsKnown ¶
func (r TransactionScanResponseValidationTransactrionValidationErrorReason) IsKnown() bool
type TransactionScanResponseValidationTransactrionValidationErrorResultType ¶
type TransactionScanResponseValidationTransactrionValidationErrorResultType string
A string indicating if the transaction is safe to sign or not.
const (
TransactionScanResponseValidationTransactrionValidationErrorResultTypeError TransactionScanResponseValidationTransactrionValidationErrorResultType = "Error"
)
func (TransactionScanResponseValidationTransactrionValidationErrorResultType) IsKnown ¶
func (r TransactionScanResponseValidationTransactrionValidationErrorResultType) IsKnown() bool
type TransactionScanResponseValidationUnion ¶
type TransactionScanResponseValidationUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseValidationTransactionValidation or TransactionScanResponseValidationTransactrionValidationError.