managedblockchainquery

package
v1.48.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package managedblockchainquery provides the client and types for making API requests to Amazon Managed Blockchain Query.

Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time period. Additionally, you can get details of a given transaction, such as transaction events, which you can further analyze or use in business logic for your applications.

See https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04 for more information on this service.

See managedblockchainquery package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/managedblockchainquery/

Using the Client

To contact Amazon Managed Blockchain Query with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Managed Blockchain Query client ManagedBlockchainQuery for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/managedblockchainquery/#New

Index

Constants

View Source
const (
	// ErrorTypeValidationException is a ErrorType enum value
	ErrorTypeValidationException = "VALIDATION_EXCEPTION"

	// ErrorTypeResourceNotFoundException is a ErrorType enum value
	ErrorTypeResourceNotFoundException = "RESOURCE_NOT_FOUND_EXCEPTION"
)
View Source
const (
	// QueryNetworkEthereumMainnet is a QueryNetwork enum value
	QueryNetworkEthereumMainnet = "ETHEREUM_MAINNET"

	// QueryNetworkBitcoinMainnet is a QueryNetwork enum value
	QueryNetworkBitcoinMainnet = "BITCOIN_MAINNET"

	// QueryNetworkBitcoinTestnet is a QueryNetwork enum value
	QueryNetworkBitcoinTestnet = "BITCOIN_TESTNET"

	// QueryNetworkEthereumSepoliaTestnet is a QueryNetwork enum value
	QueryNetworkEthereumSepoliaTestnet = "ETHEREUM_SEPOLIA_TESTNET"
)
View Source
const (
	// QueryTokenStandardErc20 is a QueryTokenStandard enum value
	QueryTokenStandardErc20 = "ERC20"

	// QueryTokenStandardErc721 is a QueryTokenStandard enum value
	QueryTokenStandardErc721 = "ERC721"

	// QueryTokenStandardErc1155 is a QueryTokenStandard enum value
	QueryTokenStandardErc1155 = "ERC1155"
)
View Source
const (
	// QueryTransactionEventTypeErc20Transfer is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc20Transfer = "ERC20_TRANSFER"

	// QueryTransactionEventTypeErc20Mint is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc20Mint = "ERC20_MINT"

	// QueryTransactionEventTypeErc20Burn is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc20Burn = "ERC20_BURN"

	// QueryTransactionEventTypeErc20Deposit is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc20Deposit = "ERC20_DEPOSIT"

	// QueryTransactionEventTypeErc20Withdrawal is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc20Withdrawal = "ERC20_WITHDRAWAL"

	// QueryTransactionEventTypeErc721Transfer is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc721Transfer = "ERC721_TRANSFER"

	// QueryTransactionEventTypeErc1155Transfer is a QueryTransactionEventType enum value
	QueryTransactionEventTypeErc1155Transfer = "ERC1155_TRANSFER"

	// QueryTransactionEventTypeBitcoinVin is a QueryTransactionEventType enum value
	QueryTransactionEventTypeBitcoinVin = "BITCOIN_VIN"

	// QueryTransactionEventTypeBitcoinVout is a QueryTransactionEventType enum value
	QueryTransactionEventTypeBitcoinVout = "BITCOIN_VOUT"

	// QueryTransactionEventTypeInternalEthTransfer is a QueryTransactionEventType enum value
	QueryTransactionEventTypeInternalEthTransfer = "INTERNAL_ETH_TRANSFER"

	// QueryTransactionEventTypeEthTransfer is a QueryTransactionEventType enum value
	QueryTransactionEventTypeEthTransfer = "ETH_TRANSFER"
)
View Source
const (
	// QueryTransactionStatusFinal is a QueryTransactionStatus enum value
	QueryTransactionStatusFinal = "FINAL"

	// QueryTransactionStatusFailed is a QueryTransactionStatus enum value
	QueryTransactionStatusFailed = "FAILED"
)
View Source
const (
	// SortOrderAscending is a SortOrder enum value
	SortOrderAscending = "ASCENDING"

	// SortOrderDescending is a SortOrder enum value
	SortOrderDescending = "DESCENDING"
)
View Source
const (
	// ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value
	ValidationExceptionReasonUnknownOperation = "unknownOperation"

	// ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value
	ValidationExceptionReasonCannotParse = "cannotParse"

	// ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
	ValidationExceptionReasonFieldValidationFailed = "fieldValidationFailed"

	// ValidationExceptionReasonOther is a ValidationExceptionReason enum value
	ValidationExceptionReasonOther = "other"
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// The Amazon Web Services account doesn’t have access to this resource.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// The request processing has failed because of an internal error in the service.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The resource was not found.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceQuotaExceededException for service response error code
	// "ServiceQuotaExceededException".
	//
	// The service quota has been exceeded for this resource.
	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// The request or operation couldn't be performed because a service is throttling
	// requests. The most common source of throttling errors is when you create
	// resources that exceed your service limit for this resource type. Request
	// a limit increase or delete unused resources, if possible.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// The resource passed is invalid.
	ErrCodeValidationException = "ValidationException"
)
View Source
const (
	ServiceName = "ManagedBlockchain Query" // Name of service.
	EndpointsID = "managedblockchain-query" // ID to lookup a service endpoint with.
	ServiceID   = "ManagedBlockchain Query" // ServiceID is a unique identifier of a specific service.
)

Service information constants

View Source
const (
	// ListTransactionsSortByTransactionTimestamp is a ListTransactionsSortBy enum value
	ListTransactionsSortByTransactionTimestamp = "TRANSACTION_TIMESTAMP"
)
View Source
const (
	// ResourceTypeCollection is a ResourceType enum value
	ResourceTypeCollection = "collection"
)

Variables

This section is empty.

Functions

func ErrorType_Values

func ErrorType_Values() []string

ErrorType_Values returns all elements of the ErrorType enum

func ListTransactionsSortBy_Values

func ListTransactionsSortBy_Values() []string

ListTransactionsSortBy_Values returns all elements of the ListTransactionsSortBy enum

func QueryNetwork_Values

func QueryNetwork_Values() []string

QueryNetwork_Values returns all elements of the QueryNetwork enum

func QueryTokenStandard_Values

func QueryTokenStandard_Values() []string

QueryTokenStandard_Values returns all elements of the QueryTokenStandard enum

func QueryTransactionEventType_Values

func QueryTransactionEventType_Values() []string

QueryTransactionEventType_Values returns all elements of the QueryTransactionEventType enum

func QueryTransactionStatus_Values

func QueryTransactionStatus_Values() []string

QueryTransactionStatus_Values returns all elements of the QueryTransactionStatus enum

func ResourceType_Values

func ResourceType_Values() []string

ResourceType_Values returns all elements of the ResourceType enum

func SortOrder_Values

func SortOrder_Values() []string

SortOrder_Values returns all elements of the SortOrder enum

func ValidationExceptionReason_Values

func ValidationExceptionReason_Values() []string

ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum

Types

type AccessDeniedException

type AccessDeniedException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The container for the exception message.
	Message_ *string `locationName:"message" min:"1" type:"string"`
	// contains filtered or unexported fields
}

The Amazon Web Services account doesn’t have access to this resource.

func (*AccessDeniedException) Code

func (s *AccessDeniedException) Code() string

Code returns the exception type name.

func (*AccessDeniedException) Error

func (s *AccessDeniedException) Error() string

func (AccessDeniedException) GoString

func (s AccessDeniedException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccessDeniedException) Message

func (s *AccessDeniedException) Message() string

Message returns the exception's message.

func (*AccessDeniedException) OrigErr

func (s *AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedException) RequestID

func (s *AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedException) StatusCode

func (s *AccessDeniedException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedException) String

func (s AccessDeniedException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AssetContract

type AssetContract struct {

	// The container for the contract identifier containing its blockchain network
	// and address.
	//
	// ContractIdentifier is a required field
	ContractIdentifier *ContractIdentifier `locationName:"contractIdentifier" type:"structure" required:"true"`

	// The address of the contract deployer.
	//
	// DeployerAddress is a required field
	DeployerAddress *string `locationName:"deployerAddress" type:"string" required:"true"`

	// The token standard of the contract.
	//
	// TokenStandard is a required field
	TokenStandard *string `locationName:"tokenStandard" type:"string" required:"true" enum:"QueryTokenStandard"`
	// contains filtered or unexported fields
}

This container contains information about an contract.

func (AssetContract) GoString

func (s AssetContract) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AssetContract) SetContractIdentifier

func (s *AssetContract) SetContractIdentifier(v *ContractIdentifier) *AssetContract

SetContractIdentifier sets the ContractIdentifier field's value.

func (*AssetContract) SetDeployerAddress

func (s *AssetContract) SetDeployerAddress(v string) *AssetContract

SetDeployerAddress sets the DeployerAddress field's value.

func (*AssetContract) SetTokenStandard

func (s *AssetContract) SetTokenStandard(v string) *AssetContract

SetTokenStandard sets the TokenStandard field's value.

func (AssetContract) String

func (s AssetContract) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type BatchGetTokenBalanceErrorItem

type BatchGetTokenBalanceErrorItem struct {

	// The container for time.
	AtBlockchainInstant *BlockchainInstant `locationName:"atBlockchainInstant" type:"structure"`

	// The error code associated with the error.
	//
	// ErrorCode is a required field
	ErrorCode *string `locationName:"errorCode" type:"string" required:"true"`

	// The message associated with the error.
	//
	// ErrorMessage is a required field
	ErrorMessage *string `locationName:"errorMessage" type:"string" required:"true"`

	// The type of error.
	//
	// ErrorType is a required field
	ErrorType *string `locationName:"errorType" type:"string" required:"true" enum:"ErrorType"`

	// The container for the identifier of the owner.
	OwnerIdentifier *OwnerIdentifier `locationName:"ownerIdentifier" type:"structure"`

	// The container for the identifier for the token including the unique token
	// ID and its blockchain network.
	//
	// Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token
	// standards are supported.
	TokenIdentifier *TokenIdentifier `locationName:"tokenIdentifier" type:"structure"`
	// contains filtered or unexported fields
}

Error generated from a failed BatchGetTokenBalance request.

func (BatchGetTokenBalanceErrorItem) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceErrorItem) SetAtBlockchainInstant

SetAtBlockchainInstant sets the AtBlockchainInstant field's value.

func (*BatchGetTokenBalanceErrorItem) SetErrorCode

SetErrorCode sets the ErrorCode field's value.

func (*BatchGetTokenBalanceErrorItem) SetErrorMessage

SetErrorMessage sets the ErrorMessage field's value.

func (*BatchGetTokenBalanceErrorItem) SetErrorType

SetErrorType sets the ErrorType field's value.

func (*BatchGetTokenBalanceErrorItem) SetOwnerIdentifier

SetOwnerIdentifier sets the OwnerIdentifier field's value.

func (*BatchGetTokenBalanceErrorItem) SetTokenIdentifier

SetTokenIdentifier sets the TokenIdentifier field's value.

func (BatchGetTokenBalanceErrorItem) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type BatchGetTokenBalanceInput

type BatchGetTokenBalanceInput struct {

	// An array of BatchGetTokenBalanceInputItem objects whose balance is being
	// requested.
	GetTokenBalanceInputs []*BatchGetTokenBalanceInputItem `locationName:"getTokenBalanceInputs" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (BatchGetTokenBalanceInput) GoString

func (s BatchGetTokenBalanceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceInput) SetGetTokenBalanceInputs

SetGetTokenBalanceInputs sets the GetTokenBalanceInputs field's value.

func (BatchGetTokenBalanceInput) String

func (s BatchGetTokenBalanceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceInput) Validate

func (s *BatchGetTokenBalanceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchGetTokenBalanceInputItem

type BatchGetTokenBalanceInputItem struct {

	// The container for time.
	AtBlockchainInstant *BlockchainInstant `locationName:"atBlockchainInstant" type:"structure"`

	// The container for the identifier of the owner.
	//
	// OwnerIdentifier is a required field
	OwnerIdentifier *OwnerIdentifier `locationName:"ownerIdentifier" type:"structure" required:"true"`

	// The container for the identifier for the token including the unique token
	// ID and its blockchain network.
	//
	// Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token
	// standards are supported.
	//
	// TokenIdentifier is a required field
	TokenIdentifier *TokenIdentifier `locationName:"tokenIdentifier" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

The container for the input for getting a token balance.

func (BatchGetTokenBalanceInputItem) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceInputItem) SetAtBlockchainInstant

SetAtBlockchainInstant sets the AtBlockchainInstant field's value.

func (*BatchGetTokenBalanceInputItem) SetOwnerIdentifier

SetOwnerIdentifier sets the OwnerIdentifier field's value.

func (*BatchGetTokenBalanceInputItem) SetTokenIdentifier

SetTokenIdentifier sets the TokenIdentifier field's value.

func (BatchGetTokenBalanceInputItem) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceInputItem) Validate

func (s *BatchGetTokenBalanceInputItem) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchGetTokenBalanceOutput

type BatchGetTokenBalanceOutput struct {

	// An array of BatchGetTokenBalanceErrorItem objects returned from the request.
	//
	// Errors is a required field
	Errors []*BatchGetTokenBalanceErrorItem `locationName:"errors" type:"list" required:"true"`

	// An array of BatchGetTokenBalanceOutputItem objects returned by the response.
	//
	// TokenBalances is a required field
	TokenBalances []*BatchGetTokenBalanceOutputItem `locationName:"tokenBalances" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (BatchGetTokenBalanceOutput) GoString

func (s BatchGetTokenBalanceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceOutput) SetErrors

SetErrors sets the Errors field's value.

func (*BatchGetTokenBalanceOutput) SetTokenBalances

SetTokenBalances sets the TokenBalances field's value.

func (BatchGetTokenBalanceOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type BatchGetTokenBalanceOutputItem

type BatchGetTokenBalanceOutputItem struct {

	// The container for time.
	//
	// AtBlockchainInstant is a required field
	AtBlockchainInstant *BlockchainInstant `locationName:"atBlockchainInstant" type:"structure" required:"true"`

	// The container for the token balance.
	//
	// Balance is a required field
	Balance *string `locationName:"balance" type:"string" required:"true"`

	// The container for time.
	LastUpdatedTime *BlockchainInstant `locationName:"lastUpdatedTime" type:"structure"`

	// The container for the identifier of the owner.
	OwnerIdentifier *OwnerIdentifier `locationName:"ownerIdentifier" type:"structure"`

	// The container for the identifier for the token including the unique token
	// ID and its blockchain network.
	//
	// Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token
	// standards are supported.
	TokenIdentifier *TokenIdentifier `locationName:"tokenIdentifier" type:"structure"`
	// contains filtered or unexported fields
}

The container for the properties of a token balance output.

func (BatchGetTokenBalanceOutputItem) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BatchGetTokenBalanceOutputItem) SetAtBlockchainInstant

SetAtBlockchainInstant sets the AtBlockchainInstant field's value.

func (*BatchGetTokenBalanceOutputItem) SetBalance

SetBalance sets the Balance field's value.

func (*BatchGetTokenBalanceOutputItem) SetLastUpdatedTime

SetLastUpdatedTime sets the LastUpdatedTime field's value.

func (*BatchGetTokenBalanceOutputItem) SetOwnerIdentifier

SetOwnerIdentifier sets the OwnerIdentifier field's value.

func (*BatchGetTokenBalanceOutputItem) SetTokenIdentifier

SetTokenIdentifier sets the TokenIdentifier field's value.

func (BatchGetTokenBalanceOutputItem) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type BlockchainInstant

type BlockchainInstant struct {

	// The container of the Timestamp of the blockchain instant.
	//
	// This timestamp will only be recorded up to the second.
	Time *time.Time `locationName:"time" type:"timestamp"`
	// contains filtered or unexported fields
}

The container for time.

func (BlockchainInstant) GoString

func (s BlockchainInstant) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BlockchainInstant) SetTime

SetTime sets the Time field's value.

func (BlockchainInstant) String

func (s BlockchainInstant) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ContractFilter

type ContractFilter struct {

	// The network address of the deployer.
	//
	// DeployerAddress is a required field
	DeployerAddress *string `locationName:"deployerAddress" type:"string" required:"true"`

	// The blockchain network of the contract.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The container for the token standard.
	//
	// TokenStandard is a required field
	TokenStandard *string `locationName:"tokenStandard" type:"string" required:"true" enum:"QueryTokenStandard"`
	// contains filtered or unexported fields
}

The contract or wallet address by which to filter the request.

func (ContractFilter) GoString

func (s ContractFilter) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ContractFilter) SetDeployerAddress

func (s *ContractFilter) SetDeployerAddress(v string) *ContractFilter

SetDeployerAddress sets the DeployerAddress field's value.

func (*ContractFilter) SetNetwork

func (s *ContractFilter) SetNetwork(v string) *ContractFilter

SetNetwork sets the Network field's value.

func (*ContractFilter) SetTokenStandard

func (s *ContractFilter) SetTokenStandard(v string) *ContractFilter

SetTokenStandard sets the TokenStandard field's value.

func (ContractFilter) String

func (s ContractFilter) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ContractFilter) Validate

func (s *ContractFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ContractIdentifier

type ContractIdentifier struct {

	// Container for the blockchain address about a contract.
	//
	// ContractAddress is a required field
	ContractAddress *string `locationName:"contractAddress" type:"string" required:"true"`

	// The blockchain network of the contract.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`
	// contains filtered or unexported fields
}

Container for the blockchain address and network information about a contract.

func (ContractIdentifier) GoString

func (s ContractIdentifier) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ContractIdentifier) SetContractAddress

func (s *ContractIdentifier) SetContractAddress(v string) *ContractIdentifier

SetContractAddress sets the ContractAddress field's value.

func (*ContractIdentifier) SetNetwork

func (s *ContractIdentifier) SetNetwork(v string) *ContractIdentifier

SetNetwork sets the Network field's value.

func (ContractIdentifier) String

func (s ContractIdentifier) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ContractIdentifier) Validate

func (s *ContractIdentifier) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ContractMetadata

type ContractMetadata struct {

	// The decimals used by the token contract.
	Decimals *int64 `locationName:"decimals" type:"integer"`

	// The name of the token contract.
	Name *string `locationName:"name" type:"string"`

	// The symbol of the token contract.
	Symbol *string `locationName:"symbol" type:"string"`
	// contains filtered or unexported fields
}

The metadata of the contract.

func (ContractMetadata) GoString

func (s ContractMetadata) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ContractMetadata) SetDecimals

func (s *ContractMetadata) SetDecimals(v int64) *ContractMetadata

SetDecimals sets the Decimals field's value.

func (*ContractMetadata) SetName

func (s *ContractMetadata) SetName(v string) *ContractMetadata

SetName sets the Name field's value.

func (*ContractMetadata) SetSymbol

func (s *ContractMetadata) SetSymbol(v string) *ContractMetadata

SetSymbol sets the Symbol field's value.

func (ContractMetadata) String

func (s ContractMetadata) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetAssetContractInput

type GetAssetContractInput struct {

	// Contains the blockchain address and network information about the contract.
	//
	// ContractIdentifier is a required field
	ContractIdentifier *ContractIdentifier `locationName:"contractIdentifier" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (GetAssetContractInput) GoString

func (s GetAssetContractInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetAssetContractInput) SetContractIdentifier

func (s *GetAssetContractInput) SetContractIdentifier(v *ContractIdentifier) *GetAssetContractInput

SetContractIdentifier sets the ContractIdentifier field's value.

func (GetAssetContractInput) String

func (s GetAssetContractInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetAssetContractInput) Validate

func (s *GetAssetContractInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetAssetContractOutput

type GetAssetContractOutput struct {

	// Contains the blockchain address and network information about the contract.
	//
	// ContractIdentifier is a required field
	ContractIdentifier *ContractIdentifier `locationName:"contractIdentifier" type:"structure" required:"true"`

	// The address of the deployer of contract.
	//
	// DeployerAddress is a required field
	DeployerAddress *string `locationName:"deployerAddress" type:"string" required:"true"`

	// The metadata of the contract.
	Metadata *ContractMetadata `locationName:"metadata" type:"structure"`

	// The token standard of the contract requested.
	//
	// TokenStandard is a required field
	TokenStandard *string `locationName:"tokenStandard" type:"string" required:"true" enum:"QueryTokenStandard"`
	// contains filtered or unexported fields
}

func (GetAssetContractOutput) GoString

func (s GetAssetContractOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetAssetContractOutput) SetContractIdentifier

SetContractIdentifier sets the ContractIdentifier field's value.

func (*GetAssetContractOutput) SetDeployerAddress

func (s *GetAssetContractOutput) SetDeployerAddress(v string) *GetAssetContractOutput

SetDeployerAddress sets the DeployerAddress field's value.

func (*GetAssetContractOutput) SetMetadata

SetMetadata sets the Metadata field's value.

func (*GetAssetContractOutput) SetTokenStandard

func (s *GetAssetContractOutput) SetTokenStandard(v string) *GetAssetContractOutput

SetTokenStandard sets the TokenStandard field's value.

func (GetAssetContractOutput) String

func (s GetAssetContractOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetTokenBalanceInput

type GetTokenBalanceInput struct {

	// The time for when the TokenBalance is requested or the current time if a
	// time is not provided in the request.
	//
	// This time will only be recorded up to the second.
	AtBlockchainInstant *BlockchainInstant `locationName:"atBlockchainInstant" type:"structure"`

	// The container for the identifier for the owner.
	//
	// OwnerIdentifier is a required field
	OwnerIdentifier *OwnerIdentifier `locationName:"ownerIdentifier" type:"structure" required:"true"`

	// The container for the identifier for the token, including the unique token
	// ID and its blockchain network.
	//
	// TokenIdentifier is a required field
	TokenIdentifier *TokenIdentifier `locationName:"tokenIdentifier" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (GetTokenBalanceInput) GoString

func (s GetTokenBalanceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTokenBalanceInput) SetAtBlockchainInstant

func (s *GetTokenBalanceInput) SetAtBlockchainInstant(v *BlockchainInstant) *GetTokenBalanceInput

SetAtBlockchainInstant sets the AtBlockchainInstant field's value.

func (*GetTokenBalanceInput) SetOwnerIdentifier

func (s *GetTokenBalanceInput) SetOwnerIdentifier(v *OwnerIdentifier) *GetTokenBalanceInput

SetOwnerIdentifier sets the OwnerIdentifier field's value.

func (*GetTokenBalanceInput) SetTokenIdentifier

func (s *GetTokenBalanceInput) SetTokenIdentifier(v *TokenIdentifier) *GetTokenBalanceInput

SetTokenIdentifier sets the TokenIdentifier field's value.

func (GetTokenBalanceInput) String

func (s GetTokenBalanceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTokenBalanceInput) Validate

func (s *GetTokenBalanceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetTokenBalanceOutput

type GetTokenBalanceOutput struct {

	// The container for time.
	//
	// AtBlockchainInstant is a required field
	AtBlockchainInstant *BlockchainInstant `locationName:"atBlockchainInstant" type:"structure" required:"true"`

	// The container for the token balance.
	//
	// Balance is a required field
	Balance *string `locationName:"balance" type:"string" required:"true"`

	// The container for time.
	LastUpdatedTime *BlockchainInstant `locationName:"lastUpdatedTime" type:"structure"`

	// The container for the identifier of the owner.
	OwnerIdentifier *OwnerIdentifier `locationName:"ownerIdentifier" type:"structure"`

	// The container for the identifier for the token including the unique token
	// ID and its blockchain network.
	//
	// Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token
	// standards are supported.
	TokenIdentifier *TokenIdentifier `locationName:"tokenIdentifier" type:"structure"`
	// contains filtered or unexported fields
}

func (GetTokenBalanceOutput) GoString

func (s GetTokenBalanceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTokenBalanceOutput) SetAtBlockchainInstant

func (s *GetTokenBalanceOutput) SetAtBlockchainInstant(v *BlockchainInstant) *GetTokenBalanceOutput

SetAtBlockchainInstant sets the AtBlockchainInstant field's value.

func (*GetTokenBalanceOutput) SetBalance

SetBalance sets the Balance field's value.

func (*GetTokenBalanceOutput) SetLastUpdatedTime

SetLastUpdatedTime sets the LastUpdatedTime field's value.

func (*GetTokenBalanceOutput) SetOwnerIdentifier

func (s *GetTokenBalanceOutput) SetOwnerIdentifier(v *OwnerIdentifier) *GetTokenBalanceOutput

SetOwnerIdentifier sets the OwnerIdentifier field's value.

func (*GetTokenBalanceOutput) SetTokenIdentifier

func (s *GetTokenBalanceOutput) SetTokenIdentifier(v *TokenIdentifier) *GetTokenBalanceOutput

SetTokenIdentifier sets the TokenIdentifier field's value.

func (GetTokenBalanceOutput) String

func (s GetTokenBalanceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetTransactionInput

type GetTransactionInput struct {

	// The blockchain network where the transaction occurred.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The hash of the transaction. It is generated whenever a transaction is verified
	// and added to the blockchain.
	//
	// TransactionHash is a required field
	TransactionHash *string `locationName:"transactionHash" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransactionInput) GoString

func (s GetTransactionInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransactionInput) SetNetwork

SetNetwork sets the Network field's value.

func (*GetTransactionInput) SetTransactionHash

func (s *GetTransactionInput) SetTransactionHash(v string) *GetTransactionInput

SetTransactionHash sets the TransactionHash field's value.

func (GetTransactionInput) String

func (s GetTransactionInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransactionInput) Validate

func (s *GetTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetTransactionOutput

type GetTransactionOutput struct {

	// Contains the details of the transaction.
	//
	// Transaction is a required field
	Transaction *Transaction `locationName:"transaction" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransactionOutput) GoString

func (s GetTransactionOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransactionOutput) SetTransaction

func (s *GetTransactionOutput) SetTransaction(v *Transaction) *GetTransactionOutput

SetTransaction sets the Transaction field's value.

func (GetTransactionOutput) String

func (s GetTransactionOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type InternalServerException

type InternalServerException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The container for the exception message.
	Message_ *string `locationName:"message" min:"1" type:"string"`

	// The container of the retryAfterSeconds value.
	RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`
	// contains filtered or unexported fields
}

The request processing has failed because of an internal error in the service.

func (*InternalServerException) Code

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error

func (s *InternalServerException) Error() string

func (InternalServerException) GoString

func (s InternalServerException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*InternalServerException) Message

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode

func (s *InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String

func (s InternalServerException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListAssetContractsInput

type ListAssetContractsInput struct {

	// Contains the filter parameter for the request.
	//
	// ContractFilter is a required field
	ContractFilter *ContractFilter `locationName:"contractFilter" type:"structure" required:"true"`

	// The maximum number of contracts to list.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAssetContractsInput) GoString

func (s ListAssetContractsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListAssetContractsInput) SetContractFilter

SetContractFilter sets the ContractFilter field's value.

func (*ListAssetContractsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListAssetContractsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListAssetContractsInput) String

func (s ListAssetContractsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListAssetContractsInput) Validate

func (s *ListAssetContractsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListAssetContractsOutput

type ListAssetContractsOutput struct {

	// An array of contract objects that contain the properties for each contract.
	//
	// Contracts is a required field
	Contracts []*AssetContract `locationName:"contracts" type:"list" required:"true"`

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAssetContractsOutput) GoString

func (s ListAssetContractsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListAssetContractsOutput) SetContracts

SetContracts sets the Contracts field's value.

func (*ListAssetContractsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListAssetContractsOutput) String

func (s ListAssetContractsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTokenBalancesInput

type ListTokenBalancesInput struct {

	// The maximum number of token balances to return.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The contract or wallet address on the blockchain network by which to filter
	// the request. You must specify the address property of the ownerFilter when
	// listing balances of tokens owned by the address.
	OwnerFilter *OwnerFilter `locationName:"ownerFilter" type:"structure"`

	// The contract address or a token identifier on the blockchain network by which
	// to filter the request. You must specify the contractAddress property of this
	// container when listing tokens minted by a contract.
	//
	// You must always specify the network property of this container when using
	// this operation.
	//
	// TokenFilter is a required field
	TokenFilter *TokenFilter `locationName:"tokenFilter" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (ListTokenBalancesInput) GoString

func (s ListTokenBalancesInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTokenBalancesInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListTokenBalancesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListTokenBalancesInput) SetOwnerFilter

SetOwnerFilter sets the OwnerFilter field's value.

func (*ListTokenBalancesInput) SetTokenFilter

SetTokenFilter sets the TokenFilter field's value.

func (ListTokenBalancesInput) String

func (s ListTokenBalancesInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTokenBalancesInput) Validate

func (s *ListTokenBalancesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTokenBalancesOutput

type ListTokenBalancesOutput struct {

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`

	// An array of TokenBalance objects. Each object contains details about the
	// token balance.
	//
	// TokenBalances is a required field
	TokenBalances []*TokenBalance `locationName:"tokenBalances" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ListTokenBalancesOutput) GoString

func (s ListTokenBalancesOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTokenBalancesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListTokenBalancesOutput) SetTokenBalances

SetTokenBalances sets the TokenBalances field's value.

func (ListTokenBalancesOutput) String

func (s ListTokenBalancesOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTransactionEventsInput

type ListTransactionEventsInput struct {

	// The maximum number of transaction events to list.
	//
	// Even if additional results can be retrieved, the request can return less
	// results than maxResults or an empty array of results.
	//
	// To retrieve the next set of results, make another request with the returned
	// nextToken value. The value of nextToken is null when there are no more results
	// to return
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The blockchain network where the transaction events occurred.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The hash of the transaction. It is generated whenever a transaction is verified
	// and added to the blockchain.
	//
	// TransactionHash is a required field
	TransactionHash *string `locationName:"transactionHash" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTransactionEventsInput) GoString

func (s ListTransactionEventsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionEventsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListTransactionEventsInput) SetNetwork

SetNetwork sets the Network field's value.

func (*ListTransactionEventsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListTransactionEventsInput) SetTransactionHash

SetTransactionHash sets the TransactionHash field's value.

func (ListTransactionEventsInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionEventsInput) Validate

func (s *ListTransactionEventsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTransactionEventsOutput

type ListTransactionEventsOutput struct {

	// An array of TransactionEvent objects. Each object contains details about
	// the transaction events.
	//
	// Events is a required field
	Events []*TransactionEvent `locationName:"events" type:"list" required:"true"`

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListTransactionEventsOutput) GoString

func (s ListTransactionEventsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionEventsOutput) SetEvents

SetEvents sets the Events field's value.

func (*ListTransactionEventsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListTransactionEventsOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTransactionsInput

type ListTransactionsInput struct {

	// The address (either a contract or wallet), whose transactions are being requested.
	//
	// Address is a required field
	Address *string `locationName:"address" type:"string" required:"true"`

	// The container for time.
	FromBlockchainInstant *BlockchainInstant `locationName:"fromBlockchainInstant" type:"structure"`

	// The maximum number of transactions to list.
	//
	// Even if additional results can be retrieved, the request can return less
	// results than maxResults or an empty array of results.
	//
	// To retrieve the next set of results, make another request with the returned
	// nextToken value. The value of nextToken is null when there are no more results
	// to return
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The blockchain network where the transactions occurred.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`

	// Sorts items in an ascending order if the first page starts at fromTime. Sorts
	// items in a descending order if the first page starts at toTime.
	Sort *ListTransactionsSort `locationName:"sort" type:"structure"`

	// The container for time.
	ToBlockchainInstant *BlockchainInstant `locationName:"toBlockchainInstant" type:"structure"`
	// contains filtered or unexported fields
}

func (ListTransactionsInput) GoString

func (s ListTransactionsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionsInput) SetAddress

SetAddress sets the Address field's value.

func (*ListTransactionsInput) SetFromBlockchainInstant

func (s *ListTransactionsInput) SetFromBlockchainInstant(v *BlockchainInstant) *ListTransactionsInput

SetFromBlockchainInstant sets the FromBlockchainInstant field's value.

func (*ListTransactionsInput) SetMaxResults

func (s *ListTransactionsInput) SetMaxResults(v int64) *ListTransactionsInput

SetMaxResults sets the MaxResults field's value.

func (*ListTransactionsInput) SetNetwork

SetNetwork sets the Network field's value.

func (*ListTransactionsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListTransactionsInput) SetSort

SetSort sets the Sort field's value.

func (*ListTransactionsInput) SetToBlockchainInstant

func (s *ListTransactionsInput) SetToBlockchainInstant(v *BlockchainInstant) *ListTransactionsInput

SetToBlockchainInstant sets the ToBlockchainInstant field's value.

func (ListTransactionsInput) String

func (s ListTransactionsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionsInput) Validate

func (s *ListTransactionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTransactionsOutput

type ListTransactionsOutput struct {

	// The pagination token that indicates the next set of results to retrieve.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The array of transactions returned by the request.
	//
	// Transactions is a required field
	Transactions []*TransactionOutputItem `locationName:"transactions" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ListTransactionsOutput) GoString

func (s ListTransactionsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListTransactionsOutput) SetTransactions

SetTransactions sets the Transactions field's value.

func (ListTransactionsOutput) String

func (s ListTransactionsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTransactionsSort

type ListTransactionsSort struct {

	// Defaults to the value TRANSACTION_TIMESTAMP.
	SortBy *string `locationName:"sortBy" type:"string" enum:"ListTransactionsSortBy"`

	// The container for the sort order for ListTransactions. The SortOrder field
	// only accepts the values ASCENDING and DESCENDING. Not providing SortOrder
	// will default to ASCENDING.
	SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"`
	// contains filtered or unexported fields
}

The container for determining how the list transaction result will be sorted.

func (ListTransactionsSort) GoString

func (s ListTransactionsSort) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransactionsSort) SetSortBy

SetSortBy sets the SortBy field's value.

func (*ListTransactionsSort) SetSortOrder

func (s *ListTransactionsSort) SetSortOrder(v string) *ListTransactionsSort

SetSortOrder sets the SortOrder field's value.

func (ListTransactionsSort) String

func (s ListTransactionsSort) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ManagedBlockchainQuery

type ManagedBlockchainQuery struct {
	*client.Client
}

ManagedBlockchainQuery provides the API operation methods for making requests to Amazon Managed Blockchain Query. See this package's package overview docs for details on the service.

ManagedBlockchainQuery methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New creates a new instance of the ManagedBlockchainQuery client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a ManagedBlockchainQuery client from just a session.
svc := managedblockchainquery.New(mySession)

// Create a ManagedBlockchainQuery client with additional configuration
svc := managedblockchainquery.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*ManagedBlockchainQuery) BatchGetTokenBalance

BatchGetTokenBalance API operation for Amazon Managed Blockchain Query.

Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action for every token in the request.

Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation BatchGetTokenBalance for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • ResourceNotFoundException The resource was not found.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalance

func (*ManagedBlockchainQuery) BatchGetTokenBalanceRequest

func (c *ManagedBlockchainQuery) BatchGetTokenBalanceRequest(input *BatchGetTokenBalanceInput) (req *request.Request, output *BatchGetTokenBalanceOutput)

BatchGetTokenBalanceRequest generates a "aws/request.Request" representing the client's request for the BatchGetTokenBalance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See BatchGetTokenBalance for more information on using the BatchGetTokenBalance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the BatchGetTokenBalanceRequest method.
req, resp := client.BatchGetTokenBalanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalance

func (*ManagedBlockchainQuery) BatchGetTokenBalanceWithContext

func (c *ManagedBlockchainQuery) BatchGetTokenBalanceWithContext(ctx aws.Context, input *BatchGetTokenBalanceInput, opts ...request.Option) (*BatchGetTokenBalanceOutput, error)

BatchGetTokenBalanceWithContext is the same as BatchGetTokenBalance with the addition of the ability to pass a context and additional request options.

See BatchGetTokenBalance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) GetAssetContract

GetAssetContract API operation for Amazon Managed Blockchain Query.

Gets the information about a specific contract deployed on the blockchain.

  • The Bitcoin blockchain networks do not support this operation.

  • Metadata is currently only available for some ERC-20 contracts. Metadata will be available for additional contracts in the future.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation GetAssetContract for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • ResourceNotFoundException The resource was not found.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetAssetContract

func (*ManagedBlockchainQuery) GetAssetContractRequest

func (c *ManagedBlockchainQuery) GetAssetContractRequest(input *GetAssetContractInput) (req *request.Request, output *GetAssetContractOutput)

GetAssetContractRequest generates a "aws/request.Request" representing the client's request for the GetAssetContract operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAssetContract for more information on using the GetAssetContract API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAssetContractRequest method.
req, resp := client.GetAssetContractRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetAssetContract

func (*ManagedBlockchainQuery) GetAssetContractWithContext

func (c *ManagedBlockchainQuery) GetAssetContractWithContext(ctx aws.Context, input *GetAssetContractInput, opts ...request.Option) (*GetAssetContractOutput, error)

GetAssetContractWithContext is the same as GetAssetContract with the addition of the ability to pass a context and additional request options.

See GetAssetContract for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) GetTokenBalance

GetTokenBalance API operation for Amazon Managed Blockchain Query.

Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.

Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation GetTokenBalance for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • ResourceNotFoundException The resource was not found.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTokenBalance

func (*ManagedBlockchainQuery) GetTokenBalanceRequest

func (c *ManagedBlockchainQuery) GetTokenBalanceRequest(input *GetTokenBalanceInput) (req *request.Request, output *GetTokenBalanceOutput)

GetTokenBalanceRequest generates a "aws/request.Request" representing the client's request for the GetTokenBalance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetTokenBalance for more information on using the GetTokenBalance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetTokenBalanceRequest method.
req, resp := client.GetTokenBalanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTokenBalance

func (*ManagedBlockchainQuery) GetTokenBalanceWithContext

func (c *ManagedBlockchainQuery) GetTokenBalanceWithContext(ctx aws.Context, input *GetTokenBalanceInput, opts ...request.Option) (*GetTokenBalanceOutput, error)

GetTokenBalanceWithContext is the same as GetTokenBalance with the addition of the ability to pass a context and additional request options.

See GetTokenBalance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) GetTransaction

GetTransaction API operation for Amazon Managed Blockchain Query.

Get the details of a transaction.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation GetTransaction for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • ResourceNotFoundException The resource was not found.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransaction

func (*ManagedBlockchainQuery) GetTransactionRequest

func (c *ManagedBlockchainQuery) GetTransactionRequest(input *GetTransactionInput) (req *request.Request, output *GetTransactionOutput)

GetTransactionRequest generates a "aws/request.Request" representing the client's request for the GetTransaction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetTransaction for more information on using the GetTransaction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetTransactionRequest method.
req, resp := client.GetTransactionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransaction

func (*ManagedBlockchainQuery) GetTransactionWithContext

func (c *ManagedBlockchainQuery) GetTransactionWithContext(ctx aws.Context, input *GetTransactionInput, opts ...request.Option) (*GetTransactionOutput, error)

GetTransactionWithContext is the same as GetTransaction with the addition of the ability to pass a context and additional request options.

See GetTransaction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListAssetContracts

ListAssetContracts API operation for Amazon Managed Blockchain Query.

Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).

The Bitcoin blockchain networks do not support this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation ListAssetContracts for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListAssetContracts

func (*ManagedBlockchainQuery) ListAssetContractsPages

func (c *ManagedBlockchainQuery) ListAssetContractsPages(input *ListAssetContractsInput, fn func(*ListAssetContractsOutput, bool) bool) error

ListAssetContractsPages iterates over the pages of a ListAssetContracts operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListAssetContracts method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListAssetContracts operation.
pageNum := 0
err := client.ListAssetContractsPages(params,
    func(page *managedblockchainquery.ListAssetContractsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ManagedBlockchainQuery) ListAssetContractsPagesWithContext

func (c *ManagedBlockchainQuery) ListAssetContractsPagesWithContext(ctx aws.Context, input *ListAssetContractsInput, fn func(*ListAssetContractsOutput, bool) bool, opts ...request.Option) error

ListAssetContractsPagesWithContext same as ListAssetContractsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListAssetContractsRequest

func (c *ManagedBlockchainQuery) ListAssetContractsRequest(input *ListAssetContractsInput) (req *request.Request, output *ListAssetContractsOutput)

ListAssetContractsRequest generates a "aws/request.Request" representing the client's request for the ListAssetContracts operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListAssetContracts for more information on using the ListAssetContracts API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListAssetContractsRequest method.
req, resp := client.ListAssetContractsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListAssetContracts

func (*ManagedBlockchainQuery) ListAssetContractsWithContext

func (c *ManagedBlockchainQuery) ListAssetContractsWithContext(ctx aws.Context, input *ListAssetContractsInput, opts ...request.Option) (*ListAssetContractsOutput, error)

ListAssetContractsWithContext is the same as ListAssetContracts with the addition of the ability to pass a context and additional request options.

See ListAssetContracts for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListTokenBalances

ListTokenBalances API operation for Amazon Managed Blockchain Query.

This action returns the following for a given blockchain network:

  • Lists all token balances owned by an address (either a contract address or a wallet address).

  • Lists all token balances for all tokens created by a contract.

  • Lists all token balances for a given token.

You must always specify the network property of the tokenFilter when using this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation ListTokenBalances for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTokenBalances

func (*ManagedBlockchainQuery) ListTokenBalancesPages

func (c *ManagedBlockchainQuery) ListTokenBalancesPages(input *ListTokenBalancesInput, fn func(*ListTokenBalancesOutput, bool) bool) error

ListTokenBalancesPages iterates over the pages of a ListTokenBalances operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListTokenBalances method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListTokenBalances operation.
pageNum := 0
err := client.ListTokenBalancesPages(params,
    func(page *managedblockchainquery.ListTokenBalancesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ManagedBlockchainQuery) ListTokenBalancesPagesWithContext

func (c *ManagedBlockchainQuery) ListTokenBalancesPagesWithContext(ctx aws.Context, input *ListTokenBalancesInput, fn func(*ListTokenBalancesOutput, bool) bool, opts ...request.Option) error

ListTokenBalancesPagesWithContext same as ListTokenBalancesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListTokenBalancesRequest

func (c *ManagedBlockchainQuery) ListTokenBalancesRequest(input *ListTokenBalancesInput) (req *request.Request, output *ListTokenBalancesOutput)

ListTokenBalancesRequest generates a "aws/request.Request" representing the client's request for the ListTokenBalances operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTokenBalances for more information on using the ListTokenBalances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTokenBalancesRequest method.
req, resp := client.ListTokenBalancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTokenBalances

func (*ManagedBlockchainQuery) ListTokenBalancesWithContext

func (c *ManagedBlockchainQuery) ListTokenBalancesWithContext(ctx aws.Context, input *ListTokenBalancesInput, opts ...request.Option) (*ListTokenBalancesOutput, error)

ListTokenBalancesWithContext is the same as ListTokenBalances with the addition of the ability to pass a context and additional request options.

See ListTokenBalances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListTransactionEvents

ListTransactionEvents API operation for Amazon Managed Blockchain Query.

An array of TransactionEvent objects. Each object contains details about the transaction event.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation ListTransactionEvents for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEvents

func (*ManagedBlockchainQuery) ListTransactionEventsPages

func (c *ManagedBlockchainQuery) ListTransactionEventsPages(input *ListTransactionEventsInput, fn func(*ListTransactionEventsOutput, bool) bool) error

ListTransactionEventsPages iterates over the pages of a ListTransactionEvents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListTransactionEvents method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListTransactionEvents operation.
pageNum := 0
err := client.ListTransactionEventsPages(params,
    func(page *managedblockchainquery.ListTransactionEventsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ManagedBlockchainQuery) ListTransactionEventsPagesWithContext

func (c *ManagedBlockchainQuery) ListTransactionEventsPagesWithContext(ctx aws.Context, input *ListTransactionEventsInput, fn func(*ListTransactionEventsOutput, bool) bool, opts ...request.Option) error

ListTransactionEventsPagesWithContext same as ListTransactionEventsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListTransactionEventsRequest

func (c *ManagedBlockchainQuery) ListTransactionEventsRequest(input *ListTransactionEventsInput) (req *request.Request, output *ListTransactionEventsOutput)

ListTransactionEventsRequest generates a "aws/request.Request" representing the client's request for the ListTransactionEvents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTransactionEvents for more information on using the ListTransactionEvents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTransactionEventsRequest method.
req, resp := client.ListTransactionEventsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEvents

func (*ManagedBlockchainQuery) ListTransactionEventsWithContext

func (c *ManagedBlockchainQuery) ListTransactionEventsWithContext(ctx aws.Context, input *ListTransactionEventsInput, opts ...request.Option) (*ListTransactionEventsOutput, error)

ListTransactionEventsWithContext is the same as ListTransactionEvents with the addition of the ability to pass a context and additional request options.

See ListTransactionEvents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListTransactions

ListTransactions API operation for Amazon Managed Blockchain Query.

Lists all of the transactions on a given wallet address or to a specific contract.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Managed Blockchain Query's API operation ListTransactions for usage and error information.

Returned Error Types:

  • ThrottlingException The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

  • ValidationException The resource passed is invalid.

  • AccessDeniedException The Amazon Web Services account doesn’t have access to this resource.

  • InternalServerException The request processing has failed because of an internal error in the service.

  • ServiceQuotaExceededException The service quota has been exceeded for this resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactions

func (*ManagedBlockchainQuery) ListTransactionsPages

func (c *ManagedBlockchainQuery) ListTransactionsPages(input *ListTransactionsInput, fn func(*ListTransactionsOutput, bool) bool) error

ListTransactionsPages iterates over the pages of a ListTransactions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListTransactions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListTransactions operation.
pageNum := 0
err := client.ListTransactionsPages(params,
    func(page *managedblockchainquery.ListTransactionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*ManagedBlockchainQuery) ListTransactionsPagesWithContext

func (c *ManagedBlockchainQuery) ListTransactionsPagesWithContext(ctx aws.Context, input *ListTransactionsInput, fn func(*ListTransactionsOutput, bool) bool, opts ...request.Option) error

ListTransactionsPagesWithContext same as ListTransactionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*ManagedBlockchainQuery) ListTransactionsRequest

func (c *ManagedBlockchainQuery) ListTransactionsRequest(input *ListTransactionsInput) (req *request.Request, output *ListTransactionsOutput)

ListTransactionsRequest generates a "aws/request.Request" representing the client's request for the ListTransactions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTransactions for more information on using the ListTransactions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTransactionsRequest method.
req, resp := client.ListTransactionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactions

func (*ManagedBlockchainQuery) ListTransactionsWithContext

func (c *ManagedBlockchainQuery) ListTransactionsWithContext(ctx aws.Context, input *ListTransactionsInput, opts ...request.Option) (*ListTransactionsOutput, error)

ListTransactionsWithContext is the same as ListTransactions with the addition of the ability to pass a context and additional request options.

See ListTransactions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type OwnerFilter

type OwnerFilter struct {

	// The contract or wallet address.
	//
	// Address is a required field
	Address *string `locationName:"address" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The container for the owner information to filter by.

func (OwnerFilter) GoString

func (s OwnerFilter) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OwnerFilter) SetAddress

func (s *OwnerFilter) SetAddress(v string) *OwnerFilter

SetAddress sets the Address field's value.

func (OwnerFilter) String

func (s OwnerFilter) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OwnerFilter) Validate

func (s *OwnerFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type OwnerIdentifier

type OwnerIdentifier struct {

	// The contract or wallet address for the owner.
	//
	// Address is a required field
	Address *string `locationName:"address" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The container for the identifier of the owner.

func (OwnerIdentifier) GoString

func (s OwnerIdentifier) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OwnerIdentifier) SetAddress

func (s *OwnerIdentifier) SetAddress(v string) *OwnerIdentifier

SetAddress sets the Address field's value.

func (OwnerIdentifier) String

func (s OwnerIdentifier) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OwnerIdentifier) Validate

func (s *OwnerIdentifier) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ResourceNotFoundException

type ResourceNotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The container for the exception message.
	Message_ *string `locationName:"message" min:"1" type:"string"`

	// The resourceId of the resource that caused the exception.
	//
	// ResourceId is a required field
	ResourceId *string `locationName:"resourceId" type:"string" required:"true"`

	// The resourceType of the resource that caused the exception.
	//
	// ResourceType is a required field
	ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
	// contains filtered or unexported fields
}

The resource was not found.

func (*ResourceNotFoundException) Code

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ServiceQuotaExceededException

type ServiceQuotaExceededException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The container for the exception message.
	Message_ *string `locationName:"message" min:"1" type:"string"`

	// The container for the quotaCode.
	//
	// QuotaCode is a required field
	QuotaCode *string `locationName:"quotaCode" type:"string" required:"true"`

	// The resourceId of the resource that caused the exception.
	//
	// ResourceId is a required field
	ResourceId *string `locationName:"resourceId" type:"string" required:"true"`

	// The resourceType of the resource that caused the exception.
	//
	// ResourceType is a required field
	ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`

	// The container for the serviceCode.
	//
	// ServiceCode is a required field
	ServiceCode *string `locationName:"serviceCode" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The service quota has been exceeded for this resource.

func (*ServiceQuotaExceededException) Code

Code returns the exception type name.

func (*ServiceQuotaExceededException) Error

func (ServiceQuotaExceededException) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ServiceQuotaExceededException) Message

Message returns the exception's message.

func (*ServiceQuotaExceededException) OrigErr

func (s *ServiceQuotaExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ServiceQuotaExceededException) RequestID

func (s *ServiceQuotaExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ServiceQuotaExceededException) StatusCode

func (s *ServiceQuotaExceededException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ServiceQuotaExceededException) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ThrottlingException

type ThrottlingException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The container for the exception message.
	Message_ *string `locationName:"message" min:"1" type:"string"`

	// The container for the quotaCode.
	//
	// QuotaCode is a required field
	QuotaCode *string `locationName:"quotaCode" type:"string" required:"true"`

	// The container of the retryAfterSeconds value.
	RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`

	// The container for the serviceCode.
	//
	// ServiceCode is a required field
	ServiceCode *string `locationName:"serviceCode" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

func (*ThrottlingException) Code

func (s *ThrottlingException) Code() string

Code returns the exception type name.

func (*ThrottlingException) Error

func (s *ThrottlingException) Error() string

func (ThrottlingException) GoString

func (s ThrottlingException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ThrottlingException) Message

func (s *ThrottlingException) Message() string

Message returns the exception's message.

func (*ThrottlingException) OrigErr

func (s *ThrottlingException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ThrottlingException) RequestID

func (s *ThrottlingException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ThrottlingException) StatusCode

func (s *ThrottlingException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ThrottlingException) String

func (s ThrottlingException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TokenBalance

type TokenBalance struct {

	// The time for when the TokenBalance is requested or the current time if a
	// time is not provided in the request.
	//
	// This time will only be recorded up to the second.
	//
	// AtBlockchainInstant is a required field
	AtBlockchainInstant *BlockchainInstant `locationName:"atBlockchainInstant" type:"structure" required:"true"`

	// The container of the token balance.
	//
	// Balance is a required field
	Balance *string `locationName:"balance" type:"string" required:"true"`

	// The Timestamp of the last transaction at which the balance for the token
	// in the wallet was updated.
	LastUpdatedTime *BlockchainInstant `locationName:"lastUpdatedTime" type:"structure"`

	// The container for the identifier of the owner.
	OwnerIdentifier *OwnerIdentifier `locationName:"ownerIdentifier" type:"structure"`

	// The identifier for the token, including the unique token ID and its blockchain
	// network.
	TokenIdentifier *TokenIdentifier `locationName:"tokenIdentifier" type:"structure"`
	// contains filtered or unexported fields
}

The balance of the token.

func (TokenBalance) GoString

func (s TokenBalance) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TokenBalance) SetAtBlockchainInstant

func (s *TokenBalance) SetAtBlockchainInstant(v *BlockchainInstant) *TokenBalance

SetAtBlockchainInstant sets the AtBlockchainInstant field's value.

func (*TokenBalance) SetBalance

func (s *TokenBalance) SetBalance(v string) *TokenBalance

SetBalance sets the Balance field's value.

func (*TokenBalance) SetLastUpdatedTime

func (s *TokenBalance) SetLastUpdatedTime(v *BlockchainInstant) *TokenBalance

SetLastUpdatedTime sets the LastUpdatedTime field's value.

func (*TokenBalance) SetOwnerIdentifier

func (s *TokenBalance) SetOwnerIdentifier(v *OwnerIdentifier) *TokenBalance

SetOwnerIdentifier sets the OwnerIdentifier field's value.

func (*TokenBalance) SetTokenIdentifier

func (s *TokenBalance) SetTokenIdentifier(v *TokenIdentifier) *TokenBalance

SetTokenIdentifier sets the TokenIdentifier field's value.

func (TokenBalance) String

func (s TokenBalance) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TokenFilter

type TokenFilter struct {

	// This is the address of the contract.
	ContractAddress *string `locationName:"contractAddress" type:"string"`

	// The blockchain network of the token.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The unique identifier of the token.
	TokenId *string `locationName:"tokenId" type:"string"`
	// contains filtered or unexported fields
}

The container of the token filter like the contract address on a given blockchain network or a unique token identifier on a given blockchain network.

You must always specify the network property of this container when using this operation.

func (TokenFilter) GoString

func (s TokenFilter) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TokenFilter) SetContractAddress

func (s *TokenFilter) SetContractAddress(v string) *TokenFilter

SetContractAddress sets the ContractAddress field's value.

func (*TokenFilter) SetNetwork

func (s *TokenFilter) SetNetwork(v string) *TokenFilter

SetNetwork sets the Network field's value.

func (*TokenFilter) SetTokenId

func (s *TokenFilter) SetTokenId(v string) *TokenFilter

SetTokenId sets the TokenId field's value.

func (TokenFilter) String

func (s TokenFilter) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TokenFilter) Validate

func (s *TokenFilter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TokenIdentifier

type TokenIdentifier struct {

	// This is the token's contract address.
	ContractAddress *string `locationName:"contractAddress" type:"string"`

	// The blockchain network of the token.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The unique identifier of the token.
	//
	// You must specify this container with btc for the native BTC token, and eth
	// for the native ETH token. For all other token types you must specify the
	// tokenId in the 64 character hexadecimal tokenid format.
	TokenId *string `locationName:"tokenId" type:"string"`
	// contains filtered or unexported fields
}

The container for the identifier for the token including the unique token ID and its blockchain network.

Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.

func (TokenIdentifier) GoString

func (s TokenIdentifier) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TokenIdentifier) SetContractAddress

func (s *TokenIdentifier) SetContractAddress(v string) *TokenIdentifier

SetContractAddress sets the ContractAddress field's value.

func (*TokenIdentifier) SetNetwork

func (s *TokenIdentifier) SetNetwork(v string) *TokenIdentifier

SetNetwork sets the Network field's value.

func (*TokenIdentifier) SetTokenId

func (s *TokenIdentifier) SetTokenId(v string) *TokenIdentifier

SetTokenId sets the TokenId field's value.

func (TokenIdentifier) String

func (s TokenIdentifier) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TokenIdentifier) Validate

func (s *TokenIdentifier) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type Transaction

type Transaction struct {

	// The block hash is a unique identifier for a block. It is a fixed-size string
	// that is calculated by using the information in the block. The block hash
	// is used to verify the integrity of the data in the block.
	BlockHash *string `locationName:"blockHash" type:"string"`

	// The block number in which the transaction is recorded.
	BlockNumber *string `locationName:"blockNumber" type:"string"`

	// The blockchain address for the contract.
	ContractAddress *string `locationName:"contractAddress" type:"string"`

	// The amount of gas used up to the specified point in the block.
	CumulativeGasUsed *string `locationName:"cumulativeGasUsed" type:"string"`

	// The effective gas price.
	EffectiveGasPrice *string `locationName:"effectiveGasPrice" type:"string"`

	// The initiator of the transaction. It is either in the form a public key or
	// a contract address.
	From *string `locationName:"from" type:"string"`

	// The amount of gas used for the transaction.
	GasUsed *string `locationName:"gasUsed" type:"string"`

	// The blockchain network where the transaction occurred.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The number of transactions in the block.
	//
	// NumberOfTransactions is a required field
	NumberOfTransactions *int64 `locationName:"numberOfTransactions" type:"long" required:"true"`

	// The signature of the transaction. The X coordinate of a point R.
	SignatureR *string `locationName:"signatureR" type:"string"`

	// The signature of the transaction. The Y coordinate of a point S.
	SignatureS *string `locationName:"signatureS" type:"string"`

	// The signature of the transaction. The Z coordinate of a point V.
	SignatureV *int64 `locationName:"signatureV" type:"integer"`

	// The status of the transaction.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"QueryTransactionStatus"`

	// The identifier of the transaction. It is generated whenever a transaction
	// is verified and added to the blockchain.
	//
	// To is a required field
	To *string `locationName:"to" type:"string" required:"true"`

	// The transaction fee.
	TransactionFee *string `locationName:"transactionFee" type:"string"`

	// The hash of the transaction. It is generated whenever a transaction is verified
	// and added to the blockchain.
	//
	// TransactionHash is a required field
	TransactionHash *string `locationName:"transactionHash" type:"string" required:"true"`

	// The unique identifier of the transaction. It is generated whenever a transaction
	// is verified and added to the blockchain.
	TransactionId *string `locationName:"transactionId" type:"string"`

	// The index of the transaction within a blockchain.
	//
	// TransactionIndex is a required field
	TransactionIndex *int64 `locationName:"transactionIndex" type:"long" required:"true"`

	// The Timestamp of the transaction.
	//
	// TransactionTimestamp is a required field
	TransactionTimestamp *time.Time `locationName:"transactionTimestamp" type:"timestamp" required:"true"`
	// contains filtered or unexported fields
}

There are two possible types of transactions used for this data type:

  • A Bitcoin transaction is a movement of BTC from one address to another.

  • An Ethereum transaction refers to an action initiated by an externally owned account, which is an account managed by a human, not a contract. For example, if Bob sends Alice 1 ETH, Bob's account must be debited and Alice's must be credited. This state-changing action occurs within a transaction.

func (Transaction) GoString

func (s Transaction) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Transaction) SetBlockHash

func (s *Transaction) SetBlockHash(v string) *Transaction

SetBlockHash sets the BlockHash field's value.

func (*Transaction) SetBlockNumber

func (s *Transaction) SetBlockNumber(v string) *Transaction

SetBlockNumber sets the BlockNumber field's value.

func (*Transaction) SetContractAddress

func (s *Transaction) SetContractAddress(v string) *Transaction

SetContractAddress sets the ContractAddress field's value.

func (*Transaction) SetCumulativeGasUsed

func (s *Transaction) SetCumulativeGasUsed(v string) *Transaction

SetCumulativeGasUsed sets the CumulativeGasUsed field's value.

func (*Transaction) SetEffectiveGasPrice

func (s *Transaction) SetEffectiveGasPrice(v string) *Transaction

SetEffectiveGasPrice sets the EffectiveGasPrice field's value.

func (*Transaction) SetFrom

func (s *Transaction) SetFrom(v string) *Transaction

SetFrom sets the From field's value.

func (*Transaction) SetGasUsed

func (s *Transaction) SetGasUsed(v string) *Transaction

SetGasUsed sets the GasUsed field's value.

func (*Transaction) SetNetwork

func (s *Transaction) SetNetwork(v string) *Transaction

SetNetwork sets the Network field's value.

func (*Transaction) SetNumberOfTransactions

func (s *Transaction) SetNumberOfTransactions(v int64) *Transaction

SetNumberOfTransactions sets the NumberOfTransactions field's value.

func (*Transaction) SetSignatureR

func (s *Transaction) SetSignatureR(v string) *Transaction

SetSignatureR sets the SignatureR field's value.

func (*Transaction) SetSignatureS

func (s *Transaction) SetSignatureS(v string) *Transaction

SetSignatureS sets the SignatureS field's value.

func (*Transaction) SetSignatureV

func (s *Transaction) SetSignatureV(v int64) *Transaction

SetSignatureV sets the SignatureV field's value.

func (*Transaction) SetStatus

func (s *Transaction) SetStatus(v string) *Transaction

SetStatus sets the Status field's value.

func (*Transaction) SetTo

func (s *Transaction) SetTo(v string) *Transaction

SetTo sets the To field's value.

func (*Transaction) SetTransactionFee

func (s *Transaction) SetTransactionFee(v string) *Transaction

SetTransactionFee sets the TransactionFee field's value.

func (*Transaction) SetTransactionHash

func (s *Transaction) SetTransactionHash(v string) *Transaction

SetTransactionHash sets the TransactionHash field's value.

func (*Transaction) SetTransactionId

func (s *Transaction) SetTransactionId(v string) *Transaction

SetTransactionId sets the TransactionId field's value.

func (*Transaction) SetTransactionIndex

func (s *Transaction) SetTransactionIndex(v int64) *Transaction

SetTransactionIndex sets the TransactionIndex field's value.

func (*Transaction) SetTransactionTimestamp

func (s *Transaction) SetTransactionTimestamp(v time.Time) *Transaction

SetTransactionTimestamp sets the TransactionTimestamp field's value.

func (Transaction) String

func (s Transaction) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TransactionEvent

type TransactionEvent struct {

	// The blockchain address. for the contract
	ContractAddress *string `locationName:"contractAddress" type:"string"`

	// The type of transaction event.
	//
	// EventType is a required field
	EventType *string `locationName:"eventType" type:"string" required:"true" enum:"QueryTransactionEventType"`

	// The wallet address initiating the transaction. It can either be a public
	// key or a contract.
	From *string `locationName:"from" type:"string"`

	// The blockchain network where the transaction occurred.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The wallet address receiving the transaction. It can either be a public key
	// or a contract.
	To *string `locationName:"to" type:"string"`

	// The unique identifier for the token involved in the transaction.
	TokenId *string `locationName:"tokenId" type:"string"`

	// The hash of the transaction. It is generated whenever a transaction is verified
	// and added to the blockchain.
	//
	// TransactionHash is a required field
	TransactionHash *string `locationName:"transactionHash" type:"string" required:"true"`

	// The unique identifier of the transaction. It is generated whenever a transaction
	// is verified and added to the blockchain.
	TransactionId *string `locationName:"transactionId" type:"string"`

	// The value that was transacted.
	Value *string `locationName:"value" type:"string"`

	// The position of the vout in the transaction output list.
	VoutIndex *int64 `locationName:"voutIndex" type:"integer"`
	// contains filtered or unexported fields
}

The container for the properties of a transaction event.

func (TransactionEvent) GoString

func (s TransactionEvent) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TransactionEvent) SetContractAddress

func (s *TransactionEvent) SetContractAddress(v string) *TransactionEvent

SetContractAddress sets the ContractAddress field's value.

func (*TransactionEvent) SetEventType

func (s *TransactionEvent) SetEventType(v string) *TransactionEvent

SetEventType sets the EventType field's value.

func (*TransactionEvent) SetFrom

func (s *TransactionEvent) SetFrom(v string) *TransactionEvent

SetFrom sets the From field's value.

func (*TransactionEvent) SetNetwork

func (s *TransactionEvent) SetNetwork(v string) *TransactionEvent

SetNetwork sets the Network field's value.

func (*TransactionEvent) SetTo

SetTo sets the To field's value.

func (*TransactionEvent) SetTokenId

func (s *TransactionEvent) SetTokenId(v string) *TransactionEvent

SetTokenId sets the TokenId field's value.

func (*TransactionEvent) SetTransactionHash

func (s *TransactionEvent) SetTransactionHash(v string) *TransactionEvent

SetTransactionHash sets the TransactionHash field's value.

func (*TransactionEvent) SetTransactionId

func (s *TransactionEvent) SetTransactionId(v string) *TransactionEvent

SetTransactionId sets the TransactionId field's value.

func (*TransactionEvent) SetValue

func (s *TransactionEvent) SetValue(v string) *TransactionEvent

SetValue sets the Value field's value.

func (*TransactionEvent) SetVoutIndex

func (s *TransactionEvent) SetVoutIndex(v int64) *TransactionEvent

SetVoutIndex sets the VoutIndex field's value.

func (TransactionEvent) String

func (s TransactionEvent) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TransactionOutputItem

type TransactionOutputItem struct {

	// The blockchain network where the transaction occurred.
	//
	// Network is a required field
	Network *string `locationName:"network" type:"string" required:"true" enum:"QueryNetwork"`

	// The hash of the transaction. It is generated whenever a transaction is verified
	// and added to the blockchain.
	//
	// TransactionHash is a required field
	TransactionHash *string `locationName:"transactionHash" type:"string" required:"true"`

	// The time when the transaction occurred.
	//
	// TransactionTimestamp is a required field
	TransactionTimestamp *time.Time `locationName:"transactionTimestamp" type:"timestamp" required:"true"`
	// contains filtered or unexported fields
}

The container of the transaction output.

func (TransactionOutputItem) GoString

func (s TransactionOutputItem) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TransactionOutputItem) SetNetwork

SetNetwork sets the Network field's value.

func (*TransactionOutputItem) SetTransactionHash

func (s *TransactionOutputItem) SetTransactionHash(v string) *TransactionOutputItem

SetTransactionHash sets the TransactionHash field's value.

func (*TransactionOutputItem) SetTransactionTimestamp

func (s *TransactionOutputItem) SetTransactionTimestamp(v time.Time) *TransactionOutputItem

SetTransactionTimestamp sets the TransactionTimestamp field's value.

func (TransactionOutputItem) String

func (s TransactionOutputItem) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ValidationException

type ValidationException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The container for the fieldList of the exception.
	FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"`

	// The container for the exception message.
	Message_ *string `locationName:"message" min:"1" type:"string"`

	// The container for the reason for the exception
	//
	// Reason is a required field
	Reason *string `locationName:"reason" type:"string" required:"true" enum:"ValidationExceptionReason"`
	// contains filtered or unexported fields
}

The resource passed is invalid.

func (*ValidationException) Code

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error

func (s *ValidationException) Error() string

func (ValidationException) GoString

func (s ValidationException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationException) Message

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode

func (s *ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String

func (s ValidationException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ValidationExceptionField

type ValidationExceptionField struct {

	// The ValidationException message.
	//
	// Message is a required field
	Message *string `locationName:"message" type:"string" required:"true"`

	// The name of the field that triggered the ValidationException.
	//
	// Name is a required field
	Name *string `locationName:"name" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The resource passed is invalid.

func (ValidationExceptionField) GoString

func (s ValidationExceptionField) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationExceptionField) SetMessage

SetMessage sets the Message field's value.

func (*ValidationExceptionField) SetName

SetName sets the Name field's value.

func (ValidationExceptionField) String

func (s ValidationExceptionField) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

Directories

Path Synopsis
Package managedblockchainqueryiface provides an interface to enable mocking the Amazon Managed Blockchain Query service client for testing your code.
Package managedblockchainqueryiface provides an interface to enable mocking the Amazon Managed Blockchain Query service client for testing your code.

Jump to

Keyboard shortcuts

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