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 APIErrorDetails
- type AccountSummarySchema
- type AccountSummarySchemaAccountAssetsDiff
- type AccountSummarySchemaAccountAssetsDiffUnion
- type AccountSummarySchemaAccountOwnershipsDiff
- type AccountSummarySchemaAccountOwnershipsDiffUnion
- type AddressAssetExposure
- type AddressAssetExposureAsset
- type AddressAssetExposureAssetType
- type AddressAssetExposureAssetUnion
- type AddressAssetExposureSpender
- type AddressAssetExposureSpendersUnion
- type AddressScanRequestSchemaMetadataParam
- type AddressScanRequestSchemaParam
- type AddressScanResponseSchema
- type AddressScanResponseSchemaFeature
- type AddressScanResponseSchemaFeaturesType
- type AddressScanResponseSchemaResultType
- type AssetDiff
- type AssetDiffAsset
- type AssetDiffAssetType
- type AssetDiffAssetUnion
- type AssetDiffIn
- type AssetDiffInUnion
- type AssetDiffOut
- type AssetDiffOutUnion
- type AssetTransferDetailsSchema
- type BitcoinService
- type BitcoinTransactionScanParams
- type BitcoinTransactionScanParamsChain
- type BitcoinTransactionScanParamsMetadata
- type BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadata
- type BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType
- type BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadata
- type BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType
- type BitcoinTransactionScanParamsMetadataType
- type BitcoinTransactionScanParamsMetadataUnion
- type BitcoinTransactionScanParamsOption
- type BitcoinTransactionScanResponse
- type BitcoinTransactionScanResponseSimulation
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAsset
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetType
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsIn
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOut
- type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus
- type BitcoinTransactionScanResponseSimulationStatus
- type BitcoinTransactionScanResponseSimulationUnion
- type BitcoinTransactionService
- 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 CnftDetailsSchema
- type CnftDiffSchema
- type CnftMintAccountDetailsSchema
- type CnftMintAccountDetailsSchemaType
- type CombinedValidationResult
- type CombinedValidationResultValidation
- type CombinedValidationResultValidationReason
- type CombinedValidationResultValidationVerdict
- type DelegatedAssetDetailsSchema
- type DelegatedAssetDetailsSchemaAsset
- type DelegatedAssetDetailsSchemaAssetUnion
- type Erc1155Diff
- type Erc1155Exposure
- type Erc1155ExposureExposure
- type Erc1155ExposureExposureUnion
- type Erc1155TokenDetails
- type Erc1155TokenDetailsType
- type Erc20Diff
- type Erc20Exposure
- type Erc20ExposureExposure
- type Erc20ExposureExposureUnion
- type Erc20TokenDetails
- type Erc20TokenDetailsType
- type Erc721Diff
- type Erc721Exposure
- type Erc721ExposureExposure
- type Erc721ExposureExposureUnion
- type Erc721TokenDetails
- type Erc721TokenDetailsType
- type Error
- type EvmJsonRpcScanParams
- type EvmJsonRpcScanParamsBlockUnion
- type EvmJsonRpcScanParamsData
- type EvmJsonRpcScanParamsOption
- type EvmJsonRpcService
- type EvmPostTransactionBulkScanParams
- type EvmPostTransactionBulkScanParamsBlockUnion
- type EvmPostTransactionBulkScanParamsOption
- type EvmPostTransactionBulkService
- type EvmPostTransactionReportParams
- type EvmPostTransactionReportParamsEvent
- type EvmPostTransactionReportParamsReport
- type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParams
- type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsParams
- type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsType
- type EvmPostTransactionReportParamsReportRequestIDReport
- type EvmPostTransactionReportParamsReportRequestIDReportType
- type EvmPostTransactionReportParamsReportType
- type EvmPostTransactionReportParamsReportUnion
- type EvmPostTransactionReportResponse
- type EvmPostTransactionScanParams
- type EvmPostTransactionScanParamsBlockUnion
- type EvmPostTransactionScanParamsData
- type EvmPostTransactionScanParamsOption
- type EvmPostTransactionService
- func (r *EvmPostTransactionService) Report(ctx context.Context, body EvmPostTransactionReportParams, ...) (res *EvmPostTransactionReportResponse, err error)
- func (r *EvmPostTransactionService) Scan(ctx context.Context, body EvmPostTransactionScanParams, ...) (res *TransactionScanResponse, err error)
- type EvmService
- type EvmTransactionBulkScanParams
- type EvmTransactionBulkScanParamsBlockUnion
- type EvmTransactionBulkScanParamsData
- type EvmTransactionBulkScanParamsOption
- type EvmTransactionBulkService
- type EvmTransactionRawScanParams
- type EvmTransactionRawScanParamsBlockUnion
- type EvmTransactionRawScanParamsOption
- type EvmTransactionRawService
- type EvmTransactionReportParams
- type EvmTransactionReportParamsEvent
- type EvmTransactionReportParamsReport
- type EvmTransactionReportParamsReportParamReportTransactionReportParams
- type EvmTransactionReportParamsReportParamReportTransactionReportParamsParams
- type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsData
- type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataJsonRpc
- type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataTransaction
- type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataUnion
- type EvmTransactionReportParamsReportParamReportTransactionReportParamsType
- type EvmTransactionReportParamsReportRequestIDReport
- type EvmTransactionReportParamsReportRequestIDReportType
- type EvmTransactionReportParamsReportType
- type EvmTransactionReportParamsReportUnion
- type EvmTransactionReportResponse
- type EvmTransactionScanParams
- type EvmTransactionScanParamsBlockUnion
- type EvmTransactionScanParamsData
- type EvmTransactionScanParamsOption
- type EvmTransactionService
- type EvmUserOperationScanParams
- type EvmUserOperationScanParamsBlockUnion
- type EvmUserOperationScanParamsData
- type EvmUserOperationScanParamsDataOperation
- type EvmUserOperationScanParamsOption
- type EvmUserOperationService
- type FungibleMintAccountDetailsSchema
- type FungibleMintAccountDetailsSchemaType
- type InstructionErrorDetails
- type MetadataParam
- type NativeAssetDetails
- type NativeAssetDetailsType
- type NativeDiff
- type NativeSolDetailsSchema
- type NativeSolDiffSchema
- type NativeSolOwnershipDiffSchema
- type NonFungibleMintAccountDetailsSchema
- type NonFungibleMintAccountDetailsSchemaType
- type NonercTokenDetails
- type NonercTokenDetailsType
- type PdaAccountSchema
- type PdaAccountSchemaType
- type ProgramAccountDetailsSchema
- type ProgramAccountDetailsSchemaType
- type ResponseSchema
- type ResponseSchemaErrorDetails
- type ResponseSchemaErrorDetailsUnion
- type ResponseSchemaStatus
- type SiteReportParams
- type SiteReportParamsEvent
- type SiteReportParamsReport
- type SiteReportParamsReportParamReportSiteReportParams
- type SiteReportParamsReportParamReportSiteReportParamsParams
- type SiteReportParamsReportParamReportSiteReportParamsType
- type SiteReportParamsReportRequestIDReport
- type SiteReportParamsReportRequestIDReportType
- type SiteReportParamsReportType
- type SiteReportParamsReportUnion
- type SiteReportResponse
- type SiteScanHitResponse
- type SiteScanHitResponseAttackType
- type SiteScanHitResponseContractRead
- type SiteScanHitResponseContractWrite
- type SiteScanHitResponseStatus
- type SiteScanMissResponse
- type SiteScanMissResponseStatus
- type SiteScanParams
- type SiteScanParamsMetadata
- type SiteScanParamsMetadataCatalogRequestMetadata
- type SiteScanParamsMetadataCatalogRequestMetadataType
- type SiteScanParamsMetadataType
- type SiteScanParamsMetadataUnion
- type SiteScanParamsMetadataWalletRequestMetadata
- type SiteScanParamsMetadataWalletRequestMetadataType
- type SiteScanResponse
- type SiteScanResponseStatus
- type SiteScanResponseUnion
- type SiteService
- type SolanaAddressScanParams
- type SolanaAddressService
- type SolanaMessageScanParams
- type SolanaMessageService
- type SolanaService
- type SplFungibleTokenDetailsSchema
- type SplFungibleTokenDiffSchema
- type SplNonFungibleTokenDetailsSchema
- type SplNonFungibleTokenDiffSchema
- type SplTokenOwnershipDiffSchema
- type SplTokenOwnershipDiffSchemaAsset
- type SplTokenOwnershipDiffSchemaAssetUnion
- type StakedSolAssetDetailsSchema
- type StakedSolWithdrawAuthorityDiffSchema
- type StarknetErc1155Details
- type StarknetErc1155DetailsType
- type StarknetErc1155Diff
- type StarknetErc20Details
- type StarknetErc20DetailsType
- type StarknetErc20Diff
- type StarknetErc721Details
- type StarknetErc721DetailsType
- type StarknetErc721Diff
- type StarknetNativeDiff
- type StarknetService
- type StarknetTransactionScanParams
- type StarknetTransactionScanParamsChain
- type StarknetTransactionScanParamsMetadata
- type StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadata
- type StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType
- type StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadata
- type StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType
- type StarknetTransactionScanParamsMetadataType
- type StarknetTransactionScanParamsMetadataUnion
- type StarknetTransactionScanParamsOption
- type StarknetTransactionScanParamsTransaction
- type StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode
- type StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchema
- type StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchemaVersion
- type StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchema
- type StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchemaVersion
- type StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchema
- type StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchemaVersion
- type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchema
- type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaNonceDataAvailabilityMode
- type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaVersion
- type StarknetTransactionScanParamsTransactionUnion
- type StarknetTransactionScanParamsTransactionVersion
- type StarknetTransactionScanResponse
- type StarknetTransactionScanResponseSimulation
- type StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsUnion
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresUnion
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiff
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsUnion
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresUnion
- type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaStatus
- type StarknetTransactionScanResponseSimulationStatus
- type StarknetTransactionScanResponseSimulationUnion
- type StarknetTransactionScanResponseValidation
- type StarknetTransactionScanResponseValidationResultType
- type StarknetTransactionScanResponseValidationStarknetValidationErrorSchema
- type StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus
- type StarknetTransactionScanResponseValidationStarknetValidationResultSchema
- type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature
- type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType
- type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType
- type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaStatus
- type StarknetTransactionScanResponseValidationStatus
- type StarknetTransactionScanResponseValidationUnion
- type StarknetTransactionService
- type StellarAssetContractDetailsSchema
- type StellarAssetContractDetailsSchemaType
- type StellarAssetTransferDetailsSchema
- type StellarService
- type StellarTransactionScanParams
- type StellarTransactionScanRequestChain
- type StellarTransactionScanRequestMetadataParam
- type StellarTransactionScanRequestMetadataStellarInAppRequestMetadataParam
- type StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType
- type StellarTransactionScanRequestMetadataStellarWalletRequestMetadataParam
- type StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType
- type StellarTransactionScanRequestMetadataType
- type StellarTransactionScanRequestMetadataUnionParam
- type StellarTransactionScanRequestOption
- type StellarTransactionScanRequestParam
- type StellarTransactionScanResponse
- type StellarTransactionScanResponseSimulation
- type StellarTransactionScanResponseSimulationStatus
- type StellarTransactionScanResponseSimulationStellarSimulationErrorSchema
- type StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchema
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposure
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpender
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiff
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiff
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetUnion
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiff
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetUnion
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffType
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpender
- type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus
- type StellarTransactionScanResponseSimulationUnion
- type StellarTransactionScanResponseValidation
- type StellarTransactionScanResponseValidationResultType
- type StellarTransactionScanResponseValidationStatus
- type StellarTransactionScanResponseValidationStellarValidationErrorSchema
- type StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus
- type StellarTransactionScanResponseValidationStellarValidationResultSchema
- type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature
- type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType
- type StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType
- type StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus
- type StellarTransactionScanResponseValidationUnion
- type StellarTransactionService
- type SuccessfulSimulationResultSchema
- type SuccessfulSimulationResultSchemaAccountsDetail
- type SuccessfulSimulationResultSchemaAccountsDetailsType
- type SuccessfulSimulationResultSchemaAccountsDetailsUnion
- type SuccessfulSimulationResultSchemaAssetsDiff
- type SuccessfulSimulationResultSchemaAssetsDiffUnion
- type SuccessfulSimulationResultSchemaAssetsOwnershipDiff
- type SuccessfulSimulationResultSchemaAssetsOwnershipDiffUnion
- type SystemAccountDetailsSchema
- type SystemAccountDetailsSchemaType
- type TokenAccountDetailsSchema
- type TokenAccountDetailsSchemaType
- type TokenBulkScanParams
- type TokenBulkScanParamsMetadata
- type TokenBulkScanResponse
- type TokenBulkScanResponseResult
- type TokenBulkScanResponseResultsAttackType
- type TokenBulkScanResponseResultsFeature
- type TokenBulkScanResponseResultsFeaturesFeatureID
- type TokenBulkScanResponseResultsFeaturesType
- type TokenBulkScanResponseResultsFees
- type TokenBulkScanResponseResultsFinancialStats
- type TokenBulkScanResponseResultsFinancialStatsTopHolder
- type TokenBulkScanResponseResultsMetadata
- type TokenBulkScanResponseResultsMetadataBasicMetadataToken
- type TokenBulkScanResponseResultsMetadataSolanaMetadata
- type TokenBulkScanResponseResultsMetadataUnion
- type TokenBulkScanResponseResultsResultType
- type TokenBulkScanResponseResultsTradingLimits
- type TokenBulkScanResponseResultsTradingLimitsMaxBuy
- type TokenBulkScanResponseResultsTradingLimitsMaxHolding
- type TokenBulkScanResponseResultsTradingLimitsMaxSell
- type TokenBulkScanResponseResultsTradingLimitsSellLimitPerBlock
- type TokenBulkService
- type TokenReportParams
- type TokenReportParamsEvent
- type TokenReportParamsReport
- type TokenReportParamsReportParamReportTokenReportParams
- type TokenReportParamsReportParamReportTokenReportParamsParams
- type TokenReportParamsReportParamReportTokenReportParamsType
- type TokenReportParamsReportRequestIDReport
- type TokenReportParamsReportRequestIDReportType
- type TokenReportParamsReportType
- type TokenReportParamsReportUnion
- type TokenReportResponse
- type TokenScanParams
- type TokenScanParamsMetadata
- type TokenScanResponse
- type TokenScanResponseAttackType
- type TokenScanResponseFeature
- type TokenScanResponseFeaturesFeatureID
- type TokenScanResponseFeaturesType
- type TokenScanResponseFees
- type TokenScanResponseFinancialStats
- type TokenScanResponseFinancialStatsTopHolder
- type TokenScanResponseMetadata
- type TokenScanResponseMetadataBasicMetadataToken
- type TokenScanResponseMetadataSolanaMetadata
- type TokenScanResponseMetadataUnion
- type TokenScanResponseResultType
- type TokenScanResponseTradingLimits
- type TokenScanResponseTradingLimitsMaxBuy
- type TokenScanResponseTradingLimitsMaxHolding
- type TokenScanResponseTradingLimitsMaxSell
- type TokenScanResponseTradingLimitsSellLimitPerBlock
- type TokenScanSupportedChain
- type TokenService
- type TotalUsdDiffSchema
- type TransactionErrorDetails
- type TransactionScanFeature
- type TransactionScanFeatureType
- type TransactionScanResponse
- type TransactionScanResponseEvent
- type TransactionScanResponseEventsParam
- type TransactionScanResponseEventsParamsValueArray
- type TransactionScanResponseEventsParamsValueUnion
- type TransactionScanResponseGasEstimation
- type TransactionScanResponseGasEstimationStatus
- type TransactionScanResponseGasEstimationTransactionScanGasEstimation
- type TransactionScanResponseGasEstimationTransactionScanGasEstimationError
- type TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus
- type TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus
- type TransactionScanResponseGasEstimationUnion
- type TransactionScanResponseSimulation
- type TransactionScanResponseSimulationStatus
- type TransactionScanResponseSimulationUnion
- type TransactionScanResponseValidation
- type TransactionScanResponseValidationResultType
- type TransactionScanResponseValidationStatus
- type TransactionScanResponseValidationUnion
- type TransactionScanSupportedChain
- type TransactionSimulation
- type TransactionSimulationAccountSummary
- type TransactionSimulationAccountSummaryAssetsDiff
- type TransactionSimulationAccountSummaryAssetsDiffsAsset
- type TransactionSimulationAccountSummaryAssetsDiffsAssetType
- type TransactionSimulationAccountSummaryAssetsDiffsAssetUnion
- type TransactionSimulationAccountSummaryAssetsDiffsBalanceChanges
- type TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfter
- type TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesBefore
- type TransactionSimulationAccountSummaryAssetsDiffsIn
- type TransactionSimulationAccountSummaryAssetsDiffsInUnion
- type TransactionSimulationAccountSummaryAssetsDiffsOut
- type TransactionSimulationAccountSummaryAssetsDiffsOutUnion
- type TransactionSimulationAddressDetail
- type TransactionSimulationContractManagement
- type TransactionSimulationContractManagementAfter
- type TransactionSimulationContractManagementAfterAddressChange
- type TransactionSimulationContractManagementAfterOwnershipChange
- type TransactionSimulationContractManagementAfterUnion
- type TransactionSimulationContractManagementBefore
- type TransactionSimulationContractManagementBeforeAddressChange
- type TransactionSimulationContractManagementBeforeOwnershipChange
- type TransactionSimulationContractManagementBeforeUnion
- type TransactionSimulationContractManagementType
- type TransactionSimulationError
- type TransactionSimulationErrorStatus
- type TransactionSimulationParams
- type TransactionSimulationParamsCalldata
- type TransactionSimulationStatus
- type TransactionValidation
- type TransactionValidationError
- type TransactionValidationErrorClassification
- type TransactionValidationErrorDescription
- type TransactionValidationErrorReason
- type TransactionValidationErrorResultType
- type TransactionValidationErrorStatus
- type TransactionValidationResultType
- type TransactionValidationStatus
- type TxScanRequestSchemaMetadataParam
- type TxScanRequestSchemaParam
- type UsdDiff
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 APIErrorDetails ¶ added in v0.22.1
type APIErrorDetails struct { // Advanced message of the error Message string `json:"message,required"` Type string `json:"type"` JSON apiErrorDetailsJSON `json:"-"` }
func (*APIErrorDetails) UnmarshalJSON ¶ added in v0.22.1
func (r *APIErrorDetails) UnmarshalJSON(data []byte) (err error)
type AccountSummarySchema ¶ added in v0.12.0
type AccountSummarySchema struct { // Total USD diff for the requested account address TotalUsdDiff TotalUsdDiffSchema `json:"total_usd_diff,required"` // Assets diff of the requested account address AccountAssetsDiff []AccountSummarySchemaAccountAssetsDiff `json:"account_assets_diff"` // Delegated assets of the requested account address AccountDelegations []DelegatedAssetDetailsSchema `json:"account_delegations"` // Account ownerships diff of the requested account address AccountOwnershipsDiff []AccountSummarySchemaAccountOwnershipsDiff `json:"account_ownerships_diff"` JSON accountSummarySchemaJSON `json:"-"` }
func (*AccountSummarySchema) UnmarshalJSON ¶ added in v0.12.0
func (r *AccountSummarySchema) UnmarshalJSON(data []byte) (err error)
type AccountSummarySchemaAccountAssetsDiff ¶ added in v0.12.0
type AccountSummarySchemaAccountAssetsDiff struct { // This field can have the runtime type of [NativeSolDetailsSchema], // [SplFungibleTokenDetailsSchema], [SplNonFungibleTokenDetailsSchema], // [CnftDetailsSchema]. Asset interface{} `json:"asset"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in,nullable"` Out AssetTransferDetailsSchema `json:"out,nullable"` JSON accountSummarySchemaAccountAssetsDiffJSON `json:"-"` // contains filtered or unexported fields }
func (AccountSummarySchemaAccountAssetsDiff) AsUnion ¶ added in v0.12.0
func (r AccountSummarySchemaAccountAssetsDiff) AsUnion() AccountSummarySchemaAccountAssetsDiffUnion
AsUnion returns a AccountSummarySchemaAccountAssetsDiffUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are NativeSolDiffSchema, SplFungibleTokenDiffSchema, SplNonFungibleTokenDiffSchema, CnftDiffSchema.
func (*AccountSummarySchemaAccountAssetsDiff) UnmarshalJSON ¶ added in v0.12.0
func (r *AccountSummarySchemaAccountAssetsDiff) UnmarshalJSON(data []byte) (err error)
type AccountSummarySchemaAccountAssetsDiffUnion ¶ added in v0.12.0
type AccountSummarySchemaAccountAssetsDiffUnion interface {
// contains filtered or unexported methods
}
Union satisfied by NativeSolDiffSchema, SplFungibleTokenDiffSchema, SplNonFungibleTokenDiffSchema or CnftDiffSchema.
type AccountSummarySchemaAccountOwnershipsDiff ¶ added in v0.12.0
type AccountSummarySchemaAccountOwnershipsDiff struct { // This field can have the runtime type of [NativeSolDetailsSchema], // [SplTokenOwnershipDiffSchemaAsset], [StakedSolAssetDetailsSchema]. Asset interface{} `json:"asset,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in_,nullable"` // Details of the moved value Out AssetTransferDetailsSchema `json:"out,nullable"` // The owner prior to the transaction PreOwner string `json:"pre_owner,nullable"` // The owner post the transaction PostOwner string `json:"post_owner,required"` JSON accountSummarySchemaAccountOwnershipsDiffJSON `json:"-"` // contains filtered or unexported fields }
func (AccountSummarySchemaAccountOwnershipsDiff) AsUnion ¶ added in v0.12.0
func (r AccountSummarySchemaAccountOwnershipsDiff) AsUnion() AccountSummarySchemaAccountOwnershipsDiffUnion
AsUnion returns a AccountSummarySchemaAccountOwnershipsDiffUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are NativeSolOwnershipDiffSchema, SplTokenOwnershipDiffSchema, StakedSolWithdrawAuthorityDiffSchema.
func (*AccountSummarySchemaAccountOwnershipsDiff) UnmarshalJSON ¶ added in v0.12.0
func (r *AccountSummarySchemaAccountOwnershipsDiff) UnmarshalJSON(data []byte) (err error)
type AccountSummarySchemaAccountOwnershipsDiffUnion ¶ added in v0.12.0
type AccountSummarySchemaAccountOwnershipsDiffUnion interface {
// contains filtered or unexported methods
}
Union satisfied by NativeSolOwnershipDiffSchema, SplTokenOwnershipDiffSchema or StakedSolWithdrawAuthorityDiffSchema.
type AddressAssetExposure ¶
type AddressAssetExposure struct { // description of the asset for the current diff Asset AddressAssetExposureAsset `json:"asset,required"` // dictionary of spender addresses where the exposure has changed during this // transaction for the current address and asset Spenders map[string]AddressAssetExposureSpender `json:"spenders,required"` JSON addressAssetExposureJSON `json:"-"` }
func (*AddressAssetExposure) UnmarshalJSON ¶
func (r *AddressAssetExposure) UnmarshalJSON(data []byte) (err error)
type AddressAssetExposureAsset ¶
type AddressAssetExposureAsset 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 AddressAssetExposureAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` JSON addressAssetExposureAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (AddressAssetExposureAsset) AsUnion ¶
func (r AddressAssetExposureAsset) AsUnion() AddressAssetExposureAssetUnion
AsUnion returns a AddressAssetExposureAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc20TokenDetails, Erc1155TokenDetails, Erc721TokenDetails, NonercTokenDetails.
func (*AddressAssetExposureAsset) UnmarshalJSON ¶
func (r *AddressAssetExposureAsset) UnmarshalJSON(data []byte) (err error)
type AddressAssetExposureAssetType ¶
type AddressAssetExposureAssetType string
asset type.
const ( AddressAssetExposureAssetTypeErc20 AddressAssetExposureAssetType = "ERC20" AddressAssetExposureAssetTypeErc1155 AddressAssetExposureAssetType = "ERC1155" AddressAssetExposureAssetTypeErc721 AddressAssetExposureAssetType = "ERC721" AddressAssetExposureAssetTypeNonerc AddressAssetExposureAssetType = "NONERC" )
func (AddressAssetExposureAssetType) IsKnown ¶
func (r AddressAssetExposureAssetType) IsKnown() bool
type AddressAssetExposureAssetUnion ¶
type AddressAssetExposureAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by Erc20TokenDetails, Erc1155TokenDetails, Erc721TokenDetails or NonercTokenDetails.
type AddressAssetExposureSpender ¶
type AddressAssetExposureSpender struct { // This field can have the runtime type of [[]Erc20ExposureExposure], // [[]Erc721ExposureExposure], [[]Erc1155ExposureExposure]. 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 addressAssetExposureSpenderJSON `json:"-"` // contains filtered or unexported fields }
func (AddressAssetExposureSpender) AsUnion ¶
func (r AddressAssetExposureSpender) AsUnion() AddressAssetExposureSpendersUnion
AsUnion returns a AddressAssetExposureSpendersUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc20Exposure, Erc721Exposure, Erc1155Exposure.
func (*AddressAssetExposureSpender) UnmarshalJSON ¶
func (r *AddressAssetExposureSpender) UnmarshalJSON(data []byte) (err error)
type AddressAssetExposureSpendersUnion ¶
type AddressAssetExposureSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc20Exposure, Erc721Exposure or Erc1155Exposure.
type AddressScanRequestSchemaMetadataParam ¶ added in v0.12.0
type AddressScanRequestSchemaMetadataParam struct { // URL of the dApp related to the address URL param.Field[string] `json:"url,required"` }
func (AddressScanRequestSchemaMetadataParam) MarshalJSON ¶ added in v0.12.0
func (r AddressScanRequestSchemaMetadataParam) MarshalJSON() (data []byte, err error)
type AddressScanRequestSchemaParam ¶ added in v0.12.0
type AddressScanRequestSchemaParam struct { // Encoded public key Address param.Field[string] `json:"address,required"` Metadata param.Field[AddressScanRequestSchemaMetadataParam] `json:"metadata,required"` // Chain to scan the transaction on Chain param.Field[string] `json:"chain"` }
func (AddressScanRequestSchemaParam) MarshalJSON ¶ added in v0.12.0
func (r AddressScanRequestSchemaParam) MarshalJSON() (data []byte, err error)
type AddressScanResponseSchema ¶ added in v0.12.0
type AddressScanResponseSchema struct { // Features about the result Features []AddressScanResponseSchemaFeature `json:"features,required"` // An enumeration. ResultType AddressScanResponseSchemaResultType `json:"result_type,required"` JSON addressScanResponseSchemaJSON `json:"-"` }
func (*AddressScanResponseSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *AddressScanResponseSchema) UnmarshalJSON(data []byte) (err error)
type AddressScanResponseSchemaFeature ¶ added in v0.12.0
type AddressScanResponseSchemaFeature struct { // Description of the feature Description string `json:"description,required"` // ID of the feature FeatureID string `json:"feature_id,required"` // An enumeration. Type AddressScanResponseSchemaFeaturesType `json:"type,required"` JSON addressScanResponseSchemaFeatureJSON `json:"-"` }
func (*AddressScanResponseSchemaFeature) UnmarshalJSON ¶ added in v0.12.0
func (r *AddressScanResponseSchemaFeature) UnmarshalJSON(data []byte) (err error)
type AddressScanResponseSchemaFeaturesType ¶ added in v0.12.0
type AddressScanResponseSchemaFeaturesType string
An enumeration.
const ( AddressScanResponseSchemaFeaturesTypeMalicious AddressScanResponseSchemaFeaturesType = "Malicious" AddressScanResponseSchemaFeaturesTypeWarning AddressScanResponseSchemaFeaturesType = "Warning" AddressScanResponseSchemaFeaturesTypeBenign AddressScanResponseSchemaFeaturesType = "Benign" AddressScanResponseSchemaFeaturesTypeInfo AddressScanResponseSchemaFeaturesType = "Info" )
func (AddressScanResponseSchemaFeaturesType) IsKnown ¶ added in v0.12.0
func (r AddressScanResponseSchemaFeaturesType) IsKnown() bool
type AddressScanResponseSchemaResultType ¶ added in v0.12.0
type AddressScanResponseSchemaResultType string
An enumeration.
const ( AddressScanResponseSchemaResultTypeMalicious AddressScanResponseSchemaResultType = "Malicious" AddressScanResponseSchemaResultTypeWarning AddressScanResponseSchemaResultType = "Warning" AddressScanResponseSchemaResultTypeBenign AddressScanResponseSchemaResultType = "Benign" )
func (AddressScanResponseSchemaResultType) IsKnown ¶ added in v0.12.0
func (r AddressScanResponseSchemaResultType) IsKnown() bool
type AssetDiff ¶ added in v0.7.3
type AssetDiff struct { // description of the asset for the current diff Asset AssetDiffAsset `json:"asset,required"` // amount of the asset that was transferred to the address in this transaction In []AssetDiffIn `json:"in,required"` // amount of the asset that was transferred from the address in this transaction Out []AssetDiffOut `json:"out,required"` JSON assetDiffJSON `json:"-"` }
func (*AssetDiff) UnmarshalJSON ¶ added in v0.7.3
type AssetDiffAsset ¶ added in v0.7.3
type AssetDiffAsset 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 AssetDiffAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` ChainName string `json:"chain_name"` ChainID int64 `json:"chain_id"` JSON assetDiffAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (AssetDiffAsset) AsUnion ¶ added in v0.7.3
func (r AssetDiffAsset) AsUnion() AssetDiffAssetUnion
AsUnion returns a AssetDiffAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc20TokenDetails, Erc1155TokenDetails, Erc721TokenDetails, NonercTokenDetails, NativeAssetDetails.
func (*AssetDiffAsset) UnmarshalJSON ¶ added in v0.7.3
func (r *AssetDiffAsset) UnmarshalJSON(data []byte) (err error)
type AssetDiffAssetType ¶ added in v0.7.3
type AssetDiffAssetType string
asset type.
const ( AssetDiffAssetTypeErc20 AssetDiffAssetType = "ERC20" AssetDiffAssetTypeErc1155 AssetDiffAssetType = "ERC1155" AssetDiffAssetTypeErc721 AssetDiffAssetType = "ERC721" AssetDiffAssetTypeNonerc AssetDiffAssetType = "NONERC" AssetDiffAssetTypeNative AssetDiffAssetType = "NATIVE" )
func (AssetDiffAssetType) IsKnown ¶ added in v0.7.3
func (r AssetDiffAssetType) IsKnown() bool
type AssetDiffAssetUnion ¶ added in v0.7.3
type AssetDiffAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by Erc20TokenDetails, Erc1155TokenDetails, Erc721TokenDetails, NonercTokenDetails or NativeAssetDetails.
type AssetDiffIn ¶ added in v0.7.3
type AssetDiffIn struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON assetDiffInJSON `json:"-"` // contains filtered or unexported fields }
func (AssetDiffIn) AsUnion ¶ added in v0.7.3
func (r AssetDiffIn) AsUnion() AssetDiffInUnion
AsUnion returns a AssetDiffInUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*AssetDiffIn) UnmarshalJSON ¶ added in v0.7.3
func (r *AssetDiffIn) UnmarshalJSON(data []byte) (err error)
type AssetDiffInUnion ¶ added in v0.7.3
type AssetDiffInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type AssetDiffOut ¶ added in v0.7.3
type AssetDiffOut struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON assetDiffOutJSON `json:"-"` // contains filtered or unexported fields }
func (AssetDiffOut) AsUnion ¶ added in v0.7.3
func (r AssetDiffOut) AsUnion() AssetDiffOutUnion
AsUnion returns a AssetDiffOutUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*AssetDiffOut) UnmarshalJSON ¶ added in v0.7.3
func (r *AssetDiffOut) UnmarshalJSON(data []byte) (err error)
type AssetDiffOutUnion ¶ added in v0.7.3
type AssetDiffOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type AssetTransferDetailsSchema ¶ added in v0.12.0
type AssetTransferDetailsSchema struct { // Raw value of the transfer RawValue int64 `json:"raw_value,required"` // Value of the transfer Value float64 `json:"value,required"` // Summarized description of the transfer Summary string `json:"summary,nullable"` // USD price of the asset UsdPrice float64 `json:"usd_price,nullable"` JSON assetTransferDetailsSchemaJSON `json:"-"` }
func (*AssetTransferDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *AssetTransferDetailsSchema) UnmarshalJSON(data []byte) (err error)
type BitcoinService ¶ added in v0.20.0
type BitcoinService struct { Options []option.RequestOption Transaction *BitcoinTransactionService }
BitcoinService 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 NewBitcoinService method instead.
func NewBitcoinService ¶ added in v0.20.0
func NewBitcoinService(opts ...option.RequestOption) (r *BitcoinService)
NewBitcoinService 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 BitcoinTransactionScanParams ¶ added in v0.20.0
type BitcoinTransactionScanParams struct { // List of options to include in the response // // - `simulation`: Include simulation output in the response Options param.Field[[]BitcoinTransactionScanParamsOption] `json:"options,required"` // The transaction encoded as a hex string Transaction param.Field[string] `json:"transaction,required"` Chain param.Field[BitcoinTransactionScanParamsChain] `json:"chain"` // Metadata Metadata param.Field[BitcoinTransactionScanParamsMetadataUnion] `json:"metadata"` // Allows simulating mined transactions where the UTXOs have already been spent SkipUtxoCheck param.Field[bool] `json:"skip_utxo_check"` }
func (BitcoinTransactionScanParams) MarshalJSON ¶ added in v0.20.0
func (r BitcoinTransactionScanParams) MarshalJSON() (data []byte, err error)
type BitcoinTransactionScanParamsChain ¶ added in v0.20.0
type BitcoinTransactionScanParamsChain string
const (
BitcoinTransactionScanParamsChainBitcoin BitcoinTransactionScanParamsChain = "bitcoin"
)
func (BitcoinTransactionScanParamsChain) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsChain) IsKnown() bool
type BitcoinTransactionScanParamsMetadata ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadata struct { // Metadata for in-app requests Type param.Field[BitcoinTransactionScanParamsMetadataType] `json:"type,required"` // URL of the dApp that originated the transaction URL param.Field[string] `json:"url"` }
Metadata
func (BitcoinTransactionScanParamsMetadata) MarshalJSON ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsMetadata) MarshalJSON() (data []byte, err error)
type BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadata ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadata struct { // Metadata for in-app requests Type param.Field[BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType] `json:"type,required"` }
func (BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadata) MarshalJSON ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadata) MarshalJSON() (data []byte, err error)
type BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType string
Metadata for in-app requests
const (
BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataTypeInApp BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType = "in_app"
)
func (BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadataType) IsKnown() bool
type BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadata ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadata struct { // Metadata for wallet requests Type param.Field[BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType] `json:"type,required"` // URL of the dApp that originated the transaction URL param.Field[string] `json:"url,required"` }
func (BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadata) MarshalJSON ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadata) MarshalJSON() (data []byte, err error)
type BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType string
Metadata for wallet requests
const (
BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataTypeWallet BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType = "wallet"
)
func (BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadataType) IsKnown() bool
type BitcoinTransactionScanParamsMetadataType ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadataType string
Metadata for in-app requests
const ( BitcoinTransactionScanParamsMetadataTypeInApp BitcoinTransactionScanParamsMetadataType = "in_app" BitcoinTransactionScanParamsMetadataTypeWallet BitcoinTransactionScanParamsMetadataType = "wallet" )
func (BitcoinTransactionScanParamsMetadataType) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsMetadataType) IsKnown() bool
type BitcoinTransactionScanParamsMetadataUnion ¶ added in v0.20.0
type BitcoinTransactionScanParamsMetadataUnion interface {
// contains filtered or unexported methods
}
Metadata
Satisfied by BitcoinTransactionScanParamsMetadataBitcoinInAppRequestMetadata, BitcoinTransactionScanParamsMetadataBitcoinWalletRequestMetadata, BitcoinTransactionScanParamsMetadata.
type BitcoinTransactionScanParamsOption ¶ added in v0.20.0
type BitcoinTransactionScanParamsOption string
const (
BitcoinTransactionScanParamsOptionSimulation BitcoinTransactionScanParamsOption = "simulation"
)
func (BitcoinTransactionScanParamsOption) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanParamsOption) IsKnown() bool
type BitcoinTransactionScanResponse ¶ added in v0.20.0
type BitcoinTransactionScanResponse struct { // Simulation result; Only present if simulation option is included in the request Simulation BitcoinTransactionScanResponseSimulation `json:"simulation,nullable"` JSON bitcoinTransactionScanResponseJSON `json:"-"` }
func (*BitcoinTransactionScanResponse) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponse) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulation ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulation struct { Status BitcoinTransactionScanResponseSimulationStatus `json:"status"` // This field can have the runtime type of // [map[string][]BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff]. AssetsDiffs interface{} `json:"assets_diffs,required"` // Error message Error string `json:"error"` JSON bitcoinTransactionScanResponseSimulationJSON `json:"-"` // contains filtered or unexported fields }
Simulation result; Only present if simulation option is included in the request
func (BitcoinTransactionScanResponseSimulation) AsUnion ¶ added in v0.20.0
func (r BitcoinTransactionScanResponseSimulation) AsUnion() BitcoinTransactionScanResponseSimulationUnion
AsUnion returns a BitcoinTransactionScanResponseSimulationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema, BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema.
func (*BitcoinTransactionScanResponseSimulation) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulation) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema struct { // Error message Error string `json:"error,required"` Status BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus `json:"status"` JSON bitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaJSON `json:"-"` }
func (*BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus string
const (
BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatusError BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus = "Error"
)
func (BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchemaStatus) IsKnown() bool
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema struct { // A dictionary describing the assets differences as a result of this transaction // for every involved address AssetsDiffs map[string][]BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff `json:"assets_diffs,required"` Status BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus `json:"status"` JSON bitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaJSON `json:"-"` }
func (*BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff struct { // Description of the asset for the current diff Asset BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAsset `json:"asset,required"` // The assets received by the address In []BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsIn `json:"in"` // The assets sent by the address Out []BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOut `json:"out"` JSON bitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffJSON `json:"-"` }
func (*BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiff) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAsset ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAsset struct { ChainName string `json:"chain_name,required"` Decimals int64 `json:"decimals,required"` LogoURL string `json:"logo_url,required"` Name string `json:"name,required"` Symbol string `json:"symbol,required"` Type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetType `json:"type,required"` ID string `json:"id"` SpacedName string `json:"spaced_name"` JSON bitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetJSON `json:"-"` }
Description of the asset for the current diff
func (*BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAsset) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetType ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetType string
const ( BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetTypeNative BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetType = "NATIVE" BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetTypeRune BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsAssetType = "RUNE" )
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsIn ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsIn struct { RawValue string `json:"raw_value"` Summary string `json:"summary"` UsdPrice string `json:"usd_price"` Value string `json:"value"` JSON bitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsInJSON `json:"-"` }
func (*BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsIn) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOut ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOut struct { RawValue string `json:"raw_value"` Summary string `json:"summary"` UsdPrice string `json:"usd_price"` Value string `json:"value"` JSON bitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOutJSON `json:"-"` }
func (*BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOut) UnmarshalJSON ¶ added in v0.20.0
func (r *BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus string
const (
BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatusSuccess BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus = "Success"
)
func (BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanResponseSimulationBitcoinSimulationSchemaStatus) IsKnown() bool
type BitcoinTransactionScanResponseSimulationStatus ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationStatus string
const ( BitcoinTransactionScanResponseSimulationStatusSuccess BitcoinTransactionScanResponseSimulationStatus = "Success" BitcoinTransactionScanResponseSimulationStatusError BitcoinTransactionScanResponseSimulationStatus = "Error" )
func (BitcoinTransactionScanResponseSimulationStatus) IsKnown ¶ added in v0.20.0
func (r BitcoinTransactionScanResponseSimulationStatus) IsKnown() bool
type BitcoinTransactionScanResponseSimulationUnion ¶ added in v0.20.0
type BitcoinTransactionScanResponseSimulationUnion interface {
// contains filtered or unexported methods
}
Simulation result; Only present if simulation option is included in the request
Union satisfied by BitcoinTransactionScanResponseSimulationBitcoinSimulationSchema or BitcoinTransactionScanResponseSimulationBitcoinSimulationErrorSchema.
type BitcoinTransactionService ¶ added in v0.20.0
type BitcoinTransactionService struct {
Options []option.RequestOption
}
BitcoinTransactionService 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 NewBitcoinTransactionService method instead.
func NewBitcoinTransactionService ¶ added in v0.20.0
func NewBitcoinTransactionService(opts ...option.RequestOption) (r *BitcoinTransactionService)
NewBitcoinTransactionService 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 (*BitcoinTransactionService) Scan ¶ added in v0.20.0
func (r *BitcoinTransactionService) Scan(ctx context.Context, body BitcoinTransactionScanParams, opts ...option.RequestOption) (res *BitcoinTransactionScanResponse, err error)
Scan Transaction
type Client ¶
type Client struct { Options []option.RequestOption Evm *EvmService Solana *SolanaService Stellar *StellarService Bitcoin *BitcoinService Starknet *StarknetService Site *SiteService Token *TokenService TokenBulk *TokenBulkService }
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, BLOCKAID_CLIENT_ID_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 CnftDetailsSchema ¶ added in v0.12.0
type CnftDetailsSchema struct { Address string `json:"address,required"` Decimals int64 `json:"decimals,required"` Name string `json:"name,required"` Symbol string `json:"symbol,required"` Logo string `json:"logo"` // Type of the asset (`"CNFT"`) Type string `json:"type"` JSON cnftDetailsSchemaJSON `json:"-"` }
func (*CnftDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *CnftDetailsSchema) UnmarshalJSON(data []byte) (err error)
type CnftDiffSchema ¶ added in v0.12.0
type CnftDiffSchema struct { Asset CnftDetailsSchema `json:"asset,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in,nullable"` Out AssetTransferDetailsSchema `json:"out,nullable"` JSON cnftDiffSchemaJSON `json:"-"` }
func (*CnftDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *CnftDiffSchema) UnmarshalJSON(data []byte) (err error)
type CnftMintAccountDetailsSchema ¶ added in v0.12.0
type CnftMintAccountDetailsSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Name of the mint Name string `json:"name,required"` // Symbol of the mint Symbol string `json:"symbol,required"` // URI of the mint Uri string `json:"uri,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` // Logo of the mint Logo string `json:"logo"` Type CnftMintAccountDetailsSchemaType `json:"type"` JSON cnftMintAccountDetailsSchemaJSON `json:"-"` }
func (*CnftMintAccountDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *CnftMintAccountDetailsSchema) UnmarshalJSON(data []byte) (err error)
type CnftMintAccountDetailsSchemaType ¶ added in v0.12.0
type CnftMintAccountDetailsSchemaType string
const (
CnftMintAccountDetailsSchemaTypeCnftMintAccount CnftMintAccountDetailsSchemaType = "CNFT_MINT_ACCOUNT"
)
func (CnftMintAccountDetailsSchemaType) IsKnown ¶ added in v0.12.0
func (r CnftMintAccountDetailsSchemaType) IsKnown() bool
type CombinedValidationResult ¶ added in v0.12.0
type CombinedValidationResult struct { // Transaction simulation result Simulation SuccessfulSimulationResultSchema `json:"simulation,nullable"` // Transaction validation result Validation CombinedValidationResultValidation `json:"validation,nullable"` JSON combinedValidationResultJSON `json:"-"` }
func (*CombinedValidationResult) UnmarshalJSON ¶ added in v0.12.0
func (r *CombinedValidationResult) UnmarshalJSON(data []byte) (err error)
type CombinedValidationResultValidation ¶ added in v0.12.0
type CombinedValidationResultValidation struct { // A list of features about this transaction explaining the validation Features []string `json:"features,required"` // An enumeration. Reason CombinedValidationResultValidationReason `json:"reason,required"` // An enumeration. Verdict CombinedValidationResultValidationVerdict `json:"verdict,required"` JSON combinedValidationResultValidationJSON `json:"-"` }
Transaction validation result
func (*CombinedValidationResultValidation) UnmarshalJSON ¶ added in v0.12.0
func (r *CombinedValidationResultValidation) UnmarshalJSON(data []byte) (err error)
type CombinedValidationResultValidationReason ¶ added in v0.12.0
type CombinedValidationResultValidationReason string
An enumeration.
const ( CombinedValidationResultValidationReasonEmpty CombinedValidationResultValidationReason = "" CombinedValidationResultValidationReasonUnknownProfiter CombinedValidationResultValidationReason = "unknown_profiter" CombinedValidationResultValidationReasonUnfairTrade CombinedValidationResultValidationReason = "unfair_trade" CombinedValidationResultValidationReasonTransferFarming CombinedValidationResultValidationReason = "transfer_farming" CombinedValidationResultValidationReasonWritableAccountsFarming CombinedValidationResultValidationReason = "writable_accounts_farming" CombinedValidationResultValidationReasonNativeOwnershipChange CombinedValidationResultValidationReason = "native_ownership_change" CombinedValidationResultValidationReasonSplTokenOwnershipChange CombinedValidationResultValidationReason = "spl_token_ownership_change" CombinedValidationResultValidationReasonExposureFarming CombinedValidationResultValidationReason = "exposure_farming" CombinedValidationResultValidationReasonKnownAttacker CombinedValidationResultValidationReason = "known_attacker" CombinedValidationResultValidationReasonInvalidSignature CombinedValidationResultValidationReason = "invalid_signature" CombinedValidationResultValidationReasonOther CombinedValidationResultValidationReason = "other" )
func (CombinedValidationResultValidationReason) IsKnown ¶ added in v0.12.0
func (r CombinedValidationResultValidationReason) IsKnown() bool
type CombinedValidationResultValidationVerdict ¶ added in v0.12.0
type CombinedValidationResultValidationVerdict string
An enumeration.
const ( CombinedValidationResultValidationVerdictBenign CombinedValidationResultValidationVerdict = "Benign" CombinedValidationResultValidationVerdictWarning CombinedValidationResultValidationVerdict = "Warning" CombinedValidationResultValidationVerdictMalicious CombinedValidationResultValidationVerdict = "Malicious" )
func (CombinedValidationResultValidationVerdict) IsKnown ¶ added in v0.12.0
func (r CombinedValidationResultValidationVerdict) IsKnown() bool
type DelegatedAssetDetailsSchema ¶ added in v0.12.0
type DelegatedAssetDetailsSchema struct { Asset DelegatedAssetDetailsSchemaAsset `json:"asset,required"` // The delegate's address Delegate string `json:"delegate,required"` // Details of the delegation Delegation AssetTransferDetailsSchema `json:"delegation,required"` JSON delegatedAssetDetailsSchemaJSON `json:"-"` }
func (*DelegatedAssetDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *DelegatedAssetDetailsSchema) UnmarshalJSON(data []byte) (err error)
type DelegatedAssetDetailsSchemaAsset ¶ added in v0.12.0
type DelegatedAssetDetailsSchemaAsset struct { Address string `json:"address,required"` Symbol string `json:"symbol,required"` Name string `json:"name,required"` Logo string `json:"logo"` // Type of the asset (`"TOKEN"`) Type string `json:"type"` Decimals int64 `json:"decimals"` JSON delegatedAssetDetailsSchemaAssetJSON `json:"-"` // contains filtered or unexported fields }
func (DelegatedAssetDetailsSchemaAsset) AsUnion ¶ added in v0.12.0
func (r DelegatedAssetDetailsSchemaAsset) AsUnion() DelegatedAssetDetailsSchemaAssetUnion
AsUnion returns a DelegatedAssetDetailsSchemaAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SplFungibleTokenDetailsSchema, SplNonFungibleTokenDetailsSchema, CnftDetailsSchema.
func (*DelegatedAssetDetailsSchemaAsset) UnmarshalJSON ¶ added in v0.12.0
func (r *DelegatedAssetDetailsSchemaAsset) UnmarshalJSON(data []byte) (err error)
type DelegatedAssetDetailsSchemaAssetUnion ¶ added in v0.12.0
type DelegatedAssetDetailsSchemaAssetUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SplFungibleTokenDetailsSchema, SplNonFungibleTokenDetailsSchema or CnftDetailsSchema.
type Erc1155Diff ¶
type Erc1155Diff struct { // id of the token TokenID string `json:"token_id,required"` // value before divided by decimal, that was transferred from this address Value string `json:"value,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 string `json:"usd_price"` JSON erc1155DiffJSON `json:"-"` }
func (*Erc1155Diff) UnmarshalJSON ¶
func (r *Erc1155Diff) UnmarshalJSON(data []byte) (err error)
type Erc1155Exposure ¶
type Erc1155Exposure struct { Exposure []Erc1155ExposureExposure `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 erc1155ExposureJSON `json:"-"` }
func (*Erc1155Exposure) UnmarshalJSON ¶
func (r *Erc1155Exposure) UnmarshalJSON(data []byte) (err error)
type Erc1155ExposureExposure ¶
type Erc1155ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON erc1155ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (Erc1155ExposureExposure) AsUnion ¶
func (r Erc1155ExposureExposure) AsUnion() Erc1155ExposureExposureUnion
AsUnion returns a Erc1155ExposureExposureUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*Erc1155ExposureExposure) UnmarshalJSON ¶
func (r *Erc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
type Erc1155ExposureExposureUnion ¶
type Erc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type Erc1155TokenDetails ¶
type Erc1155TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type Erc1155TokenDetailsType `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 erc1155TokenDetailsJSON `json:"-"` }
func (*Erc1155TokenDetails) UnmarshalJSON ¶
func (r *Erc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type Erc1155TokenDetailsType ¶
type Erc1155TokenDetailsType string
asset type.
const (
Erc1155TokenDetailsTypeErc1155 Erc1155TokenDetailsType = "ERC1155"
)
func (Erc1155TokenDetailsType) IsKnown ¶
func (r Erc1155TokenDetailsType) IsKnown() bool
type Erc20Diff ¶
type Erc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue string `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 string `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value string `json:"value"` JSON erc20DiffJSON `json:"-"` }
func (*Erc20Diff) UnmarshalJSON ¶
type Erc20Exposure ¶
type Erc20Exposure 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 []Erc20ExposureExposure `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 erc20ExposureJSON `json:"-"` }
func (*Erc20Exposure) UnmarshalJSON ¶
func (r *Erc20Exposure) UnmarshalJSON(data []byte) (err error)
type Erc20ExposureExposure ¶
type Erc20ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON erc20ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (Erc20ExposureExposure) AsUnion ¶
func (r Erc20ExposureExposure) AsUnion() Erc20ExposureExposureUnion
AsUnion returns a Erc20ExposureExposureUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*Erc20ExposureExposure) UnmarshalJSON ¶
func (r *Erc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
type Erc20ExposureExposureUnion ¶
type Erc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type Erc20TokenDetails ¶
type Erc20TokenDetails struct { // address of the token Address string `json:"address,required"` // asset's decimals Decimals int64 `json:"decimals,required"` // asset type. Type Erc20TokenDetailsType `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 erc20TokenDetailsJSON `json:"-"` }
func (*Erc20TokenDetails) UnmarshalJSON ¶
func (r *Erc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type Erc20TokenDetailsType ¶
type Erc20TokenDetailsType string
asset type.
const (
Erc20TokenDetailsTypeErc20 Erc20TokenDetailsType = "ERC20"
)
func (Erc20TokenDetailsType) IsKnown ¶
func (r Erc20TokenDetailsType) IsKnown() bool
type Erc721Diff ¶
type Erc721Diff struct { // id of the token TokenID string `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 string `json:"usd_price"` JSON erc721DiffJSON `json:"-"` }
func (*Erc721Diff) UnmarshalJSON ¶
func (r *Erc721Diff) UnmarshalJSON(data []byte) (err error)
type Erc721Exposure ¶
type Erc721Exposure struct { Exposure []Erc721ExposureExposure `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 erc721ExposureJSON `json:"-"` }
func (*Erc721Exposure) UnmarshalJSON ¶
func (r *Erc721Exposure) UnmarshalJSON(data []byte) (err error)
type Erc721ExposureExposure ¶
type Erc721ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON erc721ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (Erc721ExposureExposure) AsUnion ¶
func (r Erc721ExposureExposure) AsUnion() Erc721ExposureExposureUnion
AsUnion returns a Erc721ExposureExposureUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*Erc721ExposureExposure) UnmarshalJSON ¶
func (r *Erc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
type Erc721ExposureExposureUnion ¶
type Erc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type Erc721TokenDetails ¶
type Erc721TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type Erc721TokenDetailsType `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 erc721TokenDetailsJSON `json:"-"` }
func (*Erc721TokenDetails) UnmarshalJSON ¶
func (r *Erc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type Erc721TokenDetailsType ¶
type Erc721TokenDetailsType string
asset type.
const (
Erc721TokenDetailsTypeErc721 Erc721TokenDetailsType = "ERC721"
)
func (Erc721TokenDetailsType) IsKnown ¶
func (r Erc721TokenDetailsType) IsKnown() bool
type EvmJsonRpcScanParams ¶
type EvmJsonRpcScanParams struct { // The chain name or chain ID Chain param.Field[TransactionScanSupportedChain] `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[MetadataParam] `json:"metadata,required"` // The address of the account (wallet) received the request in hex string format AccountAddress param.Field[string] `json:"account_address"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmJsonRpcScanParamsBlockUnion] `json:"block"` // 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 EvmJsonRpcScanParamsBlockUnion ¶ added in v0.13.0
type EvmJsonRpcScanParamsBlockUnion interface {
ImplementsEvmJsonRpcScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
type EvmJsonRpcScanParamsData ¶
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 ¶
func (r EvmJsonRpcScanParamsData) MarshalJSON() (data []byte, err error)
type EvmJsonRpcScanParamsOption ¶
type EvmJsonRpcScanParamsOption string
An enumeration.
const ( EvmJsonRpcScanParamsOptionValidation EvmJsonRpcScanParamsOption = "validation" EvmJsonRpcScanParamsOptionSimulation EvmJsonRpcScanParamsOption = "simulation" EvmJsonRpcScanParamsOptionGasEstimation EvmJsonRpcScanParamsOption = "gas_estimation" EvmJsonRpcScanParamsOptionEvents EvmJsonRpcScanParamsOption = "events" )
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 EvmPostTransactionBulkScanParams ¶ added in v0.11.0
type EvmPostTransactionBulkScanParams struct { // The chain name or chain ID Chain param.Field[TransactionScanSupportedChain] `json:"chain,required"` // Transaction hashes to scan Data param.Field[[]string] `json:"data,required"` // Object of additional information to validate against. Metadata param.Field[MetadataParam] `json:"metadata,required"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmPostTransactionBulkScanParamsBlockUnion] `json:"block"` // 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[[]EvmPostTransactionBulkScanParamsOption] `json:"options"` }
func (EvmPostTransactionBulkScanParams) MarshalJSON ¶ added in v0.11.0
func (r EvmPostTransactionBulkScanParams) MarshalJSON() (data []byte, err error)
type EvmPostTransactionBulkScanParamsBlockUnion ¶ added in v0.13.0
type EvmPostTransactionBulkScanParamsBlockUnion interface {
ImplementsEvmPostTransactionBulkScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
type EvmPostTransactionBulkScanParamsOption ¶ added in v0.11.0
type EvmPostTransactionBulkScanParamsOption string
An enumeration.
const ( EvmPostTransactionBulkScanParamsOptionValidation EvmPostTransactionBulkScanParamsOption = "validation" EvmPostTransactionBulkScanParamsOptionSimulation EvmPostTransactionBulkScanParamsOption = "simulation" EvmPostTransactionBulkScanParamsOptionGasEstimation EvmPostTransactionBulkScanParamsOption = "gas_estimation" EvmPostTransactionBulkScanParamsOptionEvents EvmPostTransactionBulkScanParamsOption = "events" )
func (EvmPostTransactionBulkScanParamsOption) IsKnown ¶ added in v0.11.0
func (r EvmPostTransactionBulkScanParamsOption) IsKnown() bool
type EvmPostTransactionBulkService ¶ added in v0.11.0
type EvmPostTransactionBulkService struct {
Options []option.RequestOption
}
EvmPostTransactionBulkService 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 NewEvmPostTransactionBulkService method instead.
func NewEvmPostTransactionBulkService ¶ added in v0.11.0
func NewEvmPostTransactionBulkService(opts ...option.RequestOption) (r *EvmPostTransactionBulkService)
NewEvmPostTransactionBulkService 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 (*EvmPostTransactionBulkService) Scan ¶ added in v0.11.0
func (r *EvmPostTransactionBulkService) Scan(ctx context.Context, body EvmPostTransactionBulkScanParams, opts ...option.RequestOption) (res *[]TransactionScanResponse, err error)
Scan transactions that were already executed on chain, returns validation with features indicating address poisoning entites and malicious operators.
type EvmPostTransactionReportParams ¶ added in v0.15.0
type EvmPostTransactionReportParams struct { // Details about the report. Details param.Field[string] `json:"details,required"` // An enumeration. Event param.Field[EvmPostTransactionReportParamsEvent] `json:"event,required"` // The report parameters. Report param.Field[EvmPostTransactionReportParamsReportUnion] `json:"report,required"` }
func (EvmPostTransactionReportParams) MarshalJSON ¶ added in v0.15.0
func (r EvmPostTransactionReportParams) MarshalJSON() (data []byte, err error)
type EvmPostTransactionReportParamsEvent ¶ added in v0.15.0
type EvmPostTransactionReportParamsEvent string
An enumeration.
const ( EvmPostTransactionReportParamsEventFalsePositive EvmPostTransactionReportParamsEvent = "FALSE_POSITIVE" EvmPostTransactionReportParamsEventFalseNegative EvmPostTransactionReportParamsEvent = "FALSE_NEGATIVE" )
func (EvmPostTransactionReportParamsEvent) IsKnown ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsEvent) IsKnown() bool
type EvmPostTransactionReportParamsReport ¶ added in v0.15.0
type EvmPostTransactionReportParamsReport struct { Type param.Field[EvmPostTransactionReportParamsReportType] `json:"type,required"` Params param.Field[interface{}] `json:"params,required"` RequestID param.Field[string] `json:"request_id"` }
The report parameters.
func (EvmPostTransactionReportParamsReport) MarshalJSON ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsReport) MarshalJSON() (data []byte, err error)
type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParams ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParams struct { Params param.Field[EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsParams] `json:"params,required"` Type param.Field[EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsType] `json:"type,required"` }
func (EvmPostTransactionReportParamsReportParamReportChainTransactionHashParams) MarshalJSON ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsReportParamReportChainTransactionHashParams) MarshalJSON() (data []byte, err error)
type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsParams ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsParams struct { // The chain name Chain param.Field[TransactionScanSupportedChain] `json:"chain,required"` // The transaction hash to report on. TxHash param.Field[string] `json:"tx_hash,required"` }
func (EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsParams) MarshalJSON ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsParams) MarshalJSON() (data []byte, err error)
type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsType ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsType string
const (
EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsTypeParams EvmPostTransactionReportParamsReportParamReportChainTransactionHashParamsType = "params"
)
type EvmPostTransactionReportParamsReportRequestIDReport ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportRequestIDReport struct { RequestID param.Field[string] `json:"request_id,required"` Type param.Field[EvmPostTransactionReportParamsReportRequestIDReportType] `json:"type,required"` }
func (EvmPostTransactionReportParamsReportRequestIDReport) MarshalJSON ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsReportRequestIDReport) MarshalJSON() (data []byte, err error)
type EvmPostTransactionReportParamsReportRequestIDReportType ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportRequestIDReportType string
const (
EvmPostTransactionReportParamsReportRequestIDReportTypeRequestID EvmPostTransactionReportParamsReportRequestIDReportType = "request_id"
)
func (EvmPostTransactionReportParamsReportRequestIDReportType) IsKnown ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsReportRequestIDReportType) IsKnown() bool
type EvmPostTransactionReportParamsReportType ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportType string
const ( EvmPostTransactionReportParamsReportTypeParams EvmPostTransactionReportParamsReportType = "params" EvmPostTransactionReportParamsReportTypeRequestID EvmPostTransactionReportParamsReportType = "request_id" )
func (EvmPostTransactionReportParamsReportType) IsKnown ¶ added in v0.15.0
func (r EvmPostTransactionReportParamsReportType) IsKnown() bool
type EvmPostTransactionReportParamsReportUnion ¶ added in v0.15.0
type EvmPostTransactionReportParamsReportUnion interface {
// contains filtered or unexported methods
}
The report parameters.
Satisfied by EvmPostTransactionReportParamsReportParamReportChainTransactionHashParams, EvmPostTransactionReportParamsReportRequestIDReport, EvmPostTransactionReportParamsReport.
type EvmPostTransactionReportResponse ¶ added in v0.15.0
type EvmPostTransactionReportResponse = interface{}
type EvmPostTransactionScanParams ¶ added in v0.11.0
type EvmPostTransactionScanParams struct { // The chain name or chain ID Chain param.Field[TransactionScanSupportedChain] `json:"chain,required"` Data param.Field[EvmPostTransactionScanParamsData] `json:"data,required"` // Object of additional information to validate against. Metadata param.Field[MetadataParam] `json:"metadata,required"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmPostTransactionScanParamsBlockUnion] `json:"block"` // 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[[]EvmPostTransactionScanParamsOption] `json:"options"` }
func (EvmPostTransactionScanParams) MarshalJSON ¶ added in v0.11.0
func (r EvmPostTransactionScanParams) MarshalJSON() (data []byte, err error)
type EvmPostTransactionScanParamsBlockUnion ¶ added in v0.13.0
type EvmPostTransactionScanParamsBlockUnion interface {
ImplementsEvmPostTransactionScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
type EvmPostTransactionScanParamsData ¶ added in v0.11.0
type EvmPostTransactionScanParamsData struct { // The transaction hash to scan TxHash param.Field[string] `json:"tx_hash,required"` }
func (EvmPostTransactionScanParamsData) MarshalJSON ¶ added in v0.11.0
func (r EvmPostTransactionScanParamsData) MarshalJSON() (data []byte, err error)
type EvmPostTransactionScanParamsOption ¶ added in v0.11.0
type EvmPostTransactionScanParamsOption string
An enumeration.
const ( EvmPostTransactionScanParamsOptionValidation EvmPostTransactionScanParamsOption = "validation" EvmPostTransactionScanParamsOptionSimulation EvmPostTransactionScanParamsOption = "simulation" EvmPostTransactionScanParamsOptionGasEstimation EvmPostTransactionScanParamsOption = "gas_estimation" EvmPostTransactionScanParamsOptionEvents EvmPostTransactionScanParamsOption = "events" )
func (EvmPostTransactionScanParamsOption) IsKnown ¶ added in v0.11.0
func (r EvmPostTransactionScanParamsOption) IsKnown() bool
type EvmPostTransactionService ¶ added in v0.11.0
type EvmPostTransactionService struct {
Options []option.RequestOption
}
EvmPostTransactionService 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 NewEvmPostTransactionService method instead.
func NewEvmPostTransactionService ¶ added in v0.11.0
func NewEvmPostTransactionService(opts ...option.RequestOption) (r *EvmPostTransactionService)
NewEvmPostTransactionService 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 (*EvmPostTransactionService) Report ¶ added in v0.15.0
func (r *EvmPostTransactionService) Report(ctx context.Context, body EvmPostTransactionReportParams, opts ...option.RequestOption) (res *EvmPostTransactionReportResponse, err error)
Report for misclassification of an EVM post transaction.
func (*EvmPostTransactionService) Scan ¶ added in v0.11.0
func (r *EvmPostTransactionService) Scan(ctx context.Context, body EvmPostTransactionScanParams, opts ...option.RequestOption) (res *TransactionScanResponse, err error)
Scan a transaction that was already executed on chain, returns validation with features indicating address poisoning entites and malicious operators.
type EvmService ¶
type EvmService struct { Options []option.RequestOption JsonRpc *EvmJsonRpcService Transaction *EvmTransactionService TransactionBulk *EvmTransactionBulkService TransactionRaw *EvmTransactionRawService UserOperation *EvmUserOperationService PostTransaction *EvmPostTransactionService PostTransactionBulk *EvmPostTransactionBulkService }
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 or chain ID Chain param.Field[TransactionScanSupportedChain] `json:"chain,required"` // Transaction bulk parameters Data param.Field[[]EvmTransactionBulkScanParamsData] `json:"data,required"` // Object of additional information to validate against. Metadata param.Field[MetadataParam] `json:"metadata,required"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmTransactionBulkScanParamsBlockUnion] `json:"block"` // 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 EvmTransactionBulkScanParamsBlockUnion ¶ added in v0.13.0
type EvmTransactionBulkScanParamsBlockUnion interface {
ImplementsEvmTransactionBulkScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
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 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 *[]TransactionScanResponse, 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 EvmTransactionRawScanParams ¶
type EvmTransactionRawScanParams 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 or chain ID Chain param.Field[TransactionScanSupportedChain] `json:"chain,required"` // Hex string of the raw transaction data Data param.Field[string] `json:"data,required"` // Object of additional information to validate against. Metadata param.Field[MetadataParam] `json:"metadata,required"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmTransactionRawScanParamsBlockUnion] `json:"block"` // 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[[]EvmTransactionRawScanParamsOption] `json:"options"` }
func (EvmTransactionRawScanParams) MarshalJSON ¶
func (r EvmTransactionRawScanParams) MarshalJSON() (data []byte, err error)
type EvmTransactionRawScanParamsBlockUnion ¶ added in v0.13.0
type EvmTransactionRawScanParamsBlockUnion interface {
ImplementsEvmTransactionRawScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
type EvmTransactionRawScanParamsOption ¶
type EvmTransactionRawScanParamsOption string
An enumeration.
const ( EvmTransactionRawScanParamsOptionValidation EvmTransactionRawScanParamsOption = "validation" EvmTransactionRawScanParamsOptionSimulation EvmTransactionRawScanParamsOption = "simulation" EvmTransactionRawScanParamsOptionGasEstimation EvmTransactionRawScanParamsOption = "gas_estimation" EvmTransactionRawScanParamsOptionEvents EvmTransactionRawScanParamsOption = "events" )
func (EvmTransactionRawScanParamsOption) IsKnown ¶
func (r EvmTransactionRawScanParamsOption) IsKnown() bool
type EvmTransactionRawService ¶
type EvmTransactionRawService struct {
Options []option.RequestOption
}
EvmTransactionRawService 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 NewEvmTransactionRawService method instead.
func NewEvmTransactionRawService ¶
func NewEvmTransactionRawService(opts ...option.RequestOption) (r *EvmTransactionRawService)
NewEvmTransactionRawService 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 (*EvmTransactionRawService) Scan ¶
func (r *EvmTransactionRawService) Scan(ctx context.Context, body EvmTransactionRawScanParams, opts ...option.RequestOption) (res *TransactionScanResponse, err error)
Gets a raw 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 EvmTransactionReportParams ¶ added in v0.15.0
type EvmTransactionReportParams struct { // Details about the report. Details param.Field[string] `json:"details,required"` // An enumeration. Event param.Field[EvmTransactionReportParamsEvent] `json:"event,required"` // The report parameters. Report param.Field[EvmTransactionReportParamsReportUnion] `json:"report,required"` }
func (EvmTransactionReportParams) MarshalJSON ¶ added in v0.15.0
func (r EvmTransactionReportParams) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsEvent ¶ added in v0.15.0
type EvmTransactionReportParamsEvent string
An enumeration.
const ( EvmTransactionReportParamsEventFalsePositive EvmTransactionReportParamsEvent = "FALSE_POSITIVE" EvmTransactionReportParamsEventFalseNegative EvmTransactionReportParamsEvent = "FALSE_NEGATIVE" )
func (EvmTransactionReportParamsEvent) IsKnown ¶ added in v0.15.0
func (r EvmTransactionReportParamsEvent) IsKnown() bool
type EvmTransactionReportParamsReport ¶ added in v0.15.0
type EvmTransactionReportParamsReport struct { Type param.Field[EvmTransactionReportParamsReportType] `json:"type,required"` Params param.Field[interface{}] `json:"params,required"` RequestID param.Field[string] `json:"request_id"` }
The report parameters.
func (EvmTransactionReportParamsReport) MarshalJSON ¶ added in v0.15.0
func (r EvmTransactionReportParamsReport) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportParamReportTransactionReportParams ¶ added in v0.15.0
type EvmTransactionReportParamsReportParamReportTransactionReportParams struct { Params param.Field[EvmTransactionReportParamsReportParamReportTransactionReportParamsParams] `json:"params,required"` Type param.Field[EvmTransactionReportParamsReportParamReportTransactionReportParamsType] `json:"type,required"` }
func (EvmTransactionReportParamsReportParamReportTransactionReportParams) MarshalJSON ¶ added in v0.15.0
func (r EvmTransactionReportParamsReportParamReportTransactionReportParams) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParams ¶ added in v0.15.0
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParams 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[TransactionScanSupportedChain] `json:"chain,required"` // Transaction parameters Data param.Field[EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataUnion] `json:"data,required"` // Object of additional information to validate against. Metadata param.Field[MetadataParam] `json:"metadata,required"` }
func (EvmTransactionReportParamsReportParamReportTransactionReportParamsParams) MarshalJSON ¶ added in v0.15.0
func (r EvmTransactionReportParamsReportParamReportTransactionReportParamsParams) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsData ¶ added in v0.16.0
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsData struct { // The source address of the transaction in hex string format From param.Field[string] `json:"from"` // The destination address of the transaction in hex string format To param.Field[string] `json:"to"` // The encoded call data of the transaction in hex string format Data param.Field[string] `json:"data"` // The value of the transaction in Wei in hex string format Value param.Field[string] `json:"value"` // 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 method of the JSON-RPC request Method param.Field[string] `json:"method"` Params param.Field[interface{}] `json:"params,required"` }
Transaction parameters
func (EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsData) MarshalJSON ¶ added in v0.16.0
func (r EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsData) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataJsonRpc ¶ added in v0.16.0
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataJsonRpc 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"` }
func (EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataJsonRpc) MarshalJSON ¶ added in v0.16.0
func (r EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataJsonRpc) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataTransaction ¶ added in v0.16.0
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataTransaction 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 (EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataTransaction) MarshalJSON ¶ added in v0.16.0
func (r EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataTransaction) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataUnion ¶ added in v0.16.0
type EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataUnion interface {
// contains filtered or unexported methods
}
Transaction parameters
Satisfied by EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataTransaction, EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsDataJsonRpc, EvmTransactionReportParamsReportParamReportTransactionReportParamsParamsData.
type EvmTransactionReportParamsReportParamReportTransactionReportParamsType ¶ added in v0.15.0
type EvmTransactionReportParamsReportParamReportTransactionReportParamsType string
const (
EvmTransactionReportParamsReportParamReportTransactionReportParamsTypeParams EvmTransactionReportParamsReportParamReportTransactionReportParamsType = "params"
)
func (EvmTransactionReportParamsReportParamReportTransactionReportParamsType) IsKnown ¶ added in v0.15.0
func (r EvmTransactionReportParamsReportParamReportTransactionReportParamsType) IsKnown() bool
type EvmTransactionReportParamsReportRequestIDReport ¶ added in v0.15.0
type EvmTransactionReportParamsReportRequestIDReport struct { RequestID param.Field[string] `json:"request_id,required"` Type param.Field[EvmTransactionReportParamsReportRequestIDReportType] `json:"type,required"` }
func (EvmTransactionReportParamsReportRequestIDReport) MarshalJSON ¶ added in v0.15.0
func (r EvmTransactionReportParamsReportRequestIDReport) MarshalJSON() (data []byte, err error)
type EvmTransactionReportParamsReportRequestIDReportType ¶ added in v0.15.0
type EvmTransactionReportParamsReportRequestIDReportType string
const (
EvmTransactionReportParamsReportRequestIDReportTypeRequestID EvmTransactionReportParamsReportRequestIDReportType = "request_id"
)
func (EvmTransactionReportParamsReportRequestIDReportType) IsKnown ¶ added in v0.15.0
func (r EvmTransactionReportParamsReportRequestIDReportType) IsKnown() bool
type EvmTransactionReportParamsReportType ¶ added in v0.15.0
type EvmTransactionReportParamsReportType string
const ( EvmTransactionReportParamsReportTypeParams EvmTransactionReportParamsReportType = "params" EvmTransactionReportParamsReportTypeRequestID EvmTransactionReportParamsReportType = "request_id" )
func (EvmTransactionReportParamsReportType) IsKnown ¶ added in v0.15.0
func (r EvmTransactionReportParamsReportType) IsKnown() bool
type EvmTransactionReportParamsReportUnion ¶ added in v0.15.0
type EvmTransactionReportParamsReportUnion interface {
// contains filtered or unexported methods
}
The report parameters.
Satisfied by EvmTransactionReportParamsReportParamReportTransactionReportParams, EvmTransactionReportParamsReportRequestIDReport, EvmTransactionReportParamsReport.
type EvmTransactionReportResponse ¶ added in v0.15.0
type EvmTransactionReportResponse = interface{}
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 or chain ID Chain param.Field[TransactionScanSupportedChain] `json:"chain,required"` // Transaction parameters Data param.Field[EvmTransactionScanParamsData] `json:"data,required"` // Object of additional information to validate against. Metadata param.Field[MetadataParam] `json:"metadata,required"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmTransactionScanParamsBlockUnion] `json:"block"` // 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 EvmTransactionScanParamsBlockUnion ¶ added in v0.13.0
type EvmTransactionScanParamsBlockUnion interface {
ImplementsEvmTransactionScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
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 EvmTransactionScanParamsOption ¶
type EvmTransactionScanParamsOption string
An enumeration.
const ( EvmTransactionScanParamsOptionValidation EvmTransactionScanParamsOption = "validation" EvmTransactionScanParamsOptionSimulation EvmTransactionScanParamsOption = "simulation" EvmTransactionScanParamsOptionGasEstimation EvmTransactionScanParamsOption = "gas_estimation" EvmTransactionScanParamsOptionEvents EvmTransactionScanParamsOption = "events" )
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) Report ¶ added in v0.15.0
func (r *EvmTransactionService) Report(ctx context.Context, body EvmTransactionReportParams, opts ...option.RequestOption) (res *EvmTransactionReportResponse, err error)
Report for misclassification of a transaction.
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 ¶ added in v0.7.0
type EvmUserOperationScanParams struct { // The chain name or chain ID Chain param.Field[TransactionScanSupportedChain] `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[MetadataParam] `json:"metadata,required"` // The address of the account (wallet) sending the request in hex string format AccountAddress param.Field[string] `json:"account_address"` // The relative block for the block validation. Can be "latest" or a block number. Block param.Field[EvmUserOperationScanParamsBlockUnion] `json:"block"` // 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 ¶ added in v0.7.0
func (r EvmUserOperationScanParams) MarshalJSON() (data []byte, err error)
type EvmUserOperationScanParamsBlockUnion ¶ added in v0.13.0
type EvmUserOperationScanParamsBlockUnion interface {
ImplementsEvmUserOperationScanParamsBlockUnion()
}
The relative block for the block validation. Can be "latest" or a block number.
Satisfied by shared.UnionInt, shared.UnionString.
type EvmUserOperationScanParamsData ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (r EvmUserOperationScanParamsData) MarshalJSON() (data []byte, err error)
type EvmUserOperationScanParamsDataOperation ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (r EvmUserOperationScanParamsDataOperation) MarshalJSON() (data []byte, err error)
type EvmUserOperationScanParamsOption ¶ added in v0.7.0
type EvmUserOperationScanParamsOption string
An enumeration.
const ( EvmUserOperationScanParamsOptionValidation EvmUserOperationScanParamsOption = "validation" EvmUserOperationScanParamsOptionSimulation EvmUserOperationScanParamsOption = "simulation" EvmUserOperationScanParamsOptionGasEstimation EvmUserOperationScanParamsOption = "gas_estimation" EvmUserOperationScanParamsOptionEvents EvmUserOperationScanParamsOption = "events" )
func (EvmUserOperationScanParamsOption) IsKnown ¶ added in v0.7.0
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 ¶ added in v0.7.0
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 FungibleMintAccountDetailsSchema ¶ added in v0.12.0
type FungibleMintAccountDetailsSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Name of the mint Name string `json:"name,required"` // Symbol of the mint Symbol string `json:"symbol,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` // Logo of the mint Logo string `json:"logo"` Type FungibleMintAccountDetailsSchemaType `json:"type"` JSON fungibleMintAccountDetailsSchemaJSON `json:"-"` }
func (*FungibleMintAccountDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *FungibleMintAccountDetailsSchema) UnmarshalJSON(data []byte) (err error)
type FungibleMintAccountDetailsSchemaType ¶ added in v0.12.0
type FungibleMintAccountDetailsSchemaType string
const (
FungibleMintAccountDetailsSchemaTypeFungibleMintAccount FungibleMintAccountDetailsSchemaType = "FUNGIBLE_MINT_ACCOUNT"
)
func (FungibleMintAccountDetailsSchemaType) IsKnown ¶ added in v0.12.0
func (r FungibleMintAccountDetailsSchemaType) IsKnown() bool
type InstructionErrorDetails ¶ added in v0.22.1
type InstructionErrorDetails struct { // Index of the instruction in the transaction InstructionIndex int64 `json:"instruction_index,required"` // Advanced message of the error Message string `json:"message,required"` // Index of the transaction in the bulk TransactionIndex int64 `json:"transaction_index,required"` // The program account that caused the error ProgramAccount string `json:"program_account,nullable"` Type string `json:"type"` JSON instructionErrorDetailsJSON `json:"-"` }
func (*InstructionErrorDetails) UnmarshalJSON ¶ added in v0.22.1
func (r *InstructionErrorDetails) UnmarshalJSON(data []byte) (err error)
type MetadataParam ¶
type MetadataParam struct { // cross reference transaction against the domain. Domain param.Field[string] `json:"domain,required"` }
func (MetadataParam) MarshalJSON ¶
func (r MetadataParam) MarshalJSON() (data []byte, err error)
type NativeAssetDetails ¶ added in v0.7.3
type NativeAssetDetails 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 NativeAssetDetailsType `json:"type,required"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON nativeAssetDetailsJSON `json:"-"` }
func (*NativeAssetDetails) UnmarshalJSON ¶ added in v0.7.3
func (r *NativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type NativeAssetDetailsType ¶ added in v0.7.3
type NativeAssetDetailsType string
asset type.
const (
NativeAssetDetailsTypeNative NativeAssetDetailsType = "NATIVE"
)
func (NativeAssetDetailsType) IsKnown ¶ added in v0.7.3
func (r NativeAssetDetailsType) IsKnown() bool
type NativeDiff ¶
type NativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue string `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 string `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value string `json:"value"` JSON nativeDiffJSON `json:"-"` }
func (*NativeDiff) UnmarshalJSON ¶
func (r *NativeDiff) UnmarshalJSON(data []byte) (err error)
type NativeSolDetailsSchema ¶ added in v0.12.0
type NativeSolDetailsSchema struct { Decimals int64 `json:"decimals"` // Logo of Sol Logo string `json:"logo,nullable"` // Type of the asset (`"SOL"`) Type string `json:"type"` JSON nativeSolDetailsSchemaJSON `json:"-"` }
func (*NativeSolDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *NativeSolDetailsSchema) UnmarshalJSON(data []byte) (err error)
type NativeSolDiffSchema ¶ added in v0.12.0
type NativeSolDiffSchema struct { Asset NativeSolDetailsSchema `json:"asset,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in,nullable"` Out AssetTransferDetailsSchema `json:"out,nullable"` JSON nativeSolDiffSchemaJSON `json:"-"` }
func (*NativeSolDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *NativeSolDiffSchema) UnmarshalJSON(data []byte) (err error)
type NativeSolOwnershipDiffSchema ¶ added in v0.12.0
type NativeSolOwnershipDiffSchema struct { Asset NativeSolDetailsSchema `json:"asset,required"` // The owner post the transaction PostOwner string `json:"post_owner,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in_,nullable"` // Details of the moved value Out AssetTransferDetailsSchema `json:"out,nullable"` // The owner prior to the transaction PreOwner string `json:"pre_owner,nullable"` JSON nativeSolOwnershipDiffSchemaJSON `json:"-"` }
func (*NativeSolOwnershipDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *NativeSolOwnershipDiffSchema) UnmarshalJSON(data []byte) (err error)
type NonFungibleMintAccountDetailsSchema ¶ added in v0.12.0
type NonFungibleMintAccountDetailsSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Name of the mint Name string `json:"name,required"` // Symbol of the mint Symbol string `json:"symbol,required"` // URI of the mint Uri string `json:"uri,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` // Logo of the mint Logo string `json:"logo"` Type NonFungibleMintAccountDetailsSchemaType `json:"type"` JSON nonFungibleMintAccountDetailsSchemaJSON `json:"-"` }
func (*NonFungibleMintAccountDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *NonFungibleMintAccountDetailsSchema) UnmarshalJSON(data []byte) (err error)
type NonFungibleMintAccountDetailsSchemaType ¶ added in v0.12.0
type NonFungibleMintAccountDetailsSchemaType string
const (
NonFungibleMintAccountDetailsSchemaTypeNonFungibleMintAccount NonFungibleMintAccountDetailsSchemaType = "NON_FUNGIBLE_MINT_ACCOUNT"
)
func (NonFungibleMintAccountDetailsSchemaType) IsKnown ¶ added in v0.12.0
func (r NonFungibleMintAccountDetailsSchemaType) IsKnown() bool
type NonercTokenDetails ¶
type NonercTokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type NonercTokenDetailsType `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 nonercTokenDetailsJSON `json:"-"` }
func (*NonercTokenDetails) UnmarshalJSON ¶
func (r *NonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type NonercTokenDetailsType ¶
type NonercTokenDetailsType string
asset type.
const (
NonercTokenDetailsTypeNonerc NonercTokenDetailsType = "NONERC"
)
func (NonercTokenDetailsType) IsKnown ¶
func (r NonercTokenDetailsType) IsKnown() bool
type PdaAccountSchema ¶ added in v0.12.0
type PdaAccountSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // The address of the owning program Owner string `json:"owner,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` Type PdaAccountSchemaType `json:"type"` JSON pdaAccountSchemaJSON `json:"-"` }
func (*PdaAccountSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *PdaAccountSchema) UnmarshalJSON(data []byte) (err error)
type PdaAccountSchemaType ¶ added in v0.12.0
type PdaAccountSchemaType string
const (
PdaAccountSchemaTypePda PdaAccountSchemaType = "PDA"
)
func (PdaAccountSchemaType) IsKnown ¶ added in v0.12.0
func (r PdaAccountSchemaType) IsKnown() bool
type ProgramAccountDetailsSchema ¶ added in v0.12.0
type ProgramAccountDetailsSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` Type ProgramAccountDetailsSchemaType `json:"type,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` JSON programAccountDetailsSchemaJSON `json:"-"` }
func (*ProgramAccountDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *ProgramAccountDetailsSchema) UnmarshalJSON(data []byte) (err error)
type ProgramAccountDetailsSchemaType ¶ added in v0.12.0
type ProgramAccountDetailsSchemaType string
const ( ProgramAccountDetailsSchemaTypeProgram ProgramAccountDetailsSchemaType = "PROGRAM" ProgramAccountDetailsSchemaTypeNativeProgram ProgramAccountDetailsSchemaType = "NATIVE_PROGRAM" )
func (ProgramAccountDetailsSchemaType) IsKnown ¶ added in v0.12.0
func (r ProgramAccountDetailsSchemaType) IsKnown() bool
type ResponseSchema ¶ added in v0.12.0
type ResponseSchema struct { // An enumeration. Status ResponseSchemaStatus `json:"status,required"` // Encoding of the public keys Encoding string `json:"encoding"` // Error message if the simulation failed Error string `json:"error,nullable"` // Advanced error details ErrorDetails ResponseSchemaErrorDetails `json:"error_details,nullable"` // Summary of the result Result CombinedValidationResult `json:"result,nullable"` JSON responseSchemaJSON `json:"-"` }
func (*ResponseSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *ResponseSchema) UnmarshalJSON(data []byte) (err error)
type ResponseSchemaErrorDetails ¶ added in v0.22.1
type ResponseSchemaErrorDetails struct { Type string `json:"type"` // Advanced message of the error Message string `json:"message,required"` // Index of the transaction in the bulk TransactionIndex int64 `json:"transaction_index"` // Index of the instruction in the transaction InstructionIndex int64 `json:"instruction_index"` // The program account that caused the error ProgramAccount string `json:"program_account,nullable"` JSON responseSchemaErrorDetailsJSON `json:"-"` // contains filtered or unexported fields }
Advanced error details
func (ResponseSchemaErrorDetails) AsUnion ¶ added in v0.22.1
func (r ResponseSchemaErrorDetails) AsUnion() ResponseSchemaErrorDetailsUnion
AsUnion returns a ResponseSchemaErrorDetailsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are APIErrorDetails, TransactionErrorDetails, InstructionErrorDetails.
func (*ResponseSchemaErrorDetails) UnmarshalJSON ¶ added in v0.22.1
func (r *ResponseSchemaErrorDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSchemaErrorDetailsUnion ¶ added in v0.22.1
type ResponseSchemaErrorDetailsUnion interface {
// contains filtered or unexported methods
}
Advanced error details
Union satisfied by APIErrorDetails, TransactionErrorDetails or InstructionErrorDetails.
type ResponseSchemaStatus ¶ added in v0.22.1
type ResponseSchemaStatus string
An enumeration.
const ( ResponseSchemaStatusSuccess ResponseSchemaStatus = "SUCCESS" ResponseSchemaStatusError ResponseSchemaStatus = "ERROR" )
func (ResponseSchemaStatus) IsKnown ¶ added in v0.22.1
func (r ResponseSchemaStatus) IsKnown() bool
type SiteReportParams ¶ added in v0.15.0
type SiteReportParams struct { // Details about the report. Details param.Field[string] `json:"details,required"` // An enumeration. Event param.Field[SiteReportParamsEvent] `json:"event,required"` // The report parameters. Report param.Field[SiteReportParamsReportUnion] `json:"report,required"` }
func (SiteReportParams) MarshalJSON ¶ added in v0.15.0
func (r SiteReportParams) MarshalJSON() (data []byte, err error)
type SiteReportParamsEvent ¶ added in v0.15.0
type SiteReportParamsEvent string
An enumeration.
const ( SiteReportParamsEventFalsePositive SiteReportParamsEvent = "FALSE_POSITIVE" SiteReportParamsEventFalseNegative SiteReportParamsEvent = "FALSE_NEGATIVE" )
func (SiteReportParamsEvent) IsKnown ¶ added in v0.15.0
func (r SiteReportParamsEvent) IsKnown() bool
type SiteReportParamsReport ¶ added in v0.15.0
type SiteReportParamsReport struct { Type param.Field[SiteReportParamsReportType] `json:"type,required"` Params param.Field[interface{}] `json:"params,required"` RequestID param.Field[string] `json:"request_id"` }
The report parameters.
func (SiteReportParamsReport) MarshalJSON ¶ added in v0.15.0
func (r SiteReportParamsReport) MarshalJSON() (data []byte, err error)
type SiteReportParamsReportParamReportSiteReportParams ¶ added in v0.15.0
type SiteReportParamsReportParamReportSiteReportParams struct { Params param.Field[SiteReportParamsReportParamReportSiteReportParamsParams] `json:"params,required"` Type param.Field[SiteReportParamsReportParamReportSiteReportParamsType] `json:"type,required"` }
func (SiteReportParamsReportParamReportSiteReportParams) MarshalJSON ¶ added in v0.15.0
func (r SiteReportParamsReportParamReportSiteReportParams) MarshalJSON() (data []byte, err error)
type SiteReportParamsReportParamReportSiteReportParamsParams ¶ added in v0.15.0
type SiteReportParamsReportParamReportSiteReportParamsParams struct { // The url of the site to report on. URL param.Field[string] `json:"url,required"` }
func (SiteReportParamsReportParamReportSiteReportParamsParams) MarshalJSON ¶ added in v0.15.0
func (r SiteReportParamsReportParamReportSiteReportParamsParams) MarshalJSON() (data []byte, err error)
type SiteReportParamsReportParamReportSiteReportParamsType ¶ added in v0.15.0
type SiteReportParamsReportParamReportSiteReportParamsType string
const (
SiteReportParamsReportParamReportSiteReportParamsTypeParams SiteReportParamsReportParamReportSiteReportParamsType = "params"
)
func (SiteReportParamsReportParamReportSiteReportParamsType) IsKnown ¶ added in v0.15.0
func (r SiteReportParamsReportParamReportSiteReportParamsType) IsKnown() bool
type SiteReportParamsReportRequestIDReport ¶ added in v0.15.0
type SiteReportParamsReportRequestIDReport struct { RequestID param.Field[string] `json:"request_id,required"` Type param.Field[SiteReportParamsReportRequestIDReportType] `json:"type,required"` }
func (SiteReportParamsReportRequestIDReport) MarshalJSON ¶ added in v0.15.0
func (r SiteReportParamsReportRequestIDReport) MarshalJSON() (data []byte, err error)
type SiteReportParamsReportRequestIDReportType ¶ added in v0.15.0
type SiteReportParamsReportRequestIDReportType string
const (
SiteReportParamsReportRequestIDReportTypeRequestID SiteReportParamsReportRequestIDReportType = "request_id"
)
func (SiteReportParamsReportRequestIDReportType) IsKnown ¶ added in v0.15.0
func (r SiteReportParamsReportRequestIDReportType) IsKnown() bool
type SiteReportParamsReportType ¶ added in v0.15.0
type SiteReportParamsReportType string
const ( SiteReportParamsReportTypeParams SiteReportParamsReportType = "params" SiteReportParamsReportTypeRequestID SiteReportParamsReportType = "request_id" )
func (SiteReportParamsReportType) IsKnown ¶ added in v0.15.0
func (r SiteReportParamsReportType) IsKnown() bool
type SiteReportParamsReportUnion ¶ added in v0.15.0
type SiteReportParamsReportUnion interface {
// contains filtered or unexported methods
}
The report parameters.
Satisfied by SiteReportParamsReportParamReportSiteReportParams, SiteReportParamsReportRequestIDReport, SiteReportParamsReport.
type SiteReportResponse ¶ added in v0.15.0
type SiteReportResponse = interface{}
type SiteScanHitResponse ¶
type SiteScanHitResponse struct { AttackTypes map[string]SiteScanHitResponseAttackType `json:"attack_types,required"` ContractRead SiteScanHitResponseContractRead `json:"contract_read,required"` ContractWrite SiteScanHitResponseContractWrite `json:"contract_write,required"` IsMalicious bool `json:"is_malicious,required"` IsReachable bool `json:"is_reachable,required"` IsWeb3Site bool `json:"is_web3_site,required"` JsonRpcOperations []string `json:"json_rpc_operations,required"` MaliciousScore float64 `json:"malicious_score,required"` NetworkOperations []string `json:"network_operations,required"` ScanEndTime time.Time `json:"scan_end_time,required" format:"date-time"` ScanStartTime time.Time `json:"scan_start_time,required" format:"date-time"` Status SiteScanHitResponseStatus `json:"status,required"` URL string `json:"url,required"` JSON siteScanHitResponseJSON `json:"-"` }
func (*SiteScanHitResponse) UnmarshalJSON ¶
func (r *SiteScanHitResponse) UnmarshalJSON(data []byte) (err error)
type SiteScanHitResponseAttackType ¶
type SiteScanHitResponseAttackType struct { Score float64 `json:"score,required"` Threshold float64 `json:"threshold,required"` JSON siteScanHitResponseAttackTypeJSON `json:"-"` }
func (*SiteScanHitResponseAttackType) UnmarshalJSON ¶
func (r *SiteScanHitResponseAttackType) UnmarshalJSON(data []byte) (err error)
type SiteScanHitResponseContractRead ¶
type SiteScanHitResponseContractRead struct { ContractAddresses []string `json:"contract_addresses,required"` Functions map[string][]string `json:"functions,required"` JSON siteScanHitResponseContractReadJSON `json:"-"` }
func (*SiteScanHitResponseContractRead) UnmarshalJSON ¶
func (r *SiteScanHitResponseContractRead) UnmarshalJSON(data []byte) (err error)
type SiteScanHitResponseContractWrite ¶
type SiteScanHitResponseContractWrite struct { ContractAddresses []string `json:"contract_addresses,required"` Functions map[string][]string `json:"functions,required"` JSON siteScanHitResponseContractWriteJSON `json:"-"` }
func (*SiteScanHitResponseContractWrite) UnmarshalJSON ¶
func (r *SiteScanHitResponseContractWrite) UnmarshalJSON(data []byte) (err error)
type SiteScanHitResponseStatus ¶
type SiteScanHitResponseStatus string
const (
SiteScanHitResponseStatusHit SiteScanHitResponseStatus = "hit"
)
func (SiteScanHitResponseStatus) IsKnown ¶
func (r SiteScanHitResponseStatus) IsKnown() bool
type SiteScanMissResponse ¶
type SiteScanMissResponse struct { Status SiteScanMissResponseStatus `json:"status,required"` JSON siteScanMissResponseJSON `json:"-"` }
func (*SiteScanMissResponse) UnmarshalJSON ¶
func (r *SiteScanMissResponse) UnmarshalJSON(data []byte) (err error)
type SiteScanMissResponseStatus ¶
type SiteScanMissResponseStatus string
const (
SiteScanMissResponseStatusMiss SiteScanMissResponseStatus = "miss"
)
func (SiteScanMissResponseStatus) IsKnown ¶
func (r SiteScanMissResponseStatus) IsKnown() bool
type SiteScanParams ¶
type SiteScanParams struct { URL param.Field[string] `json:"url,required"` Metadata param.Field[SiteScanParamsMetadataUnion] `json:"metadata"` }
func (SiteScanParams) MarshalJSON ¶
func (r SiteScanParams) MarshalJSON() (data []byte, err error)
type SiteScanParamsMetadata ¶
type SiteScanParamsMetadata struct { Type param.Field[SiteScanParamsMetadataType] `json:"type,required"` AccountAddress param.Field[string] `json:"account_address"` }
func (SiteScanParamsMetadata) MarshalJSON ¶
func (r SiteScanParamsMetadata) MarshalJSON() (data []byte, err error)
type SiteScanParamsMetadataCatalogRequestMetadata ¶
type SiteScanParamsMetadataCatalogRequestMetadata struct {
Type param.Field[SiteScanParamsMetadataCatalogRequestMetadataType] `json:"type,required"`
}
func (SiteScanParamsMetadataCatalogRequestMetadata) MarshalJSON ¶
func (r SiteScanParamsMetadataCatalogRequestMetadata) MarshalJSON() (data []byte, err error)
type SiteScanParamsMetadataCatalogRequestMetadataType ¶
type SiteScanParamsMetadataCatalogRequestMetadataType string
const (
SiteScanParamsMetadataCatalogRequestMetadataTypeCatalog SiteScanParamsMetadataCatalogRequestMetadataType = "catalog"
)
func (SiteScanParamsMetadataCatalogRequestMetadataType) IsKnown ¶
func (r SiteScanParamsMetadataCatalogRequestMetadataType) IsKnown() bool
type SiteScanParamsMetadataType ¶
type SiteScanParamsMetadataType string
const ( SiteScanParamsMetadataTypeCatalog SiteScanParamsMetadataType = "catalog" SiteScanParamsMetadataTypeWallet SiteScanParamsMetadataType = "wallet" )
func (SiteScanParamsMetadataType) IsKnown ¶
func (r SiteScanParamsMetadataType) IsKnown() bool
type SiteScanParamsMetadataUnion ¶
type SiteScanParamsMetadataUnion interface {
// contains filtered or unexported methods
}
Satisfied by SiteScanParamsMetadataCatalogRequestMetadata, SiteScanParamsMetadataWalletRequestMetadata, SiteScanParamsMetadata.
type SiteScanParamsMetadataWalletRequestMetadata ¶
type SiteScanParamsMetadataWalletRequestMetadata struct { AccountAddress param.Field[string] `json:"account_address,required"` Type param.Field[SiteScanParamsMetadataWalletRequestMetadataType] `json:"type,required"` }
func (SiteScanParamsMetadataWalletRequestMetadata) MarshalJSON ¶
func (r SiteScanParamsMetadataWalletRequestMetadata) MarshalJSON() (data []byte, err error)
type SiteScanParamsMetadataWalletRequestMetadataType ¶
type SiteScanParamsMetadataWalletRequestMetadataType string
const (
SiteScanParamsMetadataWalletRequestMetadataTypeWallet SiteScanParamsMetadataWalletRequestMetadataType = "wallet"
)
func (SiteScanParamsMetadataWalletRequestMetadataType) IsKnown ¶
func (r SiteScanParamsMetadataWalletRequestMetadataType) IsKnown() bool
type SiteScanResponse ¶
type SiteScanResponse struct { Status SiteScanResponseStatus `json:"status,required"` URL string `json:"url"` ScanStartTime time.Time `json:"scan_start_time" format:"date-time"` ScanEndTime time.Time `json:"scan_end_time" format:"date-time"` MaliciousScore float64 `json:"malicious_score"` IsReachable bool `json:"is_reachable"` IsWeb3Site bool `json:"is_web3_site"` IsMalicious bool `json:"is_malicious"` // This field can have the runtime type of // [map[string]SiteScanHitResponseAttackType]. AttackTypes interface{} `json:"attack_types,required"` // This field can have the runtime type of [[]string]. NetworkOperations interface{} `json:"network_operations,required"` // This field can have the runtime type of [[]string]. JsonRpcOperations interface{} `json:"json_rpc_operations,required"` // This field can have the runtime type of [SiteScanHitResponseContractWrite]. ContractWrite interface{} `json:"contract_write,required"` // This field can have the runtime type of [SiteScanHitResponseContractRead]. ContractRead interface{} `json:"contract_read,required"` JSON siteScanResponseJSON `json:"-"` // contains filtered or unexported fields }
func (SiteScanResponse) AsUnion ¶
func (r SiteScanResponse) AsUnion() SiteScanResponseUnion
AsUnion returns a SiteScanResponseUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SiteScanHitResponse, SiteScanMissResponse.
func (*SiteScanResponse) UnmarshalJSON ¶
func (r *SiteScanResponse) UnmarshalJSON(data []byte) (err error)
type SiteScanResponseStatus ¶
type SiteScanResponseStatus string
const ( SiteScanResponseStatusHit SiteScanResponseStatus = "hit" SiteScanResponseStatusMiss SiteScanResponseStatus = "miss" )
func (SiteScanResponseStatus) IsKnown ¶
func (r SiteScanResponseStatus) IsKnown() bool
type SiteScanResponseUnion ¶
type SiteScanResponseUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SiteScanHitResponse or SiteScanMissResponse.
type SiteService ¶
type SiteService struct {
Options []option.RequestOption
}
SiteService 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 NewSiteService method instead.
func NewSiteService ¶
func NewSiteService(opts ...option.RequestOption) (r *SiteService)
NewSiteService 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 (*SiteService) Report ¶ added in v0.15.0
func (r *SiteService) Report(ctx context.Context, body SiteReportParams, opts ...option.RequestOption) (res *SiteReportResponse, err error)
Report for misclassification of a site.
func (*SiteService) Scan ¶
func (r *SiteService) Scan(ctx context.Context, body SiteScanParams, opts ...option.RequestOption) (res *SiteScanResponse, err error)
Scan Site
type SolanaAddressScanParams ¶ added in v0.12.0
type SolanaAddressScanParams struct {
AddressScanRequestSchema AddressScanRequestSchemaParam `json:"AddressScanRequestSchema,required"`
}
func (SolanaAddressScanParams) MarshalJSON ¶ added in v0.12.0
func (r SolanaAddressScanParams) MarshalJSON() (data []byte, err error)
type SolanaAddressService ¶ added in v0.12.0
type SolanaAddressService struct {
Options []option.RequestOption
}
SolanaAddressService 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 NewSolanaAddressService method instead.
func NewSolanaAddressService ¶ added in v0.12.0
func NewSolanaAddressService(opts ...option.RequestOption) (r *SolanaAddressService)
NewSolanaAddressService 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 (*SolanaAddressService) Scan ¶ added in v0.12.0
func (r *SolanaAddressService) Scan(ctx context.Context, body SolanaAddressScanParams, opts ...option.RequestOption) (res *AddressScanResponseSchema, err error)
Gets an address and returns a full security assessment indicating weather or not this address is malicious as well as textual reasons of why the address was flagged that way.
type SolanaMessageScanParams ¶ added in v0.12.0
type SolanaMessageScanParams struct {
TxScanRequestSchema TxScanRequestSchemaParam `json:"TxScanRequestSchema,required"`
}
func (SolanaMessageScanParams) MarshalJSON ¶ added in v0.12.0
func (r SolanaMessageScanParams) MarshalJSON() (data []byte, err error)
type SolanaMessageService ¶ added in v0.12.0
type SolanaMessageService struct {
Options []option.RequestOption
}
SolanaMessageService 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 NewSolanaMessageService method instead.
func NewSolanaMessageService ¶ added in v0.12.0
func NewSolanaMessageService(opts ...option.RequestOption) (r *SolanaMessageService)
NewSolanaMessageService 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 (*SolanaMessageService) Scan ¶ added in v0.12.0
func (r *SolanaMessageService) Scan(ctx context.Context, body SolanaMessageScanParams, opts ...option.RequestOption) (res *ResponseSchema, err error)
Scan Messages
type SolanaService ¶ added in v0.12.0
type SolanaService struct { Options []option.RequestOption Message *SolanaMessageService Address *SolanaAddressService }
SolanaService 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 NewSolanaService method instead.
func NewSolanaService ¶ added in v0.12.0
func NewSolanaService(opts ...option.RequestOption) (r *SolanaService)
NewSolanaService 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 SplFungibleTokenDetailsSchema ¶ added in v0.12.0
type SplFungibleTokenDetailsSchema struct { Address string `json:"address,required"` Decimals int64 `json:"decimals,required"` Name string `json:"name,required"` Symbol string `json:"symbol,required"` Logo string `json:"logo"` // Type of the asset (`"TOKEN"`) Type string `json:"type"` JSON splFungibleTokenDetailsSchemaJSON `json:"-"` }
func (*SplFungibleTokenDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SplFungibleTokenDetailsSchema) UnmarshalJSON(data []byte) (err error)
type SplFungibleTokenDiffSchema ¶ added in v0.12.0
type SplFungibleTokenDiffSchema struct { Asset SplFungibleTokenDetailsSchema `json:"asset,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in,nullable"` Out AssetTransferDetailsSchema `json:"out,nullable"` JSON splFungibleTokenDiffSchemaJSON `json:"-"` }
func (*SplFungibleTokenDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SplFungibleTokenDiffSchema) UnmarshalJSON(data []byte) (err error)
type SplNonFungibleTokenDetailsSchema ¶ added in v0.12.0
type SplNonFungibleTokenDetailsSchema struct { Address string `json:"address,required"` Name string `json:"name,required"` Symbol string `json:"symbol,required"` Decimals int64 `json:"decimals"` Logo string `json:"logo"` // Type of the asset (`"NFT"`) Type string `json:"type"` JSON splNonFungibleTokenDetailsSchemaJSON `json:"-"` }
func (*SplNonFungibleTokenDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SplNonFungibleTokenDetailsSchema) UnmarshalJSON(data []byte) (err error)
type SplNonFungibleTokenDiffSchema ¶ added in v0.12.0
type SplNonFungibleTokenDiffSchema struct { Asset SplNonFungibleTokenDetailsSchema `json:"asset,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in,nullable"` Out AssetTransferDetailsSchema `json:"out,nullable"` JSON splNonFungibleTokenDiffSchemaJSON `json:"-"` }
func (*SplNonFungibleTokenDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SplNonFungibleTokenDiffSchema) UnmarshalJSON(data []byte) (err error)
type SplTokenOwnershipDiffSchema ¶ added in v0.12.0
type SplTokenOwnershipDiffSchema struct { Asset SplTokenOwnershipDiffSchemaAsset `json:"asset,required"` // The owner post the transaction PostOwner string `json:"post_owner,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in_,nullable"` // Details of the moved value Out AssetTransferDetailsSchema `json:"out,nullable"` // The owner prior to the transaction PreOwner string `json:"pre_owner,nullable"` JSON splTokenOwnershipDiffSchemaJSON `json:"-"` }
func (*SplTokenOwnershipDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SplTokenOwnershipDiffSchema) UnmarshalJSON(data []byte) (err error)
type SplTokenOwnershipDiffSchemaAsset ¶ added in v0.12.0
type SplTokenOwnershipDiffSchemaAsset struct { Address string `json:"address,required"` Symbol string `json:"symbol,required"` Name string `json:"name,required"` Logo string `json:"logo"` // Type of the asset (`"TOKEN"`) Type string `json:"type"` Decimals int64 `json:"decimals"` JSON splTokenOwnershipDiffSchemaAssetJSON `json:"-"` // contains filtered or unexported fields }
func (SplTokenOwnershipDiffSchemaAsset) AsUnion ¶ added in v0.12.0
func (r SplTokenOwnershipDiffSchemaAsset) AsUnion() SplTokenOwnershipDiffSchemaAssetUnion
AsUnion returns a SplTokenOwnershipDiffSchemaAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SplFungibleTokenDetailsSchema, SplNonFungibleTokenDetailsSchema.
func (*SplTokenOwnershipDiffSchemaAsset) UnmarshalJSON ¶ added in v0.12.0
func (r *SplTokenOwnershipDiffSchemaAsset) UnmarshalJSON(data []byte) (err error)
type SplTokenOwnershipDiffSchemaAssetUnion ¶ added in v0.12.0
type SplTokenOwnershipDiffSchemaAssetUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SplFungibleTokenDetailsSchema or SplNonFungibleTokenDetailsSchema.
type StakedSolAssetDetailsSchema ¶ added in v0.12.0
type StakedSolAssetDetailsSchema struct { Decimals int64 `json:"decimals"` // Logo of Sol Logo string `json:"logo,nullable"` // Type of the asset (`"STAKED_SOL"`) Type string `json:"type"` JSON stakedSolAssetDetailsSchemaJSON `json:"-"` }
func (*StakedSolAssetDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *StakedSolAssetDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StakedSolWithdrawAuthorityDiffSchema ¶ added in v0.12.0
type StakedSolWithdrawAuthorityDiffSchema struct { // The owner post the transaction PostOwner string `json:"post_owner,required"` Asset StakedSolAssetDetailsSchema `json:"asset"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in_,nullable"` // Details of the moved value Out AssetTransferDetailsSchema `json:"out,nullable"` // The owner prior to the transaction PreOwner string `json:"pre_owner,nullable"` JSON stakedSolWithdrawAuthorityDiffSchemaJSON `json:"-"` }
func (*StakedSolWithdrawAuthorityDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *StakedSolWithdrawAuthorityDiffSchema) UnmarshalJSON(data []byte) (err error)
type StarknetErc1155Details ¶ added in v0.22.1
type StarknetErc1155Details struct { // Address of the token's contract Address string `json:"address,required"` // token's name Name string `json:"name,required"` // token's symbol Symbol string `json:"symbol,required"` // Type of the asset (`ERC1155`) Type StarknetErc1155DetailsType `json:"type"` JSON starknetErc1155DetailsJSON `json:"-"` }
func (*StarknetErc1155Details) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetErc1155Details) UnmarshalJSON(data []byte) (err error)
type StarknetErc1155DetailsType ¶ added in v0.22.1
type StarknetErc1155DetailsType string
Type of the asset (`ERC1155`)
const (
StarknetErc1155DetailsTypeErc1155 StarknetErc1155DetailsType = "ERC1155"
)
func (StarknetErc1155DetailsType) IsKnown ¶ added in v0.22.1
func (r StarknetErc1155DetailsType) IsKnown() bool
type StarknetErc1155Diff ¶ added in v0.22.1
type StarknetErc1155Diff struct { // Token ID of the transfer TokenID string `json:"token_id,required"` // USD price of the asset UsdPrice float64 `json:"usd_price,required"` // Value of the transfer Value int64 `json:"value,required"` // URL of the asset's logo LogoURL string `json:"logo_url,nullable"` // Summarized description of the transfer Summary string `json:"summary,nullable"` JSON starknetErc1155DiffJSON `json:"-"` }
func (*StarknetErc1155Diff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetErc1155Diff) UnmarshalJSON(data []byte) (err error)
type StarknetErc20Details ¶ added in v0.22.1
type StarknetErc20Details struct { // Address of the token's contract Address string `json:"address,required"` // token's decimals Decimals int64 `json:"decimals,required"` // token's name Name string `json:"name,required"` // token's symbol Symbol string `json:"symbol,required"` // Type of the asset (`ERC20`) Type StarknetErc20DetailsType `json:"type"` JSON starknetErc20DetailsJSON `json:"-"` }
func (*StarknetErc20Details) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetErc20Details) UnmarshalJSON(data []byte) (err error)
type StarknetErc20DetailsType ¶ added in v0.22.1
type StarknetErc20DetailsType string
Type of the asset (`ERC20`)
const (
StarknetErc20DetailsTypeErc20 StarknetErc20DetailsType = "ERC20"
)
func (StarknetErc20DetailsType) IsKnown ¶ added in v0.22.1
func (r StarknetErc20DetailsType) IsKnown() bool
type StarknetErc20Diff ¶ added in v0.22.1
type StarknetErc20Diff struct { // Raw value of the transfer RawValue int64 `json:"raw_value,required"` // USD price of the asset UsdPrice float64 `json:"usd_price,required"` // Value of the transfer Value float64 `json:"value,required"` // URL of the asset's logo LogoURL string `json:"logo_url,nullable"` // Summarized description of the transfer Summary string `json:"summary,nullable"` JSON starknetErc20DiffJSON `json:"-"` }
func (*StarknetErc20Diff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetErc20Diff) UnmarshalJSON(data []byte) (err error)
type StarknetErc721Details ¶ added in v0.22.1
type StarknetErc721Details struct { // Address of the token's contract Address string `json:"address,required"` // token's name Name string `json:"name,required"` // token's symbol Symbol string `json:"symbol,required"` // Type of the asset (`ERC721`) Type StarknetErc721DetailsType `json:"type"` JSON starknetErc721DetailsJSON `json:"-"` }
func (*StarknetErc721Details) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetErc721Details) UnmarshalJSON(data []byte) (err error)
type StarknetErc721DetailsType ¶ added in v0.22.1
type StarknetErc721DetailsType string
Type of the asset (`ERC721`)
const (
StarknetErc721DetailsTypeErc721 StarknetErc721DetailsType = "ERC721"
)
func (StarknetErc721DetailsType) IsKnown ¶ added in v0.22.1
func (r StarknetErc721DetailsType) IsKnown() bool
type StarknetErc721Diff ¶ added in v0.22.1
type StarknetErc721Diff struct { // Token ID of the transfer TokenID string `json:"token_id,required"` // USD price of the asset UsdPrice float64 `json:"usd_price,required"` // URL of the asset's logo LogoURL string `json:"logo_url,nullable"` // Summarized description of the transfer Summary string `json:"summary,nullable"` JSON starknetErc721DiffJSON `json:"-"` }
func (*StarknetErc721Diff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetErc721Diff) UnmarshalJSON(data []byte) (err error)
type StarknetNativeDiff ¶ added in v0.22.1
type StarknetNativeDiff struct { // Raw value of the transfer RawValue int64 `json:"raw_value,required"` // USD price of the asset UsdPrice float64 `json:"usd_price,required"` // Value of the transfer Value float64 `json:"value,required"` // URL of the asset's logo LogoURL string `json:"logo_url,nullable"` // Summarized description of the transfer Summary string `json:"summary,nullable"` JSON starknetNativeDiffJSON `json:"-"` }
func (*StarknetNativeDiff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetNativeDiff) UnmarshalJSON(data []byte) (err error)
type StarknetService ¶ added in v0.22.1
type StarknetService struct { Options []option.RequestOption Transaction *StarknetTransactionService }
StarknetService 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 NewStarknetService method instead.
func NewStarknetService ¶ added in v0.22.1
func NewStarknetService(opts ...option.RequestOption) (r *StarknetService)
NewStarknetService 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 StarknetTransactionScanParams ¶ added in v0.22.1
type StarknetTransactionScanParams struct { AccountAddress param.Field[string] `json:"account_address,required"` // The chain name or chain ID Chain param.Field[StarknetTransactionScanParamsChain] `json:"chain,required"` // Metadata Metadata param.Field[StarknetTransactionScanParamsMetadataUnion] `json:"metadata,required"` Transaction param.Field[StarknetTransactionScanParamsTransactionUnion] `json:"transaction,required"` // List of options to include in the response // // - `simulation`: Include simulation output in the response // - `validation`: Include security validation of the transaction in the response Options param.Field[[]StarknetTransactionScanParamsOption] `json:"options"` }
func (StarknetTransactionScanParams) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParams) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsChain ¶ added in v0.22.1
type StarknetTransactionScanParamsChain string
A CAIP-2 or a Starknet network name or a Starknet network name
const ( StarknetTransactionScanParamsChainMainnet StarknetTransactionScanParamsChain = "mainnet" StarknetTransactionScanParamsChainSepolia StarknetTransactionScanParamsChain = "sepolia" StarknetTransactionScanParamsChainSepoliaIntegration StarknetTransactionScanParamsChain = "sepolia_integration" )
func (StarknetTransactionScanParamsChain) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsChain) IsKnown() bool
type StarknetTransactionScanParamsMetadata ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadata struct { // Metadata for wallet requests Type param.Field[StarknetTransactionScanParamsMetadataType] `json:"type,required"` // URL of the dApp originating the transaction URL param.Field[string] `json:"url"` }
Metadata
func (StarknetTransactionScanParamsMetadata) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsMetadata) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadata ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadata struct { // Metadata for in-app requests Type param.Field[StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType] `json:"type,required"` }
func (StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadata) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadata) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType string
Metadata for in-app requests
const (
StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataTypeInApp StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType = "in_app"
)
func (StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadataType) IsKnown() bool
type StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadata ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadata struct { // Metadata for wallet requests Type param.Field[StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType] `json:"type,required"` // URL of the dApp originating the transaction URL param.Field[string] `json:"url,required"` }
func (StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadata) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadata) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType string
Metadata for wallet requests
const (
StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataTypeWallet StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType = "wallet"
)
func (StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadataType) IsKnown() bool
type StarknetTransactionScanParamsMetadataType ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadataType string
Metadata for wallet requests
const ( StarknetTransactionScanParamsMetadataTypeWallet StarknetTransactionScanParamsMetadataType = "wallet" StarknetTransactionScanParamsMetadataTypeInApp StarknetTransactionScanParamsMetadataType = "in_app" )
func (StarknetTransactionScanParamsMetadataType) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsMetadataType) IsKnown() bool
type StarknetTransactionScanParamsMetadataUnion ¶ added in v0.22.1
type StarknetTransactionScanParamsMetadataUnion interface {
// contains filtered or unexported methods
}
Metadata
Satisfied by StarknetTransactionScanParamsMetadataStarknetWalletRequestMetadata, StarknetTransactionScanParamsMetadataStarknetInAppRequestMetadata, StarknetTransactionScanParamsMetadata.
type StarknetTransactionScanParamsOption ¶ added in v0.22.1
type StarknetTransactionScanParamsOption string
const ( StarknetTransactionScanParamsOptionValidation StarknetTransactionScanParamsOption = "validation" StarknetTransactionScanParamsOptionSimulation StarknetTransactionScanParamsOption = "simulation" )
func (StarknetTransactionScanParamsOption) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsOption) IsKnown() bool
type StarknetTransactionScanParamsTransaction ¶ added in v0.22.1
type StarknetTransactionScanParamsTransaction struct { // The version of the transaction. Version param.Field[StarknetTransactionScanParamsTransactionVersion] `json:"version,required"` // The nonce of the transaction. Nonce param.Field[string] `json:"nonce,required"` // The address of the sender. SenderAddress param.Field[string] `json:"sender_address"` Calldata param.Field[interface{}] `json:"calldata,required"` // The maximum fee that the sender is willing to pay. MaxFee param.Field[string] `json:"max_fee"` // The id of the chain to which the transaction is sent. ChainID param.Field[string] `json:"chain_id"` // The nonce data availability mode. NonceDataAvailabilityMode param.Field[StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode] `json:"nonce_data_availability_mode"` PaymasterData param.Field[interface{}] `json:"paymaster_data,required"` AccountDeploymentData param.Field[interface{}] `json:"account_deployment_data,required"` // The hash of the contract class. ClassHash param.Field[string] `json:"class_hash"` // The salt of the contract address. ContractAddressSalt param.Field[string] `json:"contract_address_salt"` ConstructorCalldata param.Field[interface{}] `json:"constructor_calldata,required"` }
func (StarknetTransactionScanParamsTransaction) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransaction) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode int64
The nonce data availability mode.
const (
StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode0 StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode = 0
)
func (StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransactionNonceDataAvailabilityMode) IsKnown() bool
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchema ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchema struct { // The hash of the contract class. ClassHash param.Field[string] `json:"class_hash,required"` // The arguments that are passed to the constructor function. ConstructorCalldata param.Field[[]string] `json:"constructor_calldata,required"` // The salt of the contract address. ContractAddressSalt param.Field[string] `json:"contract_address_salt,required"` // The maximum fee that the sender is willing to pay. MaxFee param.Field[string] `json:"max_fee,required"` // The nonce of the transaction. Nonce param.Field[string] `json:"nonce,required"` // The version of the transaction. Version param.Field[StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchemaVersion] `json:"version,required"` }
func (StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchema) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchema) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchemaVersion ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchemaVersion int64
The version of the transaction.
const (
StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchemaVersion1 StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchemaVersion = 1
)
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchema ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchema struct { // The hash of the contract class. ClassHash param.Field[string] `json:"class_hash,required"` // The arguments that are passed to the constructor function. ConstructorCalldata param.Field[[]string] `json:"constructor_calldata,required"` // The salt of the contract address. ContractAddressSalt param.Field[string] `json:"contract_address_salt,required"` // The maximum fee that the sender is willing to pay. MaxFee param.Field[string] `json:"max_fee,required"` // The nonce of the transaction. Nonce param.Field[string] `json:"nonce,required"` // The version of the transaction. Version param.Field[StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchemaVersion] `json:"version,required"` }
func (StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchema) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchema) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchemaVersion ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchemaVersion int64
The version of the transaction.
const (
StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchemaVersion3 StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchemaVersion = 3
)
type StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchema ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchema struct { // The maximum fee that the sender is willing to pay. MaxFee param.Field[string] `json:"max_fee,required"` // The nonce of the transaction. Nonce param.Field[string] `json:"nonce,required"` // The address of the sender. SenderAddress param.Field[string] `json:"sender_address,required"` // The version of the transaction. Version param.Field[StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchemaVersion] `json:"version,required"` // The arguments that are passed to the validate and execute functions. Calldata param.Field[[]string] `json:"calldata"` }
func (StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchema) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchema) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchemaVersion ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchemaVersion int64
The version of the transaction.
const (
StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchemaVersion1 StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchemaVersion = 1
)
type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchema ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchema struct { // The arguments that are passed to the validate and execute functions. Calldata param.Field[[]string] `json:"calldata,required"` // The id of the chain to which the transaction is sent. ChainID param.Field[string] `json:"chain_id,required"` // The nonce of the transaction. Nonce param.Field[string] `json:"nonce,required"` // The address of the sender. SenderAddress param.Field[string] `json:"sender_address,required"` // The version of the transaction. Version param.Field[StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaVersion] `json:"version,required"` // For future use. Currently this value is always empty. AccountDeploymentData param.Field[[]string] `json:"account_deployment_data"` // The nonce data availability mode. NonceDataAvailabilityMode param.Field[StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaNonceDataAvailabilityMode] `json:"nonce_data_availability_mode"` // For future use. Currently this value is always empty. PaymasterData param.Field[[]string] `json:"paymaster_data"` }
func (StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchema) MarshalJSON ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchema) MarshalJSON() (data []byte, err error)
type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaNonceDataAvailabilityMode ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaNonceDataAvailabilityMode int64
The nonce data availability mode.
const (
StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaNonceDataAvailabilityMode0 StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaNonceDataAvailabilityMode = 0
)
type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaVersion ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaVersion int64
The version of the transaction.
const (
StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaVersion3 StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchemaVersion = 3
)
type StarknetTransactionScanParamsTransactionUnion ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionUnion interface {
// contains filtered or unexported methods
}
Satisfied by StarknetTransactionScanParamsTransactionStarknetInvokeV1TransactionSchema, StarknetTransactionScanParamsTransactionStarknetInvokeV3TransactionSchema, StarknetTransactionScanParamsTransactionStarknetDeployAccountV1TransactionSchema, StarknetTransactionScanParamsTransactionStarknetDeployAccountV3TransactionSchema, StarknetTransactionScanParamsTransaction.
type StarknetTransactionScanParamsTransactionVersion ¶ added in v0.22.1
type StarknetTransactionScanParamsTransactionVersion int64
The version of the transaction.
const ( StarknetTransactionScanParamsTransactionVersion1 StarknetTransactionScanParamsTransactionVersion = 1 StarknetTransactionScanParamsTransactionVersion3 StarknetTransactionScanParamsTransactionVersion = 3 )
func (StarknetTransactionScanParamsTransactionVersion) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanParamsTransactionVersion) IsKnown() bool
type StarknetTransactionScanResponse ¶ added in v0.22.1
type StarknetTransactionScanResponse struct { // Simulation result; Only present if simulation option is included in the request Simulation StarknetTransactionScanResponseSimulation `json:"simulation,nullable"` // Validation result; Only present if validation option is included in the request Validation StarknetTransactionScanResponseValidation `json:"validation,nullable"` JSON starknetTransactionScanResponseJSON `json:"-"` }
func (*StarknetTransactionScanResponse) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponse) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulation ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulation struct { Status StarknetTransactionScanResponseSimulationStatus `json:"status,required"` // This field can have the runtime type of // [map[string][]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff]. AssetsDiffs interface{} `json:"assets_diffs,required"` // This field can have the runtime type of // [map[string][]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure]. Exposures interface{} `json:"exposures,required"` // This field can have the runtime type of // [[]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail]. AddressDetails interface{} `json:"address_details,required"` // This field can have the runtime type of // [StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary]. AccountSummary interface{} `json:"account_summary,required"` // Error message Error string `json:"error"` JSON starknetTransactionScanResponseSimulationJSON `json:"-"` // contains filtered or unexported fields }
Simulation result; Only present if simulation option is included in the request
func (StarknetTransactionScanResponseSimulation) AsUnion ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulation) AsUnion() StarknetTransactionScanResponseSimulationUnion
AsUnion returns a StarknetTransactionScanResponseSimulationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema, StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema.
func (*StarknetTransactionScanResponseSimulation) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulation) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema struct { // Error message Error string `json:"error,required"` Status StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus `json:"status,required"` JSON starknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus string
const (
StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatusError StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus = "Error"
)
func (StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchemaStatus) IsKnown() bool
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema struct { // Summary of the actions and asset transfers that were made by the requested // account address AccountSummary StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary `json:"account_summary,required"` Status StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaStatus `json:"status,required"` // Details of addresses involved in the transaction AddressDetails []StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail `json:"address_details"` // Mapping between the address of an account to the assets diff during the // transaction AssetsDiffs map[string][]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff `json:"assets_diffs"` // Mapping between the address of an account to the exposure of the assets during // the transaction Exposures map[string][]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure `json:"exposures"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary struct { // Exposures made by the requested account address Exposures []StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure `json:"exposures,required"` // Total USD diff for the requested account address TotalUsdDiff StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiff `json:"total_usd_diff,required"` // Assets diffs of the requested account address AssetsDiffs []StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff `json:"assets_diffs"` // Total USD exposure for each of the spender addresses during the transaction TotalUsdExposure map[string]float64 `json:"total_usd_exposure"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryJSON `json:"-"` }
Summary of the actions and asset transfers that were made by the requested account address
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummary) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff struct { // This field can have the runtime type of // [StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset], // [StarknetErc20Details], [StarknetErc721Details], [StarknetErc1155Details]. Asset interface{} `json:"asset"` // This field can have the runtime type of [StarknetNativeDiff], // [StarknetErc20Diff], [StarknetErc721Diff], [StarknetErc1155Diff]. In interface{} `json:"in,required"` // This field can have the runtime type of [StarknetNativeDiff], // [StarknetErc20Diff], [StarknetErc721Diff], [StarknetErc1155Diff]. Out interface{} `json:"out,required"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffJSON `json:"-"` // contains filtered or unexported fields }
func (StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff) AsUnion ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff) AsUnion() StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsUnion
AsUnion returns a StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema.
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiff) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema struct { Asset StarknetErc1155Details `json:"asset,required"` // Details of the incoming transfer In StarknetErc1155Diff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetErc1155Diff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema struct { Asset StarknetErc20Details `json:"asset,required"` // Details of the incoming transfer In StarknetErc20Diff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetErc20Diff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema struct { Asset StarknetErc721Details `json:"asset,required"` // Details of the incoming transfer In StarknetErc721Diff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetErc721Diff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema struct { Asset StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset `json:"asset,required"` // Details of the incoming transfer In StarknetNativeDiff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetNativeDiff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset struct { // Decimals of the asset Decimals StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals `json:"decimals"` // Name of the asset Name StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName `json:"name"` // Symbol of the asset Symbol StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol `json:"symbol"` // Type of the asset (`NATIVE`) Type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType `json:"type"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals int64
Decimals of the asset
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals18 StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals = 18
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName string
Name of the asset
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetNameStrk StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName = "STRK"
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol string
Symbol of the asset
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbolStrk StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol = "STRK"
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType string
Type of the asset (`NATIVE`)
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetTypeNative StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType = "NATIVE"
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsUnion ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema or StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema.
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure struct { // This field can have the runtime type of [StarknetErc20Details], // [StarknetErc721Details], [StarknetErc1155Details]. Asset interface{} `json:"asset"` // This field can have the runtime type of // [map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender], // [map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender], // [map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender]. Spenders interface{} `json:"spenders,required"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposureJSON `json:"-"` // contains filtered or unexported fields }
func (StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure) AsUnion ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure) AsUnion() StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresUnion
AsUnion returns a StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema.
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposure) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema struct { Asset StarknetErc1155Details `json:"asset,required"` // Mapping between the spender address and the exposure of the asset Spenders map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender `json:"spenders"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender struct { Exposure []StarknetErc1155Diff `json:"exposure,required"` // Whether `setApprovalForAll` was invoked IsApprovedForAll bool `json:"is_approved_for_all,required"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpenderJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema struct { Asset StarknetErc20Details `json:"asset,required"` // Mapping between the spender address and the exposure of the asset Spenders map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender `json:"spenders"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender struct { // Approval value of the ERC20 token Approval int64 `json:"approval,required"` Exposure []StarknetErc20Diff `json:"exposure,required"` // Expiration date of the approval Expiration time.Time `json:"expiration,nullable" format:"date-time"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpenderJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema struct { Asset StarknetErc721Details `json:"asset,required"` // Mapping between the spender address and the exposure of the asset Spenders map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender `json:"spenders"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender struct { Exposure []StarknetErc721Diff `json:"exposure,required"` // Whether `setApprovalForAll` was invoked IsApprovedForAll bool `json:"is_approved_for_all,required"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpenderJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresUnion ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema or StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema.
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiff ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiff struct { // Total incoming USD transfers In float64 `json:"in,required"` // Total outgoing USD transfers Out float64 `json:"out,required"` // Total USD transfers Total float64 `json:"total"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiffJSON `json:"-"` }
Total USD diff for the requested account address
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAccountSummaryTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Description of the account Description string `json:"description,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetailJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAddressDetail) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff struct { // This field can have the runtime type of // [StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset], // [StarknetErc20Details], [StarknetErc721Details], [StarknetErc1155Details]. Asset interface{} `json:"asset"` // This field can have the runtime type of [StarknetNativeDiff], // [StarknetErc20Diff], [StarknetErc721Diff], [StarknetErc1155Diff]. In interface{} `json:"in,required"` // This field can have the runtime type of [StarknetNativeDiff], // [StarknetErc20Diff], [StarknetErc721Diff], [StarknetErc1155Diff]. Out interface{} `json:"out,required"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffJSON `json:"-"` // contains filtered or unexported fields }
func (StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff) AsUnion ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff) AsUnion() StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsUnion
AsUnion returns a StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema.
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiff) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema struct { Asset StarknetErc1155Details `json:"asset,required"` // Details of the incoming transfer In StarknetErc1155Diff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetErc1155Diff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema struct { Asset StarknetErc20Details `json:"asset,required"` // Details of the incoming transfer In StarknetErc20Diff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetErc20Diff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema struct { Asset StarknetErc721Details `json:"asset,required"` // Details of the incoming transfer In StarknetErc721Diff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetErc721Diff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema struct { Asset StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset `json:"asset,required"` // Details of the incoming transfer In StarknetNativeDiff `json:"in,nullable"` // Details of the outgoing transfer Out StarknetNativeDiff `json:"out,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset struct { // Decimals of the asset Decimals StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals `json:"decimals"` // Name of the asset Name StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName `json:"name"` // Symbol of the asset Symbol StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol `json:"symbol"` // Type of the asset (`NATIVE`) Type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType `json:"type"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAsset) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals int64
Decimals of the asset
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals18 StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetDecimals = 18
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName string
Name of the asset
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetNameStrk StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetName = "STRK"
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol string
Symbol of the asset
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbolStrk StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetSymbol = "STRK"
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType string
Type of the asset (`NATIVE`)
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetTypeNative StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchemaAssetType = "NATIVE"
)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsUnion ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaErc20DiffSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaErc721DiffSchema or StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaAssetsDiffsStarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaErc1155DiffSchema.
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure struct { // This field can have the runtime type of [StarknetErc20Details], // [StarknetErc721Details], [StarknetErc1155Details]. Asset interface{} `json:"asset"` // This field can have the runtime type of // [map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender], // [map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender], // [map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender]. Spenders interface{} `json:"spenders,required"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposureJSON `json:"-"` // contains filtered or unexported fields }
func (StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure) AsUnion ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure) AsUnion() StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresUnion
AsUnion returns a StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema.
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposure) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema struct { Asset StarknetErc1155Details `json:"asset,required"` // Mapping between the spender address and the exposure of the asset Spenders map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender `json:"spenders"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender struct { Exposure []StarknetErc1155Diff `json:"exposure,required"` // Whether `setApprovalForAll` was invoked IsApprovedForAll bool `json:"is_approved_for_all,required"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpenderJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchemaSpender) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema struct { Asset StarknetErc20Details `json:"asset,required"` // Mapping between the spender address and the exposure of the asset Spenders map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender `json:"spenders"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender struct { // Approval value of the ERC20 token Approval int64 `json:"approval,required"` Exposure []StarknetErc20Diff `json:"exposure,required"` // Expiration date of the approval Expiration time.Time `json:"expiration,nullable" format:"date-time"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpenderJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchemaSpender) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema struct { Asset StarknetErc721Details `json:"asset,required"` // Mapping between the spender address and the exposure of the asset Spenders map[string]StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender `json:"spenders"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender struct { Exposure []StarknetErc721Diff `json:"exposure,required"` // Whether `setApprovalForAll` was invoked IsApprovedForAll bool `json:"is_approved_for_all,required"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON starknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpenderJSON `json:"-"` }
func (*StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchemaSpender) UnmarshalJSON ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresUnion ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresUnion interface {
// contains filtered or unexported methods
}
Union satisfied by StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc20DetailsSchemaErc20ExposureSchema, StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc721DetailsSchemaErc721ExposureSchema or StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaExposuresStarknetAddressAssetExposureSchemaErc1155DetailsSchemaErc1155ExposureSchema.
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaStatus ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaStatus string
const (
StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaStatusSuccess StarknetTransactionScanResponseSimulationStarknetSimulationResultSchemaStatus = "Success"
)
type StarknetTransactionScanResponseSimulationStatus ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationStatus string
const ( StarknetTransactionScanResponseSimulationStatusSuccess StarknetTransactionScanResponseSimulationStatus = "Success" StarknetTransactionScanResponseSimulationStatusError StarknetTransactionScanResponseSimulationStatus = "Error" )
func (StarknetTransactionScanResponseSimulationStatus) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanResponseSimulationStatus) IsKnown() bool
type StarknetTransactionScanResponseSimulationUnion ¶ added in v0.22.1
type StarknetTransactionScanResponseSimulationUnion interface {
// contains filtered or unexported methods
}
Simulation result; Only present if simulation option is included in the request
Union satisfied by StarknetTransactionScanResponseSimulationStarknetSimulationResultSchema or StarknetTransactionScanResponseSimulationStarknetSimulationErrorSchema.
type StarknetTransactionScanResponseValidation ¶ added in v0.22.1
type StarknetTransactionScanResponseValidation struct { Status StarknetTransactionScanResponseValidationStatus `json:"status,required"` // Verdict of the validation ResultType StarknetTransactionScanResponseValidationResultType `json:"result_type"` // A textual description about the validation result 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"` // This field can have the runtime type of // [[]StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature]. Features interface{} `json:"features,required"` // Error message Error string `json:"error"` JSON starknetTransactionScanResponseValidationJSON `json:"-"` // contains filtered or unexported fields }
Validation result; Only present if validation option is included in the request
func (StarknetTransactionScanResponseValidation) AsUnion ¶ added in v0.22.1
func (r StarknetTransactionScanResponseValidation) AsUnion() StarknetTransactionScanResponseValidationUnion
AsUnion returns a StarknetTransactionScanResponseValidationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StarknetTransactionScanResponseValidationStarknetValidationResultSchema, StarknetTransactionScanResponseValidationStarknetValidationErrorSchema.
func (*StarknetTransactionScanResponseValidation) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseValidation) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseValidationResultType ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationResultType string
Verdict of the validation
const ( StarknetTransactionScanResponseValidationResultTypeBenign StarknetTransactionScanResponseValidationResultType = "Benign" StarknetTransactionScanResponseValidationResultTypeWarning StarknetTransactionScanResponseValidationResultType = "Warning" StarknetTransactionScanResponseValidationResultTypeMalicious StarknetTransactionScanResponseValidationResultType = "Malicious" )
func (StarknetTransactionScanResponseValidationResultType) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanResponseValidationResultType) IsKnown() bool
type StarknetTransactionScanResponseValidationStarknetValidationErrorSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationErrorSchema struct { // Error message Error string `json:"error,required"` Status StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus `json:"status,required"` JSON starknetTransactionScanResponseValidationStarknetValidationErrorSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseValidationStarknetValidationErrorSchema) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseValidationStarknetValidationErrorSchema) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus string
const (
StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatusError StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus = "Error"
)
func (StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanResponseValidationStarknetValidationErrorSchemaStatus) IsKnown() bool
type StarknetTransactionScanResponseValidationStarknetValidationResultSchema ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationResultSchema struct { // A textual classification that can be presented to the user explaining the // reason. Classification string `json:"classification,required"` // A textual description about the validation result Description string `json:"description,required"` // A list of features about this transaction explaining the validation Features []StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature `json:"features,required"` // A textual description about the reasons the transaction was flagged with // result_type Reason string `json:"reason,required"` // Verdict of the validation ResultType StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType `json:"result_type,required"` Status StarknetTransactionScanResponseValidationStarknetValidationResultSchemaStatus `json:"status,required"` JSON starknetTransactionScanResponseValidationStarknetValidationResultSchemaJSON `json:"-"` }
func (*StarknetTransactionScanResponseValidationStarknetValidationResultSchema) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseValidationStarknetValidationResultSchema) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature struct { // Address the feature refers to Address string `json:"address,required"` // Textual description Description string `json:"description,required"` FeatureID string `json:"feature_id,required"` // Feature Classification Type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType `json:"type,required"` JSON starknetTransactionScanResponseValidationStarknetValidationResultSchemaFeatureJSON `json:"-"` }
func (*StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature) UnmarshalJSON ¶ added in v0.22.1
func (r *StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeature) UnmarshalJSON(data []byte) (err error)
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType string
Feature Classification
const ( StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesTypeBenign StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType = "Benign" StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesTypeWarning StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType = "Warning" StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesTypeMalicious StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType = "Malicious" StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesTypeInfo StarknetTransactionScanResponseValidationStarknetValidationResultSchemaFeaturesType = "Info" )
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType string
Verdict of the validation
const ( StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultTypeBenign StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType = "Benign" StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultTypeWarning StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType = "Warning" StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultTypeMalicious StarknetTransactionScanResponseValidationStarknetValidationResultSchemaResultType = "Malicious" )
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaStatus ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStarknetValidationResultSchemaStatus string
const (
StarknetTransactionScanResponseValidationStarknetValidationResultSchemaStatusSuccess StarknetTransactionScanResponseValidationStarknetValidationResultSchemaStatus = "Success"
)
type StarknetTransactionScanResponseValidationStatus ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationStatus string
const ( StarknetTransactionScanResponseValidationStatusSuccess StarknetTransactionScanResponseValidationStatus = "Success" StarknetTransactionScanResponseValidationStatusError StarknetTransactionScanResponseValidationStatus = "Error" )
func (StarknetTransactionScanResponseValidationStatus) IsKnown ¶ added in v0.22.1
func (r StarknetTransactionScanResponseValidationStatus) IsKnown() bool
type StarknetTransactionScanResponseValidationUnion ¶ added in v0.22.1
type StarknetTransactionScanResponseValidationUnion interface {
// contains filtered or unexported methods
}
Validation result; Only present if validation option is included in the request
Union satisfied by StarknetTransactionScanResponseValidationStarknetValidationResultSchema or StarknetTransactionScanResponseValidationStarknetValidationErrorSchema.
type StarknetTransactionService ¶ added in v0.22.1
type StarknetTransactionService struct {
Options []option.RequestOption
}
StarknetTransactionService 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 NewStarknetTransactionService method instead.
func NewStarknetTransactionService ¶ added in v0.22.1
func NewStarknetTransactionService(opts ...option.RequestOption) (r *StarknetTransactionService)
NewStarknetTransactionService 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 (*StarknetTransactionService) Scan ¶ added in v0.22.1
func (r *StarknetTransactionService) Scan(ctx context.Context, body StarknetTransactionScanParams, opts ...option.RequestOption) (res *StarknetTransactionScanResponse, err error)
Scan Transactions
type StellarAssetContractDetailsSchema ¶ added in v0.11.0
type StellarAssetContractDetailsSchema struct { // Address of the asset's contract Address string `json:"address,required"` // Asset code Name string `json:"name,required"` // Asset symbol Symbol string `json:"symbol,required"` // Type of the asset (`CONTRACT`) Type StellarAssetContractDetailsSchemaType `json:"type"` JSON stellarAssetContractDetailsSchemaJSON `json:"-"` }
func (*StellarAssetContractDetailsSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarAssetContractDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StellarAssetContractDetailsSchemaType ¶ added in v0.11.0
type StellarAssetContractDetailsSchemaType string
Type of the asset (`CONTRACT`)
const (
StellarAssetContractDetailsSchemaTypeContract StellarAssetContractDetailsSchemaType = "CONTRACT"
)
func (StellarAssetContractDetailsSchemaType) IsKnown ¶ added in v0.11.0
func (r StellarAssetContractDetailsSchemaType) IsKnown() bool
type StellarAssetTransferDetailsSchema ¶ added in v0.11.0
type StellarAssetTransferDetailsSchema struct { // Raw value of the transfer RawValue int64 `json:"raw_value,required"` // Value of the transfer Value float64 `json:"value,required"` // Summarized description of the transfer Summary string `json:"summary,nullable"` // USD price of the asset UsdPrice float64 `json:"usd_price"` JSON stellarAssetTransferDetailsSchemaJSON `json:"-"` }
func (*StellarAssetTransferDetailsSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarAssetTransferDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StellarService ¶ added in v0.11.0
type StellarService struct { Options []option.RequestOption Transaction *StellarTransactionService }
StellarService 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 NewStellarService method instead.
func NewStellarService ¶ added in v0.11.0
func NewStellarService(opts ...option.RequestOption) (r *StellarService)
NewStellarService 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 StellarTransactionScanParams ¶ added in v0.11.0
type StellarTransactionScanParams struct {
StellarTransactionScanRequest StellarTransactionScanRequestParam `json:"StellarTransactionScanRequest,required"`
}
func (StellarTransactionScanParams) MarshalJSON ¶ added in v0.11.0
func (r StellarTransactionScanParams) MarshalJSON() (data []byte, err error)
type StellarTransactionScanRequestChain ¶ added in v0.11.0
type StellarTransactionScanRequestChain string
A CAIP-2 chain ID or a Stellar network name
const ( StellarTransactionScanRequestChainPubnet StellarTransactionScanRequestChain = "pubnet" StellarTransactionScanRequestChainFuturenet StellarTransactionScanRequestChain = "futurenet" StellarTransactionScanRequestChainTestnet StellarTransactionScanRequestChain = "testnet" )
func (StellarTransactionScanRequestChain) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanRequestChain) IsKnown() bool
type StellarTransactionScanRequestMetadataParam ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataParam struct { // Metadata for wallet requests Type param.Field[StellarTransactionScanRequestMetadataType] `json:"type,required"` // URL of the dApp originating the transaction URL param.Field[string] `json:"url"` }
Metadata
func (StellarTransactionScanRequestMetadataParam) MarshalJSON ¶ added in v0.11.0
func (r StellarTransactionScanRequestMetadataParam) MarshalJSON() (data []byte, err error)
type StellarTransactionScanRequestMetadataStellarInAppRequestMetadataParam ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataStellarInAppRequestMetadataParam struct { // Metadata for in-app requests Type param.Field[StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType] `json:"type,required"` }
func (StellarTransactionScanRequestMetadataStellarInAppRequestMetadataParam) MarshalJSON ¶ added in v0.11.0
func (r StellarTransactionScanRequestMetadataStellarInAppRequestMetadataParam) MarshalJSON() (data []byte, err error)
type StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType string
Metadata for in-app requests
const (
StellarTransactionScanRequestMetadataStellarInAppRequestMetadataTypeInApp StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType = "in_app"
)
func (StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanRequestMetadataStellarInAppRequestMetadataType) IsKnown() bool
type StellarTransactionScanRequestMetadataStellarWalletRequestMetadataParam ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataStellarWalletRequestMetadataParam struct { // Metadata for wallet requests Type param.Field[StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType] `json:"type,required"` // URL of the dApp originating the transaction URL param.Field[string] `json:"url,required"` }
func (StellarTransactionScanRequestMetadataStellarWalletRequestMetadataParam) MarshalJSON ¶ added in v0.11.0
func (r StellarTransactionScanRequestMetadataStellarWalletRequestMetadataParam) MarshalJSON() (data []byte, err error)
type StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType string
Metadata for wallet requests
const (
StellarTransactionScanRequestMetadataStellarWalletRequestMetadataTypeWallet StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType = "wallet"
)
func (StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanRequestMetadataStellarWalletRequestMetadataType) IsKnown() bool
type StellarTransactionScanRequestMetadataType ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataType string
Metadata for wallet requests
const ( StellarTransactionScanRequestMetadataTypeWallet StellarTransactionScanRequestMetadataType = "wallet" StellarTransactionScanRequestMetadataTypeInApp StellarTransactionScanRequestMetadataType = "in_app" )
func (StellarTransactionScanRequestMetadataType) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanRequestMetadataType) IsKnown() bool
type StellarTransactionScanRequestMetadataUnionParam ¶ added in v0.11.0
type StellarTransactionScanRequestMetadataUnionParam interface {
// contains filtered or unexported methods
}
Metadata
Satisfied by StellarTransactionScanRequestMetadataStellarWalletRequestMetadataParam, StellarTransactionScanRequestMetadataStellarInAppRequestMetadataParam, StellarTransactionScanRequestMetadataParam.
type StellarTransactionScanRequestOption ¶ added in v0.11.0
type StellarTransactionScanRequestOption string
const ( StellarTransactionScanRequestOptionValidation StellarTransactionScanRequestOption = "validation" StellarTransactionScanRequestOptionSimulation StellarTransactionScanRequestOption = "simulation" )
func (StellarTransactionScanRequestOption) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanRequestOption) IsKnown() bool
type StellarTransactionScanRequestParam ¶ added in v0.11.0
type StellarTransactionScanRequestParam struct { AccountAddress param.Field[string] `json:"account_address,required"` // A CAIP-2 chain ID or a Stellar network name Chain param.Field[StellarTransactionScanRequestChain] `json:"chain,required"` // Metadata Metadata param.Field[StellarTransactionScanRequestMetadataUnionParam] `json:"metadata,required"` Transaction param.Field[string] `json:"transaction,required"` // List of options to include in the response // // - `simulation`: Include simulation output in the response // - `validation`: Include security validation of the transaction in the response Options param.Field[[]StellarTransactionScanRequestOption] `json:"options"` }
func (StellarTransactionScanRequestParam) MarshalJSON ¶ added in v0.11.0
func (r StellarTransactionScanRequestParam) MarshalJSON() (data []byte, err error)
type StellarTransactionScanResponse ¶ added in v0.11.0
type StellarTransactionScanResponse struct { // Simulation result; Only present if simulation option is included in the request Simulation StellarTransactionScanResponseSimulation `json:"simulation,nullable"` // Validation result; Only present if validation option is included in the request Validation StellarTransactionScanResponseValidation `json:"validation,nullable"` JSON stellarTransactionScanResponseJSON `json:"-"` }
func (*StellarTransactionScanResponse) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponse) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulation ¶ added in v0.11.0
type StellarTransactionScanResponseSimulation struct { Status StellarTransactionScanResponseSimulationStatus `json:"status,required"` // This field can have the runtime type of // [map[string][]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff]. AssetsDiffs interface{} `json:"assets_diffs,required"` // This field can have the runtime type of // [map[string][]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure]. Exposures interface{} `json:"exposures,required"` // This field can have the runtime type of // [map[string][]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff]. AssetsOwnershipDiff interface{} `json:"assets_ownership_diff,required"` // This field can have the runtime type of // [[]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail]. AddressDetails interface{} `json:"address_details,required"` // This field can have the runtime type of // [StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary]. AccountSummary interface{} `json:"account_summary,required"` // Error message Error string `json:"error"` JSON stellarTransactionScanResponseSimulationJSON `json:"-"` // contains filtered or unexported fields }
Simulation result; Only present if simulation option is included in the request
func (StellarTransactionScanResponseSimulation) AsUnion ¶ added in v0.11.0
func (r StellarTransactionScanResponseSimulation) AsUnion() StellarTransactionScanResponseSimulationUnion
AsUnion returns a StellarTransactionScanResponseSimulationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StellarTransactionScanResponseSimulationStellarSimulationResultSchema, StellarTransactionScanResponseSimulationStellarSimulationErrorSchema.
func (*StellarTransactionScanResponseSimulation) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulation) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStatus ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStatus string
const ( StellarTransactionScanResponseSimulationStatusSuccess StellarTransactionScanResponseSimulationStatus = "Success" StellarTransactionScanResponseSimulationStatusError StellarTransactionScanResponseSimulationStatus = "Error" )
func (StellarTransactionScanResponseSimulationStatus) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseSimulationStatus) IsKnown() bool
type StellarTransactionScanResponseSimulationStellarSimulationErrorSchema ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationErrorSchema struct { // Error message Error string `json:"error,required"` Status StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus `json:"status,required"` JSON stellarTransactionScanResponseSimulationStellarSimulationErrorSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationErrorSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationErrorSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus string
const (
StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatusError StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus = "Error"
)
func (StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseSimulationStellarSimulationErrorSchemaStatus) IsKnown() bool
type StellarTransactionScanResponseSimulationStellarSimulationResultSchema ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchema struct { // Summary of the actions and asset transfers that were made by the requested // account address AccountSummary StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary `json:"account_summary,required"` Status StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus `json:"status,required"` // Details of addresses involved in the transaction AddressDetails []StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail `json:"address_details"` // Mapping between the address of an account to the assets diff during the // transaction AssetsDiffs map[string][]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff `json:"assets_diffs"` // Mapping between the address of an account to the ownership diff of the account // during the transaction AssetsOwnershipDiff map[string][]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff `json:"assets_ownership_diff"` // Mapping between the address of an account to the exposure of the assets during // the transaction Exposures map[string][]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure `json:"exposures"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary struct { // Exposures made by the requested account address AccountExposures []StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposure `json:"account_exposures,required"` // Account ownerships diff of the requested account address AccountOwnershipsDiff []StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiff `json:"account_ownerships_diff,required"` // Total USD diff for the requested account address TotalUsdDiff StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiff `json:"total_usd_diff,required"` // Assets diffs of the requested account address AssetsDiffs []StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiff `json:"assets_diffs"` // Total USD exposure for each of the spender addresses during the transaction TotalUsdExposure map[string]float64 `json:"total_usd_exposure"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryJSON `json:"-"` }
Summary of the actions and asset transfers that were made by the requested account address
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummary) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposure ¶ added in v0.13.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposure struct { Asset StellarAssetContractDetailsSchema `json:"asset,required"` // Mapping between the address of a Spender to the exposure of the asset during the // transaction Spenders map[string]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpender `json:"spenders"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposureJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposure) UnmarshalJSON ¶ added in v0.13.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposure) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpender ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpender struct { // Raw value of the exposure RawValue int64 `json:"raw_value,required"` // USD value of the exposure UsdPrice float64 `json:"usd_price,required"` // Value of the exposure Value float64 `json:"value,required"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpenderJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpender) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountExposuresSpender) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiff ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiff struct { // List of public keys that can sign on behalf of the account post-transaction PostSigners []string `json:"post_signers,required"` // List of public keys that can sign on behalf of the account pre-transaction PreSigners []string `json:"pre_signers,required"` Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffType `json:"type,required"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiff) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiff) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffType ¶ added in v0.13.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffType string
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffTypeSetOptions StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAccountOwnershipsDiffType = "SET_OPTIONS"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiff ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiff struct { // Asset involved in the transfer Asset StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset `json:"asset,required"` // Incoming transfers of the asset In StellarAssetTransferDetailsSchema `json:"in,nullable"` // Outgoing transfers of the asset Out StellarAssetTransferDetailsSchema `json:"out,nullable"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiff) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiff) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset struct { // Type of the asset (`ASSET`) Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType `json:"type"` // Asset code Code string `json:"code"` // Asset issuer address Issuer string `json:"issuer"` // Organization name OrgName string `json:"org_name"` // Organization URL OrgURL string `json:"org_url"` // Address of the asset's contract Address string `json:"address"` // Asset code Name string `json:"name"` // Asset symbol Symbol string `json:"symbol"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetJSON `json:"-"` // contains filtered or unexported fields }
Asset involved in the transfer
func (StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset) AsUnion ¶ added in v0.11.0
func (r StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset) AsUnion() StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetUnion
AsUnion returns a StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema, StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema, StellarAssetContractDetailsSchema.
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema struct { // Asset code Code string `json:"code,required"` // Asset issuer address Issuer string `json:"issuer,required"` // Organization name OrgName string `json:"org_name,required"` // Organization URL OrgURL string `json:"org_url,required"` // Type of the asset (`ASSET`) Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType `json:"type"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType string
Type of the asset (`ASSET`)
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaTypeAsset StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType = "ASSET"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema struct { // Asset code Code StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode `json:"code"` // Type of the asset (`NATIVE`) Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaType `json:"type"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode string
Asset code
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaCodeXlm StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode = "XLM"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaType ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaType string
Type of the asset (`NATIVE`)
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaTypeNative StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchemaType = "NATIVE"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType string
Type of the asset (`ASSET`)
const ( StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetTypeAsset StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType = "ASSET" StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetTypeNative StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType = "NATIVE" StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetTypeContract StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetType = "CONTRACT" )
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetUnion ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
Asset involved in the transfer
Union satisfied by StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarLegacyAssetDetailsSchema, StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryAssetsDiffsAssetStellarNativeAssetDetailsSchema or StellarAssetContractDetailsSchema.
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiff ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiff struct { // Total incoming USD transfers In float64 `json:"in,required"` // Total outgoing USD transfers Out float64 `json:"out,required"` // Total USD transfers Total float64 `json:"total"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiffJSON `json:"-"` }
Total USD diff for the requested account address
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiff) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAccountSummaryTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Description of the account Description string `json:"description,nullable"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetailJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAddressDetail) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff struct { // Asset involved in the transfer Asset StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset `json:"asset,required"` // Incoming transfers of the asset In StellarAssetTransferDetailsSchema `json:"in,nullable"` // Outgoing transfers of the asset Out StellarAssetTransferDetailsSchema `json:"out,nullable"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiff) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset struct { // Type of the asset (`ASSET`) Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType `json:"type"` // Asset code Code string `json:"code"` // Asset issuer address Issuer string `json:"issuer"` // Organization name OrgName string `json:"org_name"` // Organization URL OrgURL string `json:"org_url"` // Address of the asset's contract Address string `json:"address"` // Asset code Name string `json:"name"` // Asset symbol Symbol string `json:"symbol"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetJSON `json:"-"` // contains filtered or unexported fields }
Asset involved in the transfer
func (StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset) AsUnion ¶ added in v0.11.0
func (r StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset) AsUnion() StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetUnion
AsUnion returns a StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema, StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema, StellarAssetContractDetailsSchema.
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema struct { // Asset code Code string `json:"code,required"` // Asset issuer address Issuer string `json:"issuer,required"` // Organization name OrgName string `json:"org_name,required"` // Organization URL OrgURL string `json:"org_url,required"` // Type of the asset (`ASSET`) Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType `json:"type"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType string
Type of the asset (`ASSET`)
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaTypeAsset StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchemaType = "ASSET"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema struct { // Asset code Code StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode `json:"code"` // Type of the asset (`NATIVE`) Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaType `json:"type"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode string
Asset code
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaCodeXlm StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaCode = "XLM"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaType ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaType string
Type of the asset (`NATIVE`)
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaTypeNative StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchemaType = "NATIVE"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType string
Type of the asset (`ASSET`)
const ( StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetTypeAsset StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType = "ASSET" StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetTypeNative StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType = "NATIVE" StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetTypeContract StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetType = "CONTRACT" )
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetUnion ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
Asset involved in the transfer
Union satisfied by StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarLegacyAssetDetailsSchema, StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsDiffsAssetStellarNativeAssetDetailsSchema or StellarAssetContractDetailsSchema.
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff struct { // List of public keys that can sign on behalf of the account post-transaction PostSigners []string `json:"post_signers,required"` // List of public keys that can sign on behalf of the account pre-transaction PreSigners []string `json:"pre_signers,required"` Type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffType `json:"type,required"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiff) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffType ¶ added in v0.13.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffType string
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffTypeSetOptions StellarTransactionScanResponseSimulationStellarSimulationResultSchemaAssetsOwnershipDiffType = "SET_OPTIONS"
)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure struct { Asset StellarAssetContractDetailsSchema `json:"asset,required"` // Mapping between the address of a Spender to the exposure of the asset during the // transaction Spenders map[string]StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpender `json:"spenders"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposureJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposure) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpender ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpender struct { // Raw value of the exposure RawValue int64 `json:"raw_value,required"` // USD value of the exposure UsdPrice float64 `json:"usd_price,required"` // Value of the exposure Value float64 `json:"value,required"` // Summarized description of the exposure Summary string `json:"summary,nullable"` JSON stellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpenderJSON `json:"-"` }
func (*StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpender) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseSimulationStellarSimulationResultSchemaExposuresSpender) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus string
const (
StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatusSuccess StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus = "Success"
)
func (StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseSimulationStellarSimulationResultSchemaStatus) IsKnown() bool
type StellarTransactionScanResponseSimulationUnion ¶ added in v0.11.0
type StellarTransactionScanResponseSimulationUnion interface {
// contains filtered or unexported methods
}
Simulation result; Only present if simulation option is included in the request
Union satisfied by StellarTransactionScanResponseSimulationStellarSimulationResultSchema or StellarTransactionScanResponseSimulationStellarSimulationErrorSchema.
type StellarTransactionScanResponseValidation ¶ added in v0.11.0
type StellarTransactionScanResponseValidation struct { Status StellarTransactionScanResponseValidationStatus `json:"status,required"` // Verdict of the validation ResultType StellarTransactionScanResponseValidationResultType `json:"result_type"` // A textual description about the validation result 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"` // This field can have the runtime type of // [[]StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature]. Features interface{} `json:"features,required"` // Error message Error string `json:"error"` JSON stellarTransactionScanResponseValidationJSON `json:"-"` // contains filtered or unexported fields }
Validation result; Only present if validation option is included in the request
func (StellarTransactionScanResponseValidation) AsUnion ¶ added in v0.11.0
func (r StellarTransactionScanResponseValidation) AsUnion() StellarTransactionScanResponseValidationUnion
AsUnion returns a StellarTransactionScanResponseValidationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are StellarTransactionScanResponseValidationStellarValidationResultSchema, StellarTransactionScanResponseValidationStellarValidationErrorSchema.
func (*StellarTransactionScanResponseValidation) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseValidation) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseValidationResultType ¶ added in v0.11.0
type StellarTransactionScanResponseValidationResultType string
Verdict of the validation
const ( StellarTransactionScanResponseValidationResultTypeBenign StellarTransactionScanResponseValidationResultType = "Benign" StellarTransactionScanResponseValidationResultTypeWarning StellarTransactionScanResponseValidationResultType = "Warning" StellarTransactionScanResponseValidationResultTypeMalicious StellarTransactionScanResponseValidationResultType = "Malicious" )
func (StellarTransactionScanResponseValidationResultType) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseValidationResultType) IsKnown() bool
type StellarTransactionScanResponseValidationStatus ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStatus string
const ( StellarTransactionScanResponseValidationStatusSuccess StellarTransactionScanResponseValidationStatus = "Success" StellarTransactionScanResponseValidationStatusError StellarTransactionScanResponseValidationStatus = "Error" )
func (StellarTransactionScanResponseValidationStatus) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseValidationStatus) IsKnown() bool
type StellarTransactionScanResponseValidationStellarValidationErrorSchema ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationErrorSchema struct { // Error message Error string `json:"error,required"` Status StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus `json:"status,required"` JSON stellarTransactionScanResponseValidationStellarValidationErrorSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseValidationStellarValidationErrorSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseValidationStellarValidationErrorSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus string
const (
StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatusError StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus = "Error"
)
func (StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseValidationStellarValidationErrorSchemaStatus) IsKnown() bool
type StellarTransactionScanResponseValidationStellarValidationResultSchema ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationResultSchema struct { // A textual classification that can be presented to the user explaining the // reason. Classification string `json:"classification,required"` // A textual description about the validation result Description string `json:"description,required"` // A list of features about this transaction explaining the validation Features []StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature `json:"features,required"` // A textual description about the reasons the transaction was flagged with // result_type Reason string `json:"reason,required"` // Verdict of the validation ResultType StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType `json:"result_type,required"` Status StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus `json:"status,required"` JSON stellarTransactionScanResponseValidationStellarValidationResultSchemaJSON `json:"-"` }
func (*StellarTransactionScanResponseValidationStellarValidationResultSchema) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseValidationStellarValidationResultSchema) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature struct { // Address the feature refers to Address string `json:"address,required"` // Textual description Description string `json:"description,required"` FeatureID string `json:"feature_id,required"` // Feature Classification Type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType `json:"type,required"` JSON stellarTransactionScanResponseValidationStellarValidationResultSchemaFeatureJSON `json:"-"` }
func (*StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature) UnmarshalJSON ¶ added in v0.11.0
func (r *StellarTransactionScanResponseValidationStellarValidationResultSchemaFeature) UnmarshalJSON(data []byte) (err error)
type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType string
Feature Classification
const ( StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesTypeBenign StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType = "Benign" StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesTypeWarning StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType = "Warning" StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesTypeMalicious StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType = "Malicious" StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesTypeInfo StellarTransactionScanResponseValidationStellarValidationResultSchemaFeaturesType = "Info" )
type StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType string
Verdict of the validation
const ( StellarTransactionScanResponseValidationStellarValidationResultSchemaResultTypeBenign StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType = "Benign" StellarTransactionScanResponseValidationStellarValidationResultSchemaResultTypeWarning StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType = "Warning" StellarTransactionScanResponseValidationStellarValidationResultSchemaResultTypeMalicious StellarTransactionScanResponseValidationStellarValidationResultSchemaResultType = "Malicious" )
type StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus ¶ added in v0.11.0
type StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus string
const (
StellarTransactionScanResponseValidationStellarValidationResultSchemaStatusSuccess StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus = "Success"
)
func (StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus) IsKnown ¶ added in v0.11.0
func (r StellarTransactionScanResponseValidationStellarValidationResultSchemaStatus) IsKnown() bool
type StellarTransactionScanResponseValidationUnion ¶ added in v0.11.0
type StellarTransactionScanResponseValidationUnion interface {
// contains filtered or unexported methods
}
Validation result; Only present if validation option is included in the request
Union satisfied by StellarTransactionScanResponseValidationStellarValidationResultSchema or StellarTransactionScanResponseValidationStellarValidationErrorSchema.
type StellarTransactionService ¶ added in v0.11.0
type StellarTransactionService struct {
Options []option.RequestOption
}
StellarTransactionService 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 NewStellarTransactionService method instead.
func NewStellarTransactionService ¶ added in v0.11.0
func NewStellarTransactionService(opts ...option.RequestOption) (r *StellarTransactionService)
NewStellarTransactionService 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 (*StellarTransactionService) Scan ¶ added in v0.11.0
func (r *StellarTransactionService) Scan(ctx context.Context, body StellarTransactionScanParams, opts ...option.RequestOption) (res *StellarTransactionScanResponse, err error)
Scan Transaction
type SuccessfulSimulationResultSchema ¶ added in v0.12.0
type SuccessfulSimulationResultSchema struct { // Summary of the requested account address AccountSummary AccountSummarySchema `json:"account_summary,required"` // Summary of the accounts involved in the transaction simulation AccountsDetails []SuccessfulSimulationResultSchemaAccountsDetail `json:"accounts_details,required"` // Summary of the assets involved in the transaction simulation AssetsDiff map[string][]SuccessfulSimulationResultSchemaAssetsDiff `json:"assets_diff,required"` // Summary of ownership changes, By account address AssetsOwnershipDiff map[string][]SuccessfulSimulationResultSchemaAssetsOwnershipDiff `json:"assets_ownership_diff,required"` // Summary of the delegations, by account address Delegations map[string][]DelegatedAssetDetailsSchema `json:"delegations,required"` JSON successfulSimulationResultSchemaJSON `json:"-"` }
func (*SuccessfulSimulationResultSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SuccessfulSimulationResultSchema) UnmarshalJSON(data []byte) (err error)
type SuccessfulSimulationResultSchemaAccountsDetail ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAccountsDetail struct { Type SuccessfulSimulationResultSchemaAccountsDetailsType `json:"type"` // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Description of the account Description string `json:"description,nullable"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Encoded public key of the mint MintAddress string `json:"mint_address"` // Encoded public key of the owner OwnerAddress string `json:"owner_address"` // Name of the mint Name string `json:"name"` // Symbol of the mint Symbol string `json:"symbol"` // Logo of the mint Logo string `json:"logo"` // URI of the mint Uri string `json:"uri"` // The address of the owning program Owner string `json:"owner"` JSON successfulSimulationResultSchemaAccountsDetailJSON `json:"-"` // contains filtered or unexported fields }
func (SuccessfulSimulationResultSchemaAccountsDetail) AsUnion ¶ added in v0.12.0
func (r SuccessfulSimulationResultSchemaAccountsDetail) AsUnion() SuccessfulSimulationResultSchemaAccountsDetailsUnion
AsUnion returns a SuccessfulSimulationResultSchemaAccountsDetailsUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are SystemAccountDetailsSchema, TokenAccountDetailsSchema, FungibleMintAccountDetailsSchema, NonFungibleMintAccountDetailsSchema, ProgramAccountDetailsSchema, PdaAccountSchema, CnftMintAccountDetailsSchema.
func (*SuccessfulSimulationResultSchemaAccountsDetail) UnmarshalJSON ¶ added in v0.12.0
func (r *SuccessfulSimulationResultSchemaAccountsDetail) UnmarshalJSON(data []byte) (err error)
type SuccessfulSimulationResultSchemaAccountsDetailsType ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAccountsDetailsType string
const ( SuccessfulSimulationResultSchemaAccountsDetailsTypeSystemAccount SuccessfulSimulationResultSchemaAccountsDetailsType = "SYSTEM_ACCOUNT" SuccessfulSimulationResultSchemaAccountsDetailsTypeTokenAccount SuccessfulSimulationResultSchemaAccountsDetailsType = "TOKEN_ACCOUNT" SuccessfulSimulationResultSchemaAccountsDetailsTypeFungibleMintAccount SuccessfulSimulationResultSchemaAccountsDetailsType = "FUNGIBLE_MINT_ACCOUNT" SuccessfulSimulationResultSchemaAccountsDetailsTypeNonFungibleMintAccount SuccessfulSimulationResultSchemaAccountsDetailsType = "NON_FUNGIBLE_MINT_ACCOUNT" SuccessfulSimulationResultSchemaAccountsDetailsTypeProgram SuccessfulSimulationResultSchemaAccountsDetailsType = "PROGRAM" SuccessfulSimulationResultSchemaAccountsDetailsTypeNativeProgram SuccessfulSimulationResultSchemaAccountsDetailsType = "NATIVE_PROGRAM" SuccessfulSimulationResultSchemaAccountsDetailsTypePda SuccessfulSimulationResultSchemaAccountsDetailsType = "PDA" SuccessfulSimulationResultSchemaAccountsDetailsTypeCnftMintAccount SuccessfulSimulationResultSchemaAccountsDetailsType = "CNFT_MINT_ACCOUNT" )
func (SuccessfulSimulationResultSchemaAccountsDetailsType) IsKnown ¶ added in v0.12.0
func (r SuccessfulSimulationResultSchemaAccountsDetailsType) IsKnown() bool
type SuccessfulSimulationResultSchemaAccountsDetailsUnion ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAccountsDetailsUnion interface {
// contains filtered or unexported methods
}
Union satisfied by SystemAccountDetailsSchema, TokenAccountDetailsSchema, FungibleMintAccountDetailsSchema, NonFungibleMintAccountDetailsSchema, ProgramAccountDetailsSchema, PdaAccountSchema or CnftMintAccountDetailsSchema.
type SuccessfulSimulationResultSchemaAssetsDiff ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAssetsDiff struct { // This field can have the runtime type of [NativeSolDetailsSchema], // [SplFungibleTokenDetailsSchema], [SplNonFungibleTokenDetailsSchema], // [CnftDetailsSchema]. Asset interface{} `json:"asset"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in,nullable"` Out AssetTransferDetailsSchema `json:"out,nullable"` JSON successfulSimulationResultSchemaAssetsDiffJSON `json:"-"` // contains filtered or unexported fields }
func (SuccessfulSimulationResultSchemaAssetsDiff) AsUnion ¶ added in v0.12.0
func (r SuccessfulSimulationResultSchemaAssetsDiff) AsUnion() SuccessfulSimulationResultSchemaAssetsDiffUnion
AsUnion returns a SuccessfulSimulationResultSchemaAssetsDiffUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are NativeSolDiffSchema, SplFungibleTokenDiffSchema, SplNonFungibleTokenDiffSchema, CnftDiffSchema.
func (*SuccessfulSimulationResultSchemaAssetsDiff) UnmarshalJSON ¶ added in v0.12.0
func (r *SuccessfulSimulationResultSchemaAssetsDiff) UnmarshalJSON(data []byte) (err error)
type SuccessfulSimulationResultSchemaAssetsDiffUnion ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAssetsDiffUnion interface {
// contains filtered or unexported methods
}
Union satisfied by NativeSolDiffSchema, SplFungibleTokenDiffSchema, SplNonFungibleTokenDiffSchema or CnftDiffSchema.
type SuccessfulSimulationResultSchemaAssetsOwnershipDiff ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAssetsOwnershipDiff struct { // This field can have the runtime type of [NativeSolDetailsSchema], // [SplTokenOwnershipDiffSchemaAsset], [StakedSolAssetDetailsSchema]. Asset interface{} `json:"asset,required"` // Incoming transfers of the asset In AssetTransferDetailsSchema `json:"in_,nullable"` // Details of the moved value Out AssetTransferDetailsSchema `json:"out,nullable"` // The owner prior to the transaction PreOwner string `json:"pre_owner,nullable"` // The owner post the transaction PostOwner string `json:"post_owner,required"` JSON successfulSimulationResultSchemaAssetsOwnershipDiffJSON `json:"-"` // contains filtered or unexported fields }
func (SuccessfulSimulationResultSchemaAssetsOwnershipDiff) AsUnion ¶ added in v0.12.0
func (r SuccessfulSimulationResultSchemaAssetsOwnershipDiff) AsUnion() SuccessfulSimulationResultSchemaAssetsOwnershipDiffUnion
AsUnion returns a SuccessfulSimulationResultSchemaAssetsOwnershipDiffUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are NativeSolOwnershipDiffSchema, SplTokenOwnershipDiffSchema, StakedSolWithdrawAuthorityDiffSchema.
func (*SuccessfulSimulationResultSchemaAssetsOwnershipDiff) UnmarshalJSON ¶ added in v0.12.0
func (r *SuccessfulSimulationResultSchemaAssetsOwnershipDiff) UnmarshalJSON(data []byte) (err error)
type SuccessfulSimulationResultSchemaAssetsOwnershipDiffUnion ¶ added in v0.12.0
type SuccessfulSimulationResultSchemaAssetsOwnershipDiffUnion interface {
// contains filtered or unexported methods
}
Union satisfied by NativeSolOwnershipDiffSchema, SplTokenOwnershipDiffSchema or StakedSolWithdrawAuthorityDiffSchema.
type SystemAccountDetailsSchema ¶ added in v0.12.0
type SystemAccountDetailsSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` Type SystemAccountDetailsSchemaType `json:"type"` JSON systemAccountDetailsSchemaJSON `json:"-"` }
func (*SystemAccountDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *SystemAccountDetailsSchema) UnmarshalJSON(data []byte) (err error)
type SystemAccountDetailsSchemaType ¶ added in v0.12.0
type SystemAccountDetailsSchemaType string
const (
SystemAccountDetailsSchemaTypeSystemAccount SystemAccountDetailsSchemaType = "SYSTEM_ACCOUNT"
)
func (SystemAccountDetailsSchemaType) IsKnown ¶ added in v0.12.0
func (r SystemAccountDetailsSchemaType) IsKnown() bool
type TokenAccountDetailsSchema ¶ added in v0.12.0
type TokenAccountDetailsSchema struct { // Encoded public key of the account AccountAddress string `json:"account_address,required"` // Encoded public key of the mint MintAddress string `json:"mint_address,required"` // Encoded public key of the owner OwnerAddress string `json:"owner_address,required"` // Whether the account had been written to during the simulation WasWrittenTo bool `json:"was_written_to,required"` // Description of the account Description string `json:"description,nullable"` Type TokenAccountDetailsSchemaType `json:"type"` JSON tokenAccountDetailsSchemaJSON `json:"-"` }
func (*TokenAccountDetailsSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *TokenAccountDetailsSchema) UnmarshalJSON(data []byte) (err error)
type TokenAccountDetailsSchemaType ¶ added in v0.12.0
type TokenAccountDetailsSchemaType string
const (
TokenAccountDetailsSchemaTypeTokenAccount TokenAccountDetailsSchemaType = "TOKEN_ACCOUNT"
)
func (TokenAccountDetailsSchemaType) IsKnown ¶ added in v0.12.0
func (r TokenAccountDetailsSchemaType) IsKnown() bool
type TokenBulkScanParams ¶ added in v0.18.0
type TokenBulkScanParams struct { // The chain name Chain param.Field[TokenScanSupportedChain] `json:"chain,required"` // A list of token addresses to scan Tokens param.Field[[]string] `json:"tokens,required"` // Object of additional information to validate against. Metadata param.Field[TokenBulkScanParamsMetadata] `json:"metadata"` }
func (TokenBulkScanParams) MarshalJSON ¶ added in v0.18.0
func (r TokenBulkScanParams) MarshalJSON() (data []byte, err error)
type TokenBulkScanParamsMetadata ¶ added in v0.18.0
type TokenBulkScanParamsMetadata struct { // cross reference transaction against the domain. Domain param.Field[string] `json:"domain"` }
Object of additional information to validate against.
func (TokenBulkScanParamsMetadata) MarshalJSON ¶ added in v0.18.0
func (r TokenBulkScanParamsMetadata) MarshalJSON() (data []byte, err error)
type TokenBulkScanResponse ¶ added in v0.18.0
type TokenBulkScanResponse struct { Results map[string]TokenBulkScanResponseResult `json:"results,required"` JSON tokenBulkScanResponseJSON `json:"-"` }
func (*TokenBulkScanResponse) UnmarshalJSON ¶ added in v0.18.0
func (r *TokenBulkScanResponse) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResult ¶ added in v0.18.0
type TokenBulkScanResponseResult struct { // Token address to validate (EVM / Solana) Address string `json:"address,required"` // Dictionary of detected attacks found during the scan AttackTypes map[string]TokenBulkScanResponseResultsAttackType `json:"attack_types,required"` // The chain name Chain TokenScanSupportedChain `json:"chain,required"` // Fees associated with the token Fees TokenBulkScanResponseResultsFees `json:"fees,required"` // financial stats of the token FinancialStats TokenBulkScanResponseResultsFinancialStats `json:"financial_stats,required"` // Score between 0 to 1 (double) MaliciousScore string `json:"malicious_score,required"` // Metadata of the token Metadata TokenBulkScanResponseResultsMetadata `json:"metadata,required"` // An enumeration. ResultType TokenBulkScanResponseResultsResultType `json:"result_type,required"` // Trading limits of the token TradingLimits TokenBulkScanResponseResultsTradingLimits `json:"trading_limits,required"` // List of features associated with the token Features []TokenBulkScanResponseResultsFeature `json:"features"` JSON tokenBulkScanResponseResultJSON `json:"-"` }
func (*TokenBulkScanResponseResult) UnmarshalJSON ¶ added in v0.18.0
func (r *TokenBulkScanResponseResult) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsAttackType ¶ added in v0.18.0
type TokenBulkScanResponseResultsAttackType struct { // Score between 0 to 1 (double) that indicates the assurance this attack happened Score string `json:"score,required"` // Object contains an extra information related to the attack Features interface{} `json:"features"` // If score is higher or equal to this field, the token is using this attack type Threshold string `json:"threshold"` JSON tokenBulkScanResponseResultsAttackTypeJSON `json:"-"` }
func (*TokenBulkScanResponseResultsAttackType) UnmarshalJSON ¶ added in v0.18.0
func (r *TokenBulkScanResponseResultsAttackType) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsFeature ¶ added in v0.22.1
type TokenBulkScanResponseResultsFeature struct { // Description of the feature Description string `json:"description,required"` // An enumeration. FeatureID TokenBulkScanResponseResultsFeaturesFeatureID `json:"feature_id,required"` // An enumeration. Type TokenBulkScanResponseResultsFeaturesType `json:"type,required"` JSON tokenBulkScanResponseResultsFeatureJSON `json:"-"` }
func (*TokenBulkScanResponseResultsFeature) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsFeature) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsFeaturesFeatureID ¶ added in v0.22.1
type TokenBulkScanResponseResultsFeaturesFeatureID string
An enumeration.
const ( TokenBulkScanResponseResultsFeaturesFeatureIDVerifiedContract TokenBulkScanResponseResultsFeaturesFeatureID = "VERIFIED_CONTRACT" TokenBulkScanResponseResultsFeaturesFeatureIDHighTradeVolume TokenBulkScanResponseResultsFeaturesFeatureID = "HIGH_TRADE_VOLUME" TokenBulkScanResponseResultsFeaturesFeatureIDMarketPlaceSalesHistory TokenBulkScanResponseResultsFeaturesFeatureID = "MARKET_PLACE_SALES_HISTORY" TokenBulkScanResponseResultsFeaturesFeatureIDHighReputationToken TokenBulkScanResponseResultsFeaturesFeatureID = "HIGH_REPUTATION_TOKEN" TokenBulkScanResponseResultsFeaturesFeatureIDStaticCodeSignature TokenBulkScanResponseResultsFeaturesFeatureID = "STATIC_CODE_SIGNATURE" TokenBulkScanResponseResultsFeaturesFeatureIDKnownMalicious TokenBulkScanResponseResultsFeaturesFeatureID = "KNOWN_MALICIOUS" TokenBulkScanResponseResultsFeaturesFeatureIDMetadata TokenBulkScanResponseResultsFeaturesFeatureID = "METADATA" TokenBulkScanResponseResultsFeaturesFeatureIDAirdropPattern TokenBulkScanResponseResultsFeaturesFeatureID = "AIRDROP_PATTERN" TokenBulkScanResponseResultsFeaturesFeatureIDImpersonator TokenBulkScanResponseResultsFeaturesFeatureID = "IMPERSONATOR" TokenBulkScanResponseResultsFeaturesFeatureIDInorganicVolume TokenBulkScanResponseResultsFeaturesFeatureID = "INORGANIC_VOLUME" TokenBulkScanResponseResultsFeaturesFeatureIDDynamicAnalysis TokenBulkScanResponseResultsFeaturesFeatureID = "DYNAMIC_ANALYSIS" TokenBulkScanResponseResultsFeaturesFeatureIDUnstableTokenPrice TokenBulkScanResponseResultsFeaturesFeatureID = "UNSTABLE_TOKEN_PRICE" TokenBulkScanResponseResultsFeaturesFeatureIDRugpull TokenBulkScanResponseResultsFeaturesFeatureID = "RUGPULL" TokenBulkScanResponseResultsFeaturesFeatureIDConsumerOverride TokenBulkScanResponseResultsFeaturesFeatureID = "CONSUMER_OVERRIDE" TokenBulkScanResponseResultsFeaturesFeatureIDInappropriateContent TokenBulkScanResponseResultsFeaturesFeatureID = "INAPPROPRIATE_CONTENT" TokenBulkScanResponseResultsFeaturesFeatureIDHighTransferFee TokenBulkScanResponseResultsFeaturesFeatureID = "HIGH_TRANSFER_FEE" TokenBulkScanResponseResultsFeaturesFeatureIDHighBuyFee TokenBulkScanResponseResultsFeaturesFeatureID = "HIGH_BUY_FEE" TokenBulkScanResponseResultsFeaturesFeatureIDHighSellFee TokenBulkScanResponseResultsFeaturesFeatureID = "HIGH_SELL_FEE" TokenBulkScanResponseResultsFeaturesFeatureIDIsMintable TokenBulkScanResponseResultsFeaturesFeatureID = "IS_MINTABLE" TokenBulkScanResponseResultsFeaturesFeatureIDModifiableTaxes TokenBulkScanResponseResultsFeaturesFeatureID = "MODIFIABLE_TAXES" TokenBulkScanResponseResultsFeaturesFeatureIDCanBlacklist TokenBulkScanResponseResultsFeaturesFeatureID = "CAN_BLACKLIST" TokenBulkScanResponseResultsFeaturesFeatureIDCanWhitelist TokenBulkScanResponseResultsFeaturesFeatureID = "CAN_WHITELIST" TokenBulkScanResponseResultsFeaturesFeatureIDHasTradingCooldown TokenBulkScanResponseResultsFeaturesFeatureID = "HAS_TRADING_COOLDOWN" TokenBulkScanResponseResultsFeaturesFeatureIDExternalFunctions TokenBulkScanResponseResultsFeaturesFeatureID = "EXTERNAL_FUNCTIONS" TokenBulkScanResponseResultsFeaturesFeatureIDHiddenOwner TokenBulkScanResponseResultsFeaturesFeatureID = "HIDDEN_OWNER" TokenBulkScanResponseResultsFeaturesFeatureIDTransferPauseable TokenBulkScanResponseResultsFeaturesFeatureID = "TRANSFER_PAUSEABLE" TokenBulkScanResponseResultsFeaturesFeatureIDOwnershipRenounced TokenBulkScanResponseResultsFeaturesFeatureID = "OWNERSHIP_RENOUNCED" TokenBulkScanResponseResultsFeaturesFeatureIDProxyContract TokenBulkScanResponseResultsFeaturesFeatureID = "PROXY_CONTRACT" )
func (TokenBulkScanResponseResultsFeaturesFeatureID) IsKnown ¶ added in v0.22.1
func (r TokenBulkScanResponseResultsFeaturesFeatureID) IsKnown() bool
type TokenBulkScanResponseResultsFeaturesType ¶ added in v0.22.1
type TokenBulkScanResponseResultsFeaturesType string
An enumeration.
const ( TokenBulkScanResponseResultsFeaturesTypeBenign TokenBulkScanResponseResultsFeaturesType = "Benign" TokenBulkScanResponseResultsFeaturesTypeInfo TokenBulkScanResponseResultsFeaturesType = "Info" TokenBulkScanResponseResultsFeaturesTypeWarning TokenBulkScanResponseResultsFeaturesType = "Warning" TokenBulkScanResponseResultsFeaturesTypeMalicious TokenBulkScanResponseResultsFeaturesType = "Malicious" )
func (TokenBulkScanResponseResultsFeaturesType) IsKnown ¶ added in v0.22.1
func (r TokenBulkScanResponseResultsFeaturesType) IsKnown() bool
type TokenBulkScanResponseResultsFees ¶ added in v0.22.1
type TokenBulkScanResponseResultsFees struct { // Buy fee of the token Buy float64 `json:"buy"` // Sell fee of the token Sell float64 `json:"sell"` // Transfer fee of the token Transfer float64 `json:"transfer"` JSON tokenBulkScanResponseResultsFeesJSON `json:"-"` }
Fees associated with the token
func (*TokenBulkScanResponseResultsFees) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsFees) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsFinancialStats ¶ added in v0.22.1
type TokenBulkScanResponseResultsFinancialStats struct { BurnedLiquidityPercentage float64 `json:"burned_liquidity_percentage"` HoldersCount int64 `json:"holders_count"` LockedLiquidityPercentage float64 `json:"locked_liquidity_percentage"` TopHolders []TokenBulkScanResponseResultsFinancialStatsTopHolder `json:"top_holders"` UsdPricePerUnit float64 `json:"usd_price_per_unit"` JSON tokenBulkScanResponseResultsFinancialStatsJSON `json:"-"` }
financial stats of the token
func (*TokenBulkScanResponseResultsFinancialStats) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsFinancialStats) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsFinancialStatsTopHolder ¶ added in v0.22.1
type TokenBulkScanResponseResultsFinancialStatsTopHolder struct { Address string `json:"address"` HoldingPercentage float64 `json:"holding_percentage"` JSON tokenBulkScanResponseResultsFinancialStatsTopHolderJSON `json:"-"` }
func (*TokenBulkScanResponseResultsFinancialStatsTopHolder) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsFinancialStatsTopHolder) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsMetadata ¶ added in v0.22.1
type TokenBulkScanResponseResultsMetadata struct { // Type of the token Type string `json:"type"` // Name of the token Name string `json:"name"` // Symbol of the token Symbol string `json:"symbol"` // URL of the token image ImageURL string `json:"image_url"` // Description of the token Description string `json:"description"` // Address of the deployer of the fungible token Deployer string `json:"deployer"` MintAuthority string `json:"mint_authority"` UpdateAuthority string `json:"update_authority"` FreezeAuthority string `json:"freeze_authority"` JSON tokenBulkScanResponseResultsMetadataJSON `json:"-"` // contains filtered or unexported fields }
Metadata of the token
func (TokenBulkScanResponseResultsMetadata) AsUnion ¶ added in v0.22.1
func (r TokenBulkScanResponseResultsMetadata) AsUnion() TokenBulkScanResponseResultsMetadataUnion
AsUnion returns a TokenBulkScanResponseResultsMetadataUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TokenBulkScanResponseResultsMetadataSolanaMetadata, TokenBulkScanResponseResultsMetadataBasicMetadataToken.
func (*TokenBulkScanResponseResultsMetadata) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsMetadata) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsMetadataBasicMetadataToken ¶ added in v0.22.1
type TokenBulkScanResponseResultsMetadataBasicMetadataToken struct { // Address of the deployer of the fungible token Deployer string `json:"deployer"` // Description of the token Description string `json:"description"` // URL of the token image ImageURL string `json:"image_url"` // Name of the token Name string `json:"name"` // Symbol of the token Symbol string `json:"symbol"` // Type of the token Type string `json:"type"` JSON tokenBulkScanResponseResultsMetadataBasicMetadataTokenJSON `json:"-"` }
func (*TokenBulkScanResponseResultsMetadataBasicMetadataToken) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsMetadataBasicMetadataToken) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsMetadataSolanaMetadata ¶ added in v0.22.1
type TokenBulkScanResponseResultsMetadataSolanaMetadata struct { // Address of the deployer of the fungible token Deployer string `json:"deployer"` // Description of the token Description string `json:"description"` FreezeAuthority string `json:"freeze_authority"` // URL of the token image ImageURL string `json:"image_url"` MintAuthority string `json:"mint_authority"` // Name of the token Name string `json:"name"` // Symbol of the token Symbol string `json:"symbol"` // Type of the token Type string `json:"type"` UpdateAuthority string `json:"update_authority"` JSON tokenBulkScanResponseResultsMetadataSolanaMetadataJSON `json:"-"` }
func (*TokenBulkScanResponseResultsMetadataSolanaMetadata) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsMetadataSolanaMetadata) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsMetadataUnion ¶ added in v0.22.1
type TokenBulkScanResponseResultsMetadataUnion interface {
// contains filtered or unexported methods
}
Metadata of the token
Union satisfied by TokenBulkScanResponseResultsMetadataSolanaMetadata or TokenBulkScanResponseResultsMetadataBasicMetadataToken.
type TokenBulkScanResponseResultsResultType ¶ added in v0.18.0
type TokenBulkScanResponseResultsResultType string
An enumeration.
const ( TokenBulkScanResponseResultsResultTypeBenign TokenBulkScanResponseResultsResultType = "Benign" TokenBulkScanResponseResultsResultTypeWarning TokenBulkScanResponseResultsResultType = "Warning" TokenBulkScanResponseResultsResultTypeMalicious TokenBulkScanResponseResultsResultType = "Malicious" TokenBulkScanResponseResultsResultTypeSpam TokenBulkScanResponseResultsResultType = "Spam" )
func (TokenBulkScanResponseResultsResultType) IsKnown ¶ added in v0.18.0
func (r TokenBulkScanResponseResultsResultType) IsKnown() bool
type TokenBulkScanResponseResultsTradingLimits ¶ added in v0.22.1
type TokenBulkScanResponseResultsTradingLimits struct { MaxBuy TokenBulkScanResponseResultsTradingLimitsMaxBuy `json:"max_buy"` MaxHolding TokenBulkScanResponseResultsTradingLimitsMaxHolding `json:"max_holding"` MaxSell TokenBulkScanResponseResultsTradingLimitsMaxSell `json:"max_sell"` SellLimitPerBlock TokenBulkScanResponseResultsTradingLimitsSellLimitPerBlock `json:"sell_limit_per_block"` JSON tokenBulkScanResponseResultsTradingLimitsJSON `json:"-"` }
Trading limits of the token
func (*TokenBulkScanResponseResultsTradingLimits) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsTradingLimits) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsTradingLimitsMaxBuy ¶ added in v0.22.1
type TokenBulkScanResponseResultsTradingLimitsMaxBuy struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenBulkScanResponseResultsTradingLimitsMaxBuyJSON `json:"-"` }
func (*TokenBulkScanResponseResultsTradingLimitsMaxBuy) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsTradingLimitsMaxBuy) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsTradingLimitsMaxHolding ¶ added in v0.22.1
type TokenBulkScanResponseResultsTradingLimitsMaxHolding struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenBulkScanResponseResultsTradingLimitsMaxHoldingJSON `json:"-"` }
func (*TokenBulkScanResponseResultsTradingLimitsMaxHolding) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsTradingLimitsMaxHolding) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsTradingLimitsMaxSell ¶ added in v0.22.1
type TokenBulkScanResponseResultsTradingLimitsMaxSell struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenBulkScanResponseResultsTradingLimitsMaxSellJSON `json:"-"` }
func (*TokenBulkScanResponseResultsTradingLimitsMaxSell) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsTradingLimitsMaxSell) UnmarshalJSON(data []byte) (err error)
type TokenBulkScanResponseResultsTradingLimitsSellLimitPerBlock ¶ added in v0.22.1
type TokenBulkScanResponseResultsTradingLimitsSellLimitPerBlock struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenBulkScanResponseResultsTradingLimitsSellLimitPerBlockJSON `json:"-"` }
func (*TokenBulkScanResponseResultsTradingLimitsSellLimitPerBlock) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenBulkScanResponseResultsTradingLimitsSellLimitPerBlock) UnmarshalJSON(data []byte) (err error)
type TokenBulkService ¶ added in v0.18.0
type TokenBulkService struct {
Options []option.RequestOption
}
TokenBulkService 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 NewTokenBulkService method instead.
func NewTokenBulkService ¶ added in v0.18.0
func NewTokenBulkService(opts ...option.RequestOption) (r *TokenBulkService)
NewTokenBulkService 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 (*TokenBulkService) Scan ¶ added in v0.18.0
func (r *TokenBulkService) Scan(ctx context.Context, body TokenBulkScanParams, opts ...option.RequestOption) (res *TokenBulkScanResponse, err error)
Gets a list of token addresses and scan the tokens to identify any indication of malicious behaviour
type TokenReportParams ¶ added in v0.15.0
type TokenReportParams struct { // Details about the report. Details param.Field[string] `json:"details,required"` // An enumeration. Event param.Field[TokenReportParamsEvent] `json:"event,required"` // The report parameters. Report param.Field[TokenReportParamsReportUnion] `json:"report,required"` }
func (TokenReportParams) MarshalJSON ¶ added in v0.15.0
func (r TokenReportParams) MarshalJSON() (data []byte, err error)
type TokenReportParamsEvent ¶ added in v0.15.0
type TokenReportParamsEvent string
An enumeration.
const ( TokenReportParamsEventFalsePositive TokenReportParamsEvent = "FALSE_POSITIVE" TokenReportParamsEventFalseNegative TokenReportParamsEvent = "FALSE_NEGATIVE" )
func (TokenReportParamsEvent) IsKnown ¶ added in v0.15.0
func (r TokenReportParamsEvent) IsKnown() bool
type TokenReportParamsReport ¶ added in v0.15.0
type TokenReportParamsReport struct { Type param.Field[TokenReportParamsReportType] `json:"type,required"` Params param.Field[interface{}] `json:"params,required"` RequestID param.Field[string] `json:"request_id"` }
The report parameters.
func (TokenReportParamsReport) MarshalJSON ¶ added in v0.15.0
func (r TokenReportParamsReport) MarshalJSON() (data []byte, err error)
type TokenReportParamsReportParamReportTokenReportParams ¶ added in v0.16.0
type TokenReportParamsReportParamReportTokenReportParams struct { Params param.Field[TokenReportParamsReportParamReportTokenReportParamsParams] `json:"params,required"` Type param.Field[TokenReportParamsReportParamReportTokenReportParamsType] `json:"type,required"` }
func (TokenReportParamsReportParamReportTokenReportParams) MarshalJSON ¶ added in v0.16.0
func (r TokenReportParamsReportParamReportTokenReportParams) MarshalJSON() (data []byte, err error)
type TokenReportParamsReportParamReportTokenReportParamsParams ¶ added in v0.16.0
type TokenReportParamsReportParamReportTokenReportParamsParams struct { // The address of the token to report on. Address param.Field[string] `json:"address,required"` // The chain name Chain param.Field[TokenScanSupportedChain] `json:"chain,required"` }
func (TokenReportParamsReportParamReportTokenReportParamsParams) MarshalJSON ¶ added in v0.16.0
func (r TokenReportParamsReportParamReportTokenReportParamsParams) MarshalJSON() (data []byte, err error)
type TokenReportParamsReportParamReportTokenReportParamsType ¶ added in v0.16.0
type TokenReportParamsReportParamReportTokenReportParamsType string
const (
TokenReportParamsReportParamReportTokenReportParamsTypeParams TokenReportParamsReportParamReportTokenReportParamsType = "params"
)
func (TokenReportParamsReportParamReportTokenReportParamsType) IsKnown ¶ added in v0.16.0
func (r TokenReportParamsReportParamReportTokenReportParamsType) IsKnown() bool
type TokenReportParamsReportRequestIDReport ¶ added in v0.15.0
type TokenReportParamsReportRequestIDReport struct { RequestID param.Field[string] `json:"request_id,required"` Type param.Field[TokenReportParamsReportRequestIDReportType] `json:"type,required"` }
func (TokenReportParamsReportRequestIDReport) MarshalJSON ¶ added in v0.15.0
func (r TokenReportParamsReportRequestIDReport) MarshalJSON() (data []byte, err error)
type TokenReportParamsReportRequestIDReportType ¶ added in v0.15.0
type TokenReportParamsReportRequestIDReportType string
const (
TokenReportParamsReportRequestIDReportTypeRequestID TokenReportParamsReportRequestIDReportType = "request_id"
)
func (TokenReportParamsReportRequestIDReportType) IsKnown ¶ added in v0.15.0
func (r TokenReportParamsReportRequestIDReportType) IsKnown() bool
type TokenReportParamsReportType ¶ added in v0.15.0
type TokenReportParamsReportType string
const ( TokenReportParamsReportTypeParams TokenReportParamsReportType = "params" TokenReportParamsReportTypeRequestID TokenReportParamsReportType = "request_id" )
func (TokenReportParamsReportType) IsKnown ¶ added in v0.15.0
func (r TokenReportParamsReportType) IsKnown() bool
type TokenReportParamsReportUnion ¶ added in v0.15.0
type TokenReportParamsReportUnion interface {
// contains filtered or unexported methods
}
The report parameters.
Satisfied by TokenReportParamsReportParamReportTokenReportParams, TokenReportParamsReportRequestIDReport, TokenReportParamsReport.
type TokenReportResponse ¶ added in v0.15.0
type TokenReportResponse = interface{}
type TokenScanParams ¶ added in v0.7.6
type TokenScanParams struct { // Token address to validate (EVM / Solana / Stellar / Starknet) Address param.Field[string] `json:"address,required"` // The chain name Chain param.Field[TokenScanSupportedChain] `json:"chain,required"` // Object of additional information to validate against. Metadata param.Field[TokenScanParamsMetadata] `json:"metadata"` }
func (TokenScanParams) MarshalJSON ¶ added in v0.7.6
func (r TokenScanParams) MarshalJSON() (data []byte, err error)
type TokenScanParamsMetadata ¶ added in v0.7.6
type TokenScanParamsMetadata struct { // cross reference transaction against the domain. Domain param.Field[string] `json:"domain"` }
Object of additional information to validate against.
func (TokenScanParamsMetadata) MarshalJSON ¶ added in v0.7.6
func (r TokenScanParamsMetadata) MarshalJSON() (data []byte, err error)
type TokenScanResponse ¶ added in v0.7.6
type TokenScanResponse struct { // Token address to validate (EVM / Solana) Address string `json:"address,required"` // Dictionary of detected attacks found during the scan AttackTypes map[string]TokenScanResponseAttackType `json:"attack_types,required"` // The chain name Chain TokenScanSupportedChain `json:"chain,required"` // Fees associated with the token Fees TokenScanResponseFees `json:"fees,required"` // financial stats of the token FinancialStats TokenScanResponseFinancialStats `json:"financial_stats,required"` // Score between 0 to 1 (double) MaliciousScore string `json:"malicious_score,required"` // Metadata of the token Metadata TokenScanResponseMetadata `json:"metadata,required"` // An enumeration. ResultType TokenScanResponseResultType `json:"result_type,required"` // Trading limits of the token TradingLimits TokenScanResponseTradingLimits `json:"trading_limits,required"` // List of features associated with the token Features []TokenScanResponseFeature `json:"features"` JSON tokenScanResponseJSON `json:"-"` }
func (*TokenScanResponse) UnmarshalJSON ¶ added in v0.7.6
func (r *TokenScanResponse) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseAttackType ¶ added in v0.7.6
type TokenScanResponseAttackType struct { // Score between 0 to 1 (double) that indicates the assurance this attack happened Score string `json:"score,required"` // Object contains an extra information related to the attack Features interface{} `json:"features"` // If score is higher or equal to this field, the token is using this attack type Threshold string `json:"threshold"` JSON tokenScanResponseAttackTypeJSON `json:"-"` }
func (*TokenScanResponseAttackType) UnmarshalJSON ¶ added in v0.7.6
func (r *TokenScanResponseAttackType) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseFeature ¶ added in v0.22.1
type TokenScanResponseFeature struct { // Description of the feature Description string `json:"description,required"` // An enumeration. FeatureID TokenScanResponseFeaturesFeatureID `json:"feature_id,required"` // An enumeration. Type TokenScanResponseFeaturesType `json:"type,required"` JSON tokenScanResponseFeatureJSON `json:"-"` }
func (*TokenScanResponseFeature) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseFeature) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseFeaturesFeatureID ¶ added in v0.22.1
type TokenScanResponseFeaturesFeatureID string
An enumeration.
const ( TokenScanResponseFeaturesFeatureIDVerifiedContract TokenScanResponseFeaturesFeatureID = "VERIFIED_CONTRACT" TokenScanResponseFeaturesFeatureIDHighTradeVolume TokenScanResponseFeaturesFeatureID = "HIGH_TRADE_VOLUME" TokenScanResponseFeaturesFeatureIDMarketPlaceSalesHistory TokenScanResponseFeaturesFeatureID = "MARKET_PLACE_SALES_HISTORY" TokenScanResponseFeaturesFeatureIDHighReputationToken TokenScanResponseFeaturesFeatureID = "HIGH_REPUTATION_TOKEN" TokenScanResponseFeaturesFeatureIDStaticCodeSignature TokenScanResponseFeaturesFeatureID = "STATIC_CODE_SIGNATURE" TokenScanResponseFeaturesFeatureIDKnownMalicious TokenScanResponseFeaturesFeatureID = "KNOWN_MALICIOUS" TokenScanResponseFeaturesFeatureIDMetadata TokenScanResponseFeaturesFeatureID = "METADATA" TokenScanResponseFeaturesFeatureIDAirdropPattern TokenScanResponseFeaturesFeatureID = "AIRDROP_PATTERN" TokenScanResponseFeaturesFeatureIDImpersonator TokenScanResponseFeaturesFeatureID = "IMPERSONATOR" TokenScanResponseFeaturesFeatureIDInorganicVolume TokenScanResponseFeaturesFeatureID = "INORGANIC_VOLUME" TokenScanResponseFeaturesFeatureIDDynamicAnalysis TokenScanResponseFeaturesFeatureID = "DYNAMIC_ANALYSIS" TokenScanResponseFeaturesFeatureIDUnstableTokenPrice TokenScanResponseFeaturesFeatureID = "UNSTABLE_TOKEN_PRICE" TokenScanResponseFeaturesFeatureIDRugpull TokenScanResponseFeaturesFeatureID = "RUGPULL" TokenScanResponseFeaturesFeatureIDConsumerOverride TokenScanResponseFeaturesFeatureID = "CONSUMER_OVERRIDE" TokenScanResponseFeaturesFeatureIDInappropriateContent TokenScanResponseFeaturesFeatureID = "INAPPROPRIATE_CONTENT" TokenScanResponseFeaturesFeatureIDHighTransferFee TokenScanResponseFeaturesFeatureID = "HIGH_TRANSFER_FEE" TokenScanResponseFeaturesFeatureIDHighBuyFee TokenScanResponseFeaturesFeatureID = "HIGH_BUY_FEE" TokenScanResponseFeaturesFeatureIDHighSellFee TokenScanResponseFeaturesFeatureID = "HIGH_SELL_FEE" TokenScanResponseFeaturesFeatureIDIsMintable TokenScanResponseFeaturesFeatureID = "IS_MINTABLE" TokenScanResponseFeaturesFeatureIDModifiableTaxes TokenScanResponseFeaturesFeatureID = "MODIFIABLE_TAXES" TokenScanResponseFeaturesFeatureIDCanBlacklist TokenScanResponseFeaturesFeatureID = "CAN_BLACKLIST" TokenScanResponseFeaturesFeatureIDCanWhitelist TokenScanResponseFeaturesFeatureID = "CAN_WHITELIST" TokenScanResponseFeaturesFeatureIDHasTradingCooldown TokenScanResponseFeaturesFeatureID = "HAS_TRADING_COOLDOWN" TokenScanResponseFeaturesFeatureIDExternalFunctions TokenScanResponseFeaturesFeatureID = "EXTERNAL_FUNCTIONS" TokenScanResponseFeaturesFeatureIDHiddenOwner TokenScanResponseFeaturesFeatureID = "HIDDEN_OWNER" TokenScanResponseFeaturesFeatureIDTransferPauseable TokenScanResponseFeaturesFeatureID = "TRANSFER_PAUSEABLE" TokenScanResponseFeaturesFeatureIDOwnershipRenounced TokenScanResponseFeaturesFeatureID = "OWNERSHIP_RENOUNCED" TokenScanResponseFeaturesFeatureIDProxyContract TokenScanResponseFeaturesFeatureID = "PROXY_CONTRACT" )
func (TokenScanResponseFeaturesFeatureID) IsKnown ¶ added in v0.22.1
func (r TokenScanResponseFeaturesFeatureID) IsKnown() bool
type TokenScanResponseFeaturesType ¶ added in v0.22.1
type TokenScanResponseFeaturesType string
An enumeration.
const ( TokenScanResponseFeaturesTypeBenign TokenScanResponseFeaturesType = "Benign" TokenScanResponseFeaturesTypeInfo TokenScanResponseFeaturesType = "Info" TokenScanResponseFeaturesTypeWarning TokenScanResponseFeaturesType = "Warning" TokenScanResponseFeaturesTypeMalicious TokenScanResponseFeaturesType = "Malicious" )
func (TokenScanResponseFeaturesType) IsKnown ¶ added in v0.22.1
func (r TokenScanResponseFeaturesType) IsKnown() bool
type TokenScanResponseFees ¶ added in v0.22.1
type TokenScanResponseFees struct { // Buy fee of the token Buy float64 `json:"buy"` // Sell fee of the token Sell float64 `json:"sell"` // Transfer fee of the token Transfer float64 `json:"transfer"` JSON tokenScanResponseFeesJSON `json:"-"` }
Fees associated with the token
func (*TokenScanResponseFees) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseFees) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseFinancialStats ¶ added in v0.22.1
type TokenScanResponseFinancialStats struct { BurnedLiquidityPercentage float64 `json:"burned_liquidity_percentage"` HoldersCount int64 `json:"holders_count"` LockedLiquidityPercentage float64 `json:"locked_liquidity_percentage"` TopHolders []TokenScanResponseFinancialStatsTopHolder `json:"top_holders"` UsdPricePerUnit float64 `json:"usd_price_per_unit"` JSON tokenScanResponseFinancialStatsJSON `json:"-"` }
financial stats of the token
func (*TokenScanResponseFinancialStats) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseFinancialStats) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseFinancialStatsTopHolder ¶ added in v0.22.1
type TokenScanResponseFinancialStatsTopHolder struct { Address string `json:"address"` HoldingPercentage float64 `json:"holding_percentage"` JSON tokenScanResponseFinancialStatsTopHolderJSON `json:"-"` }
func (*TokenScanResponseFinancialStatsTopHolder) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseFinancialStatsTopHolder) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseMetadata ¶ added in v0.22.1
type TokenScanResponseMetadata struct { // Type of the token Type string `json:"type"` // Name of the token Name string `json:"name"` // Symbol of the token Symbol string `json:"symbol"` // URL of the token image ImageURL string `json:"image_url"` // Description of the token Description string `json:"description"` // Address of the deployer of the fungible token Deployer string `json:"deployer"` MintAuthority string `json:"mint_authority"` UpdateAuthority string `json:"update_authority"` FreezeAuthority string `json:"freeze_authority"` JSON tokenScanResponseMetadataJSON `json:"-"` // contains filtered or unexported fields }
Metadata of the token
func (TokenScanResponseMetadata) AsUnion ¶ added in v0.22.1
func (r TokenScanResponseMetadata) AsUnion() TokenScanResponseMetadataUnion
AsUnion returns a TokenScanResponseMetadataUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TokenScanResponseMetadataSolanaMetadata, TokenScanResponseMetadataBasicMetadataToken.
func (*TokenScanResponseMetadata) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseMetadata) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseMetadataBasicMetadataToken ¶ added in v0.22.1
type TokenScanResponseMetadataBasicMetadataToken struct { // Address of the deployer of the fungible token Deployer string `json:"deployer"` // Description of the token Description string `json:"description"` // URL of the token image ImageURL string `json:"image_url"` // Name of the token Name string `json:"name"` // Symbol of the token Symbol string `json:"symbol"` // Type of the token Type string `json:"type"` JSON tokenScanResponseMetadataBasicMetadataTokenJSON `json:"-"` }
func (*TokenScanResponseMetadataBasicMetadataToken) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseMetadataBasicMetadataToken) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseMetadataSolanaMetadata ¶ added in v0.22.1
type TokenScanResponseMetadataSolanaMetadata struct { // Address of the deployer of the fungible token Deployer string `json:"deployer"` // Description of the token Description string `json:"description"` FreezeAuthority string `json:"freeze_authority"` // URL of the token image ImageURL string `json:"image_url"` MintAuthority string `json:"mint_authority"` // Name of the token Name string `json:"name"` // Symbol of the token Symbol string `json:"symbol"` // Type of the token Type string `json:"type"` UpdateAuthority string `json:"update_authority"` JSON tokenScanResponseMetadataSolanaMetadataJSON `json:"-"` }
func (*TokenScanResponseMetadataSolanaMetadata) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseMetadataSolanaMetadata) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseMetadataUnion ¶ added in v0.22.1
type TokenScanResponseMetadataUnion interface {
// contains filtered or unexported methods
}
Metadata of the token
Union satisfied by TokenScanResponseMetadataSolanaMetadata or TokenScanResponseMetadataBasicMetadataToken.
type TokenScanResponseResultType ¶ added in v0.7.6
type TokenScanResponseResultType string
An enumeration.
const ( TokenScanResponseResultTypeBenign TokenScanResponseResultType = "Benign" TokenScanResponseResultTypeWarning TokenScanResponseResultType = "Warning" TokenScanResponseResultTypeMalicious TokenScanResponseResultType = "Malicious" TokenScanResponseResultTypeSpam TokenScanResponseResultType = "Spam" )
func (TokenScanResponseResultType) IsKnown ¶ added in v0.7.6
func (r TokenScanResponseResultType) IsKnown() bool
type TokenScanResponseTradingLimits ¶ added in v0.22.1
type TokenScanResponseTradingLimits struct { MaxBuy TokenScanResponseTradingLimitsMaxBuy `json:"max_buy"` MaxHolding TokenScanResponseTradingLimitsMaxHolding `json:"max_holding"` MaxSell TokenScanResponseTradingLimitsMaxSell `json:"max_sell"` SellLimitPerBlock TokenScanResponseTradingLimitsSellLimitPerBlock `json:"sell_limit_per_block"` JSON tokenScanResponseTradingLimitsJSON `json:"-"` }
Trading limits of the token
func (*TokenScanResponseTradingLimits) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseTradingLimits) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseTradingLimitsMaxBuy ¶ added in v0.22.1
type TokenScanResponseTradingLimitsMaxBuy struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenScanResponseTradingLimitsMaxBuyJSON `json:"-"` }
func (*TokenScanResponseTradingLimitsMaxBuy) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseTradingLimitsMaxBuy) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseTradingLimitsMaxHolding ¶ added in v0.22.1
type TokenScanResponseTradingLimitsMaxHolding struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenScanResponseTradingLimitsMaxHoldingJSON `json:"-"` }
func (*TokenScanResponseTradingLimitsMaxHolding) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseTradingLimitsMaxHolding) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseTradingLimitsMaxSell ¶ added in v0.22.1
type TokenScanResponseTradingLimitsMaxSell struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenScanResponseTradingLimitsMaxSellJSON `json:"-"` }
func (*TokenScanResponseTradingLimitsMaxSell) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseTradingLimitsMaxSell) UnmarshalJSON(data []byte) (err error)
type TokenScanResponseTradingLimitsSellLimitPerBlock ¶ added in v0.22.1
type TokenScanResponseTradingLimitsSellLimitPerBlock struct { Amount float64 `json:"amount"` AmountWei string `json:"amount_wei"` JSON tokenScanResponseTradingLimitsSellLimitPerBlockJSON `json:"-"` }
func (*TokenScanResponseTradingLimitsSellLimitPerBlock) UnmarshalJSON ¶ added in v0.22.1
func (r *TokenScanResponseTradingLimitsSellLimitPerBlock) UnmarshalJSON(data []byte) (err error)
type TokenScanSupportedChain ¶ added in v0.7.6
type TokenScanSupportedChain string
The chain name
const ( TokenScanSupportedChainArbitrum TokenScanSupportedChain = "arbitrum" TokenScanSupportedChainAvalanche TokenScanSupportedChain = "avalanche" TokenScanSupportedChainBase TokenScanSupportedChain = "base" TokenScanSupportedChainBsc TokenScanSupportedChain = "bsc" TokenScanSupportedChainEthereum TokenScanSupportedChain = "ethereum" TokenScanSupportedChainOptimism TokenScanSupportedChain = "optimism" TokenScanSupportedChainPolygon TokenScanSupportedChain = "polygon" TokenScanSupportedChainZora TokenScanSupportedChain = "zora" TokenScanSupportedChainSolana TokenScanSupportedChain = "solana" TokenScanSupportedChainStarknet TokenScanSupportedChain = "starknet" TokenScanSupportedChainStellar TokenScanSupportedChain = "stellar" TokenScanSupportedChainLinea TokenScanSupportedChain = "linea" TokenScanSupportedChainBlast TokenScanSupportedChain = "blast" TokenScanSupportedChainZksync TokenScanSupportedChain = "zksync" TokenScanSupportedChainScroll TokenScanSupportedChain = "scroll" TokenScanSupportedChainDegen TokenScanSupportedChain = "degen" )
func (TokenScanSupportedChain) IsKnown ¶ added in v0.7.6
func (r TokenScanSupportedChain) IsKnown() bool
type TokenService ¶ added in v0.7.6
type TokenService struct {
Options []option.RequestOption
}
TokenService 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 NewTokenService method instead.
func NewTokenService ¶ added in v0.7.6
func NewTokenService(opts ...option.RequestOption) (r *TokenService)
NewTokenService 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 (*TokenService) Report ¶ added in v0.15.0
func (r *TokenService) Report(ctx context.Context, body TokenReportParams, opts ...option.RequestOption) (res *TokenReportResponse, err error)
Report for misclassification of a token.
func (*TokenService) Scan ¶ added in v0.7.6
func (r *TokenService) Scan(ctx context.Context, body TokenScanParams, opts ...option.RequestOption) (res *TokenScanResponse, err error)
Gets a token address and scan the token to identify any indication of malicious behaviour
type TotalUsdDiffSchema ¶ added in v0.12.0
type TotalUsdDiffSchema struct { // Total incoming USD transfers In float64 `json:"in,required"` // Total outgoing USD transfers Out float64 `json:"out,required"` // Total USD transfers Total float64 `json:"total,required"` JSON totalUsdDiffSchemaJSON `json:"-"` }
func (*TotalUsdDiffSchema) UnmarshalJSON ¶ added in v0.12.0
func (r *TotalUsdDiffSchema) UnmarshalJSON(data []byte) (err error)
type TransactionErrorDetails ¶ added in v0.22.1
type TransactionErrorDetails struct { // Advanced message of the error Message string `json:"message,required"` // Index of the transaction in the bulk TransactionIndex int64 `json:"transaction_index,required"` Type string `json:"type"` JSON transactionErrorDetailsJSON `json:"-"` }
func (*TransactionErrorDetails) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionErrorDetails) UnmarshalJSON(data []byte) (err error)
type TransactionScanFeature ¶
type TransactionScanFeature struct { // Textual description Description string `json:"description,required"` // Feature name FeatureID string `json:"feature_id,required"` // An enumeration. Type TransactionScanFeatureType `json:"type,required"` // Address the feature refers to Address string `json:"address"` JSON transactionScanFeatureJSON `json:"-"` }
func (*TransactionScanFeature) UnmarshalJSON ¶
func (r *TransactionScanFeature) UnmarshalJSON(data []byte) (err error)
type TransactionScanFeatureType ¶
type TransactionScanFeatureType string
An enumeration.
const ( TransactionScanFeatureTypeMalicious TransactionScanFeatureType = "Malicious" TransactionScanFeatureTypeWarning TransactionScanFeatureType = "Warning" TransactionScanFeatureTypeBenign TransactionScanFeatureType = "Benign" TransactionScanFeatureTypeInfo TransactionScanFeatureType = "Info" )
func (TransactionScanFeatureType) IsKnown ¶
func (r TransactionScanFeatureType) IsKnown() bool
type TransactionScanResponse ¶
type TransactionScanResponse struct { Block string `json:"block,required"` Chain string `json:"chain,required"` AccountAddress string `json:"account_address"` Events []TransactionScanResponseEvent `json:"events"` Features interface{} `json:"features"` GasEstimation TransactionScanResponseGasEstimation `json:"gas_estimation"` Simulation TransactionScanResponseSimulation `json:"simulation"` Validation TransactionScanResponseValidation `json:"validation"` JSON transactionScanResponseJSON `json:"-"` }
func (*TransactionScanResponse) UnmarshalJSON ¶
func (r *TransactionScanResponse) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseEvent ¶ added in v0.7.5
type TransactionScanResponseEvent struct { Data string `json:"data,required"` EmitterAddress string `json:"emitter_address,required"` Topics []string `json:"topics,required"` EmitterName string `json:"emitter_name"` Name string `json:"name"` Params []TransactionScanResponseEventsParam `json:"params"` JSON transactionScanResponseEventJSON `json:"-"` }
func (*TransactionScanResponseEvent) UnmarshalJSON ¶ added in v0.7.5
func (r *TransactionScanResponseEvent) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseEventsParam ¶ added in v0.7.5
type TransactionScanResponseEventsParam struct { Type string `json:"type,required"` Value TransactionScanResponseEventsParamsValueUnion `json:"value,required"` InternalType string `json:"internalType"` Name string `json:"name"` JSON transactionScanResponseEventsParamJSON `json:"-"` }
func (*TransactionScanResponseEventsParam) UnmarshalJSON ¶ added in v0.7.5
func (r *TransactionScanResponseEventsParam) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseEventsParamsValueArray ¶ added in v0.7.5
type TransactionScanResponseEventsParamsValueArray []interface{}
func (TransactionScanResponseEventsParamsValueArray) ImplementsTransactionScanResponseEventsParamsValueUnion ¶ added in v0.7.5
func (r TransactionScanResponseEventsParamsValueArray) ImplementsTransactionScanResponseEventsParamsValueUnion()
type TransactionScanResponseEventsParamsValueUnion ¶ added in v0.7.5
type TransactionScanResponseEventsParamsValueUnion interface {
ImplementsTransactionScanResponseEventsParamsValueUnion()
}
Union satisfied by shared.UnionString, [TransactionScanResponseEventsParamsValueUnknown] or TransactionScanResponseEventsParamsValueArray.
type TransactionScanResponseGasEstimation ¶ added in v0.7.5
type TransactionScanResponseGasEstimation struct { Status TransactionScanResponseGasEstimationStatus `json:"status,required"` Used int64 `json:"used"` Estimate int64 `json:"estimate"` Error string `json:"error"` JSON transactionScanResponseGasEstimationJSON `json:"-"` // contains filtered or unexported fields }
func (TransactionScanResponseGasEstimation) AsUnion ¶ added in v0.7.5
func (r TransactionScanResponseGasEstimation) AsUnion() TransactionScanResponseGasEstimationUnion
AsUnion returns a TransactionScanResponseGasEstimationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TransactionScanResponseGasEstimationTransactionScanGasEstimation, TransactionScanResponseGasEstimationTransactionScanGasEstimationError.
func (*TransactionScanResponseGasEstimation) UnmarshalJSON ¶ added in v0.7.5
func (r *TransactionScanResponseGasEstimation) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseGasEstimationStatus ¶ added in v0.8.0
type TransactionScanResponseGasEstimationStatus string
const ( TransactionScanResponseGasEstimationStatusSuccess TransactionScanResponseGasEstimationStatus = "Success" TransactionScanResponseGasEstimationStatusError TransactionScanResponseGasEstimationStatus = "Error" )
func (TransactionScanResponseGasEstimationStatus) IsKnown ¶ added in v0.8.0
func (r TransactionScanResponseGasEstimationStatus) IsKnown() bool
type TransactionScanResponseGasEstimationTransactionScanGasEstimation ¶ added in v0.7.5
type TransactionScanResponseGasEstimationTransactionScanGasEstimation struct { Estimate int64 `json:"estimate,required"` Status TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus `json:"status,required"` Used int64 `json:"used,required"` JSON transactionScanResponseGasEstimationTransactionScanGasEstimationJSON `json:"-"` }
func (*TransactionScanResponseGasEstimationTransactionScanGasEstimation) UnmarshalJSON ¶ added in v0.7.5
func (r *TransactionScanResponseGasEstimationTransactionScanGasEstimation) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseGasEstimationTransactionScanGasEstimationError ¶ added in v0.7.5
type TransactionScanResponseGasEstimationTransactionScanGasEstimationError struct { Error string `json:"error,required"` Status TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus `json:"status,required"` JSON transactionScanResponseGasEstimationTransactionScanGasEstimationErrorJSON `json:"-"` }
func (*TransactionScanResponseGasEstimationTransactionScanGasEstimationError) UnmarshalJSON ¶ added in v0.7.5
func (r *TransactionScanResponseGasEstimationTransactionScanGasEstimationError) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus ¶ added in v0.8.0
type TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus string
const (
TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatusError TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus = "Error"
)
func (TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus) IsKnown ¶ added in v0.8.0
func (r TransactionScanResponseGasEstimationTransactionScanGasEstimationErrorStatus) IsKnown() bool
type TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus ¶ added in v0.8.0
type TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus string
const (
TransactionScanResponseGasEstimationTransactionScanGasEstimationStatusSuccess TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus = "Success"
)
func (TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus) IsKnown ¶ added in v0.8.0
func (r TransactionScanResponseGasEstimationTransactionScanGasEstimationStatus) IsKnown() bool
type TransactionScanResponseGasEstimationUnion ¶ added in v0.7.5
type TransactionScanResponseGasEstimationUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionScanResponseGasEstimationTransactionScanGasEstimation or TransactionScanResponseGasEstimationTransactionScanGasEstimationError.
type TransactionScanResponseSimulation ¶
type TransactionScanResponseSimulation struct { // A string indicating if the simulation was successful or not. Status TransactionScanResponseSimulationStatus `json:"status,required"` // This field can have the runtime type of [map[string][]AssetDiff]. AssetsDiffs interface{} `json:"assets_diffs,required"` // This field can have the runtime type of [map[string]UsdDiff]. TotalUsdDiff interface{} `json:"total_usd_diff,required"` // This field can have the runtime type of [map[string][]AddressAssetExposure]. Exposures interface{} `json:"exposures,required"` // This field can have the runtime type of [map[string]map[string]string]. TotalUsdExposure interface{} `json:"total_usd_exposure,required"` // This field can have the runtime type of // [map[string]TransactionSimulationAddressDetail]. AddressDetails interface{} `json:"address_details,required"` // This field can have the runtime type of [TransactionSimulationAccountSummary]. AccountSummary interface{} `json:"account_summary,required"` // This field can have the runtime type of [TransactionSimulationParams]. Params interface{} `json:"params,required"` // This field can have the runtime type of // [map[string][]TransactionSimulationContractManagement]. ContractManagement interface{} `json:"contract_management,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
AsUnion returns a TransactionScanResponseSimulationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TransactionSimulation, TransactionSimulationError.
func (*TransactionScanResponseSimulation) UnmarshalJSON ¶
func (r *TransactionScanResponseSimulation) UnmarshalJSON(data []byte) (err error)
type TransactionScanResponseSimulationStatus ¶ added in v0.8.0
type TransactionScanResponseSimulationStatus string
A string indicating if the simulation was successful or not.
const ( TransactionScanResponseSimulationStatusSuccess TransactionScanResponseSimulationStatus = "Success" TransactionScanResponseSimulationStatusError TransactionScanResponseSimulationStatus = "Error" )
func (TransactionScanResponseSimulationStatus) IsKnown ¶ added in v0.8.0
func (r TransactionScanResponseSimulationStatus) IsKnown() bool
type TransactionScanResponseSimulationUnion ¶
type TransactionScanResponseSimulationUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionSimulation or TransactionSimulationError.
type TransactionScanResponseValidation ¶
type TransactionScanResponseValidation struct { // A string indicating if the simulation was successful or not. Status TransactionScanResponseValidationStatus `json:"status,required"` // 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"` // This field can have the runtime type of [[]TransactionScanFeature]. 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
AsUnion returns a TransactionScanResponseValidationUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TransactionValidation, TransactionValidationError.
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 TransactionScanResponseValidationStatus ¶ added in v0.9.1
type TransactionScanResponseValidationStatus string
A string indicating if the simulation was successful or not.
const (
TransactionScanResponseValidationStatusSuccess TransactionScanResponseValidationStatus = "Success"
)
func (TransactionScanResponseValidationStatus) IsKnown ¶ added in v0.9.1
func (r TransactionScanResponseValidationStatus) IsKnown() bool
type TransactionScanResponseValidationUnion ¶
type TransactionScanResponseValidationUnion interface {
// contains filtered or unexported methods
}
Union satisfied by TransactionValidation or TransactionValidationError.
type TransactionScanSupportedChain ¶ added in v0.7.5
type TransactionScanSupportedChain string
The chain name
const ( TransactionScanSupportedChainArbitrum TransactionScanSupportedChain = "arbitrum" TransactionScanSupportedChainAvalanche TransactionScanSupportedChain = "avalanche" TransactionScanSupportedChainBase TransactionScanSupportedChain = "base" TransactionScanSupportedChainBaseSepolia TransactionScanSupportedChain = "base-sepolia" TransactionScanSupportedChainBsc TransactionScanSupportedChain = "bsc" TransactionScanSupportedChainEthereum TransactionScanSupportedChain = "ethereum" TransactionScanSupportedChainOptimism TransactionScanSupportedChain = "optimism" TransactionScanSupportedChainPolygon TransactionScanSupportedChain = "polygon" TransactionScanSupportedChainZksync TransactionScanSupportedChain = "zksync" TransactionScanSupportedChainZksyncSepolia TransactionScanSupportedChain = "zksync-sepolia" TransactionScanSupportedChainZora TransactionScanSupportedChain = "zora" TransactionScanSupportedChainLinea TransactionScanSupportedChain = "linea" TransactionScanSupportedChainBlast TransactionScanSupportedChain = "blast" TransactionScanSupportedChainScroll TransactionScanSupportedChain = "scroll" TransactionScanSupportedChainEthereumSepolia TransactionScanSupportedChain = "ethereum-sepolia" TransactionScanSupportedChainDegen TransactionScanSupportedChain = "degen" TransactionScanSupportedChainAvalancheFuji TransactionScanSupportedChain = "avalanche-fuji" TransactionScanSupportedChainImmutableZkevm TransactionScanSupportedChain = "immutable-zkevm" TransactionScanSupportedChainGnosis TransactionScanSupportedChain = "gnosis" TransactionScanSupportedChainWorldchain TransactionScanSupportedChain = "worldchain" )
func (TransactionScanSupportedChain) IsKnown ¶ added in v0.7.5
func (r TransactionScanSupportedChain) IsKnown() bool
type TransactionSimulation ¶
type TransactionSimulation 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 TransactionSimulationAccountSummary `json:"account_summary,required"` // a dictionary including additional information about each relevant address in the // transaction. AddressDetails map[string]TransactionSimulationAddressDetail `json:"address_details,required"` // dictionary describes the assets differences as a result of this transaction for // every involved address AssetsDiffs map[string][]AssetDiff `json:"assets_diffs,required"` // 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][]AddressAssetExposure `json:"exposures,required"` // A string indicating if the simulation was successful or not. Status TransactionSimulationStatus `json:"status,required"` // dictionary represents the usd value each address gained / lost during this // transaction TotalUsdDiff map[string]UsdDiff `json:"total_usd_diff,required"` // a dictionary representing the usd value each address is exposed to, split by // spenders TotalUsdExposure map[string]map[string]string `json:"total_usd_exposure,required"` // Describes the state differences as a result of this transaction for every // involved address ContractManagement map[string][]TransactionSimulationContractManagement `json:"contract_management"` // The parameters of the transaction that was simulated. Params TransactionSimulationParams `json:"params"` JSON transactionSimulationJSON `json:"-"` }
func (*TransactionSimulation) UnmarshalJSON ¶
func (r *TransactionSimulation) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummary ¶
type TransactionSimulationAccountSummary struct { // All assets diffs related to the account address AssetsDiffs []TransactionSimulationAccountSummaryAssetsDiff `json:"assets_diffs,required"` // All assets exposures related to the account address Exposures []AddressAssetExposure `json:"exposures,required"` // Total usd diff related to the account address TotalUsdDiff UsdDiff `json:"total_usd_diff,required"` // Total usd exposure related to the account address TotalUsdExposure map[string]string `json:"total_usd_exposure,required"` JSON transactionSimulationAccountSummaryJSON `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 (*TransactionSimulationAccountSummary) UnmarshalJSON ¶
func (r *TransactionSimulationAccountSummary) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiff ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiff struct { // description of the asset for the current diff Asset TransactionSimulationAccountSummaryAssetsDiffsAsset `json:"asset,required"` // amount of the asset that was transferred to the address in this transaction In []TransactionSimulationAccountSummaryAssetsDiffsIn `json:"in,required"` // amount of the asset that was transferred from the address in this transaction Out []TransactionSimulationAccountSummaryAssetsDiffsOut `json:"out,required"` // shows the balance before making the transaction and after BalanceChanges TransactionSimulationAccountSummaryAssetsDiffsBalanceChanges `json:"balance_changes"` JSON transactionSimulationAccountSummaryAssetsDiffJSON `json:"-"` }
func (*TransactionSimulationAccountSummaryAssetsDiff) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiff) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsAsset ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsAsset 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 TransactionSimulationAccountSummaryAssetsDiffsAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` ChainName string `json:"chain_name"` ChainID int64 `json:"chain_id"` JSON transactionSimulationAccountSummaryAssetsDiffsAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (TransactionSimulationAccountSummaryAssetsDiffsAsset) AsUnion ¶ added in v0.14.0
func (r TransactionSimulationAccountSummaryAssetsDiffsAsset) AsUnion() TransactionSimulationAccountSummaryAssetsDiffsAssetUnion
AsUnion returns a TransactionSimulationAccountSummaryAssetsDiffsAssetUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc20TokenDetails, Erc1155TokenDetails, Erc721TokenDetails, NonercTokenDetails, NativeAssetDetails.
func (*TransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsAssetType ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsAssetType string
asset type.
const ( TransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc20 TransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC20" TransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc1155 TransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC1155" TransactionSimulationAccountSummaryAssetsDiffsAssetTypeErc721 TransactionSimulationAccountSummaryAssetsDiffsAssetType = "ERC721" TransactionSimulationAccountSummaryAssetsDiffsAssetTypeNonerc TransactionSimulationAccountSummaryAssetsDiffsAssetType = "NONERC" TransactionSimulationAccountSummaryAssetsDiffsAssetTypeNative TransactionSimulationAccountSummaryAssetsDiffsAssetType = "NATIVE" )
func (TransactionSimulationAccountSummaryAssetsDiffsAssetType) IsKnown ¶ added in v0.14.0
func (r TransactionSimulationAccountSummaryAssetsDiffsAssetType) IsKnown() bool
type TransactionSimulationAccountSummaryAssetsDiffsAssetUnion ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by Erc20TokenDetails, Erc1155TokenDetails, Erc721TokenDetails, NonercTokenDetails or NativeAssetDetails.
type TransactionSimulationAccountSummaryAssetsDiffsBalanceChanges ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsBalanceChanges struct { // balance of the account after making the transaction After TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfter `json:"after,required"` // balance of the account before making the transaction Before TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesBefore `json:"before,required"` JSON transactionSimulationAccountSummaryAssetsDiffsBalanceChangesJSON `json:"-"` }
shows the balance before making the transaction and after
func (*TransactionSimulationAccountSummaryAssetsDiffsBalanceChanges) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiffsBalanceChanges) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfter ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfter struct { // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value,required"` // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value string `json:"value"` JSON transactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfterJSON `json:"-"` }
balance of the account after making the transaction
func (*TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfter) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesAfter) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesBefore ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesBefore struct { // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value,required"` // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value string `json:"value"` JSON transactionSimulationAccountSummaryAssetsDiffsBalanceChangesBeforeJSON `json:"-"` }
balance of the account before making the transaction
func (*TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesBefore) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiffsBalanceChangesBefore) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsIn ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsIn struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON transactionSimulationAccountSummaryAssetsDiffsInJSON `json:"-"` // contains filtered or unexported fields }
func (TransactionSimulationAccountSummaryAssetsDiffsIn) AsUnion ¶ added in v0.14.0
func (r TransactionSimulationAccountSummaryAssetsDiffsIn) AsUnion() TransactionSimulationAccountSummaryAssetsDiffsInUnion
AsUnion returns a TransactionSimulationAccountSummaryAssetsDiffsInUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*TransactionSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsInUnion ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type TransactionSimulationAccountSummaryAssetsDiffsOut ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsOut struct { // usd equal of the asset that was transferred from this address UsdPrice string `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID string `json:"token_id"` // value before divided by decimal, that was transferred from this address Value string `json:"value"` // url of the token logo LogoURL string `json:"logo_url"` // value before divided by decimal, that was transferred from this address RawValue string `json:"raw_value"` JSON transactionSimulationAccountSummaryAssetsDiffsOutJSON `json:"-"` // contains filtered or unexported fields }
func (TransactionSimulationAccountSummaryAssetsDiffsOut) AsUnion ¶ added in v0.14.0
func (r TransactionSimulationAccountSummaryAssetsDiffsOut) AsUnion() TransactionSimulationAccountSummaryAssetsDiffsOutUnion
AsUnion returns a TransactionSimulationAccountSummaryAssetsDiffsOutUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are Erc1155Diff, Erc721Diff, Erc20Diff, NativeDiff.
func (*TransactionSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON ¶ added in v0.14.0
func (r *TransactionSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationAccountSummaryAssetsDiffsOutUnion ¶ added in v0.14.0
type TransactionSimulationAccountSummaryAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by Erc1155Diff, Erc721Diff, Erc20Diff or NativeDiff.
type TransactionSimulationAddressDetail ¶
type TransactionSimulationAddressDetail 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 transactionSimulationAddressDetailJSON `json:"-"` }
func (*TransactionSimulationAddressDetail) UnmarshalJSON ¶
func (r *TransactionSimulationAddressDetail) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagement ¶ added in v0.22.1
type TransactionSimulationContractManagement struct { // The state after the transaction After TransactionSimulationContractManagementAfter `json:"after,required"` // The state before the transaction Before TransactionSimulationContractManagementBefore `json:"before,required"` // An enumeration. Type TransactionSimulationContractManagementType `json:"type,required"` JSON transactionSimulationContractManagementJSON `json:"-"` }
func (*TransactionSimulationContractManagement) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagement) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementAfter ¶ added in v0.22.1
type TransactionSimulationContractManagementAfter struct { Address string `json:"address"` // This field can have the runtime type of [[]string]. Owners interface{} `json:"owners,required"` JSON transactionSimulationContractManagementAfterJSON `json:"-"` // contains filtered or unexported fields }
The state after the transaction
func (TransactionSimulationContractManagementAfter) AsUnion ¶ added in v0.22.1
func (r TransactionSimulationContractManagementAfter) AsUnion() TransactionSimulationContractManagementAfterUnion
AsUnion returns a TransactionSimulationContractManagementAfterUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TransactionSimulationContractManagementAfterAddressChange, TransactionSimulationContractManagementAfterOwnershipChange.
func (*TransactionSimulationContractManagementAfter) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagementAfter) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementAfterAddressChange ¶ added in v0.22.1
type TransactionSimulationContractManagementAfterAddressChange struct { Address string `json:"address,required"` JSON transactionSimulationContractManagementAfterAddressChangeJSON `json:"-"` }
func (*TransactionSimulationContractManagementAfterAddressChange) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagementAfterAddressChange) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementAfterOwnershipChange ¶ added in v0.22.1
type TransactionSimulationContractManagementAfterOwnershipChange struct { Owners []string `json:"owners,required"` JSON transactionSimulationContractManagementAfterOwnershipChangeJSON `json:"-"` }
func (*TransactionSimulationContractManagementAfterOwnershipChange) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagementAfterOwnershipChange) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementAfterUnion ¶ added in v0.22.1
type TransactionSimulationContractManagementAfterUnion interface {
// contains filtered or unexported methods
}
The state after the transaction
Union satisfied by TransactionSimulationContractManagementAfterAddressChange or TransactionSimulationContractManagementAfterOwnershipChange.
type TransactionSimulationContractManagementBefore ¶ added in v0.22.1
type TransactionSimulationContractManagementBefore struct { Address string `json:"address"` // This field can have the runtime type of [[]string]. Owners interface{} `json:"owners,required"` JSON transactionSimulationContractManagementBeforeJSON `json:"-"` // contains filtered or unexported fields }
The state before the transaction
func (TransactionSimulationContractManagementBefore) AsUnion ¶ added in v0.22.1
func (r TransactionSimulationContractManagementBefore) AsUnion() TransactionSimulationContractManagementBeforeUnion
AsUnion returns a TransactionSimulationContractManagementBeforeUnion interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are TransactionSimulationContractManagementBeforeAddressChange, TransactionSimulationContractManagementBeforeOwnershipChange.
func (*TransactionSimulationContractManagementBefore) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagementBefore) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementBeforeAddressChange ¶ added in v0.22.1
type TransactionSimulationContractManagementBeforeAddressChange struct { Address string `json:"address,required"` JSON transactionSimulationContractManagementBeforeAddressChangeJSON `json:"-"` }
func (*TransactionSimulationContractManagementBeforeAddressChange) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagementBeforeAddressChange) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementBeforeOwnershipChange ¶ added in v0.22.1
type TransactionSimulationContractManagementBeforeOwnershipChange struct { Owners []string `json:"owners,required"` JSON transactionSimulationContractManagementBeforeOwnershipChangeJSON `json:"-"` }
func (*TransactionSimulationContractManagementBeforeOwnershipChange) UnmarshalJSON ¶ added in v0.22.1
func (r *TransactionSimulationContractManagementBeforeOwnershipChange) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationContractManagementBeforeUnion ¶ added in v0.22.1
type TransactionSimulationContractManagementBeforeUnion interface {
// contains filtered or unexported methods
}
The state before the transaction
Union satisfied by TransactionSimulationContractManagementBeforeAddressChange or TransactionSimulationContractManagementBeforeOwnershipChange.
type TransactionSimulationContractManagementType ¶ added in v0.22.1
type TransactionSimulationContractManagementType string
An enumeration.
const ( TransactionSimulationContractManagementTypeProxyUpgrade TransactionSimulationContractManagementType = "PROXY_UPGRADE" TransactionSimulationContractManagementTypeOwnershipChange TransactionSimulationContractManagementType = "OWNERSHIP_CHANGE" )
func (TransactionSimulationContractManagementType) IsKnown ¶ added in v0.22.1
func (r TransactionSimulationContractManagementType) IsKnown() bool
type TransactionSimulationError ¶ added in v0.7.3
type TransactionSimulationError struct { // An error message if the simulation failed. Error string `json:"error,required"` // A string indicating if the simulation was successful or not. Status TransactionSimulationErrorStatus `json:"status,required"` JSON transactionSimulationErrorJSON `json:"-"` }
func (*TransactionSimulationError) UnmarshalJSON ¶ added in v0.7.3
func (r *TransactionSimulationError) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationErrorStatus ¶ added in v0.8.0
type TransactionSimulationErrorStatus string
A string indicating if the simulation was successful or not.
const (
TransactionSimulationErrorStatusError TransactionSimulationErrorStatus = "Error"
)
func (TransactionSimulationErrorStatus) IsKnown ¶ added in v0.8.0
func (r TransactionSimulationErrorStatus) IsKnown() bool
type TransactionSimulationParams ¶ added in v0.19.0
type TransactionSimulationParams struct { // The block tag to be sent. BlockTag string `json:"block_tag"` // The calldata to be sent. Calldata TransactionSimulationParamsCalldata `json:"calldata"` // The chain to be sent. Chain string `json:"chain"` // The data to be sent. Data string `json:"data"` // The address the transaction is sent from. From string `json:"from"` // The gas to be sent. Gas string `json:"gas"` // The gas price to be sent. GasPrice string `json:"gas_price"` // The address the transaction is directed to. To string `json:"to"` // The value to be sent. Value string `json:"value"` JSON transactionSimulationParamsJSON `json:"-"` }
The parameters of the transaction that was simulated.
func (*TransactionSimulationParams) UnmarshalJSON ¶ added in v0.19.0
func (r *TransactionSimulationParams) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationParamsCalldata ¶ added in v0.19.0
type TransactionSimulationParamsCalldata struct { // The function selector of the function called in the transaction FunctionSelector string `json:"function_selector,required"` // The function declaration of the function called in the transaction FunctionDeclaration string `json:"function_declaration"` // The function signature of the function called in the transaction FunctionSignature string `json:"function_signature"` JSON transactionSimulationParamsCalldataJSON `json:"-"` }
The calldata to be sent.
func (*TransactionSimulationParamsCalldata) UnmarshalJSON ¶ added in v0.19.0
func (r *TransactionSimulationParamsCalldata) UnmarshalJSON(data []byte) (err error)
type TransactionSimulationStatus ¶ added in v0.8.0
type TransactionSimulationStatus string
A string indicating if the simulation was successful or not.
const (
TransactionSimulationStatusSuccess TransactionSimulationStatus = "Success"
)
func (TransactionSimulationStatus) IsKnown ¶ added in v0.8.0
func (r TransactionSimulationStatus) IsKnown() bool
type TransactionValidation ¶
type TransactionValidation struct { // A list of features about this transaction explaining the validation. Features []TransactionScanFeature `json:"features,required"` // An enumeration. ResultType TransactionValidationResultType `json:"result_type,required"` // A string indicating if the simulation was successful or not. Status TransactionValidationStatus `json:"status,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 transactionValidationJSON `json:"-"` }
func (*TransactionValidation) UnmarshalJSON ¶
func (r *TransactionValidation) UnmarshalJSON(data []byte) (err error)
type TransactionValidationError ¶ added in v0.7.3
type TransactionValidationError struct { // A textual classification that can be presented to the user explaining the // reason. Classification TransactionValidationErrorClassification `json:"classification,required"` // A textual description that can be presented to the user about what this // transaction is doing. Description TransactionValidationErrorDescription `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 []TransactionScanFeature `json:"features,required"` // A textual description about the reasons the transaction was flagged with // result_type. Reason TransactionValidationErrorReason `json:"reason,required"` // A string indicating if the transaction is safe to sign or not. ResultType TransactionValidationErrorResultType `json:"result_type,required"` // A string indicating if the simulation was successful or not. Status TransactionValidationErrorStatus `json:"status,required"` JSON transactionValidationErrorJSON `json:"-"` }
func (*TransactionValidationError) UnmarshalJSON ¶ added in v0.7.3
func (r *TransactionValidationError) UnmarshalJSON(data []byte) (err error)
type TransactionValidationErrorClassification ¶ added in v0.7.3
type TransactionValidationErrorClassification string
A textual classification that can be presented to the user explaining the reason.
const (
TransactionValidationErrorClassificationEmpty TransactionValidationErrorClassification = ""
)
func (TransactionValidationErrorClassification) IsKnown ¶ added in v0.7.3
func (r TransactionValidationErrorClassification) IsKnown() bool
type TransactionValidationErrorDescription ¶ added in v0.7.3
type TransactionValidationErrorDescription string
A textual description that can be presented to the user about what this transaction is doing.
const (
TransactionValidationErrorDescriptionEmpty TransactionValidationErrorDescription = ""
)
func (TransactionValidationErrorDescription) IsKnown ¶ added in v0.7.3
func (r TransactionValidationErrorDescription) IsKnown() bool
type TransactionValidationErrorReason ¶ added in v0.7.3
type TransactionValidationErrorReason string
A textual description about the reasons the transaction was flagged with result_type.
const (
TransactionValidationErrorReasonEmpty TransactionValidationErrorReason = ""
)
func (TransactionValidationErrorReason) IsKnown ¶ added in v0.7.3
func (r TransactionValidationErrorReason) IsKnown() bool
type TransactionValidationErrorResultType ¶ added in v0.7.3
type TransactionValidationErrorResultType string
A string indicating if the transaction is safe to sign or not.
const (
TransactionValidationErrorResultTypeError TransactionValidationErrorResultType = "Error"
)
func (TransactionValidationErrorResultType) IsKnown ¶ added in v0.7.3
func (r TransactionValidationErrorResultType) IsKnown() bool
type TransactionValidationErrorStatus ¶ added in v0.9.1
type TransactionValidationErrorStatus string
A string indicating if the simulation was successful or not.
const (
TransactionValidationErrorStatusSuccess TransactionValidationErrorStatus = "Success"
)
func (TransactionValidationErrorStatus) IsKnown ¶ added in v0.9.1
func (r TransactionValidationErrorStatus) IsKnown() bool
type TransactionValidationResultType ¶
type TransactionValidationResultType string
An enumeration.
const ( TransactionValidationResultTypeBenign TransactionValidationResultType = "Benign" TransactionValidationResultTypeWarning TransactionValidationResultType = "Warning" TransactionValidationResultTypeMalicious TransactionValidationResultType = "Malicious" )
func (TransactionValidationResultType) IsKnown ¶
func (r TransactionValidationResultType) IsKnown() bool
type TransactionValidationStatus ¶ added in v0.9.1
type TransactionValidationStatus string
A string indicating if the simulation was successful or not.
const (
TransactionValidationStatusSuccess TransactionValidationStatus = "Success"
)
func (TransactionValidationStatus) IsKnown ¶ added in v0.9.1
func (r TransactionValidationStatus) IsKnown() bool
type TxScanRequestSchemaMetadataParam ¶ added in v0.12.0
type TxScanRequestSchemaMetadataParam struct { // URL of the dApp that originated the transaction URL param.Field[string] `json:"url"` }
func (TxScanRequestSchemaMetadataParam) MarshalJSON ¶ added in v0.12.0
func (r TxScanRequestSchemaMetadataParam) MarshalJSON() (data []byte, err error)
type TxScanRequestSchemaParam ¶ added in v0.12.0
type TxScanRequestSchemaParam struct { // Encoded public key of the account to simulate the transaction on AccountAddress param.Field[string] `json:"account_address,required"` Metadata param.Field[TxScanRequestSchemaMetadataParam] `json:"metadata,required"` // Transactions to scan Transactions param.Field[[]string] `json:"transactions,required"` // Chain to scan the transaction on Chain param.Field[string] `json:"chain"` // Encoding of the transaction and public keys Encoding param.Field[string] `json:"encoding"` // The RPC method used by dApp to propose the transaction Method param.Field[string] `json:"method"` Options param.Field[[]string] `json:"options"` }
func (TxScanRequestSchemaParam) MarshalJSON ¶ added in v0.12.0
func (r TxScanRequestSchemaParam) MarshalJSON() (data []byte, err error)
Source Files ¶
- aliases.go
- bitcoin.go
- bitcointransaction.go
- client.go
- evm.go
- evmjsonrpc.go
- evmposttransaction.go
- evmposttransactionbulk.go
- evmtransaction.go
- evmtransactionbulk.go
- evmtransactionraw.go
- evmuseroperation.go
- field.go
- site.go
- solana.go
- solanaaddress.go
- solanamessage.go
- starknet.go
- starknettransaction.go
- stellar.go
- stellartransaction.go
- token.go
- tokenbulk.go