Name | Type | Description | Notes |
---|---|---|---|
Timestamp | time.Time | A timestamp represented in ISO 8601 format. | |
Type | TransactionType | ||
ChainID | string | The unique identifier of a blockchain in CAIP-2 notation. | |
BlockNumber | int32 | The number of a block. | |
BlockHash | string | The hash of a transaction or block. | |
TxHash | string | The hash of a transaction or block. | |
ExplorerLink | string | A link to a block explorer for a transaction or address. | |
Status | TransactionStatus | ||
Tenderly | Pointer to string | A link to the Tenderly Explorer for a transaction. | [optional] |
FromAccount | Account | ||
ToAccount | Account | ||
TokenAmount | TokenAmount | ||
GasDetails | GasDetails | ||
Transfers | []Transfer | The CAIP-2 identifier for a blockchain. |
func NewTransaction(timestamp time.Time, type_ TransactionType, chainID string, blockNumber int32, blockHash string, txHash string, explorerLink string, status TransactionStatus, fromAccount Account, toAccount Account, tokenAmount TokenAmount, gasDetails GasDetails, transfers []Transfer, ) *Transaction
NewTransaction instantiates a new Transaction object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewTransactionWithDefaults() *Transaction
NewTransactionWithDefaults instantiates a new Transaction object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Transaction) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.
func (o *Transaction) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetTimestamp(v time.Time)
SetTimestamp sets Timestamp field to given value.
func (o *Transaction) GetType() TransactionType
GetType returns the Type field if non-nil, zero value otherwise.
func (o *Transaction) GetTypeOk() (*TransactionType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetType(v TransactionType)
SetType sets Type field to given value.
func (o *Transaction) GetChainID() string
GetChainID returns the ChainID field if non-nil, zero value otherwise.
func (o *Transaction) GetChainIDOk() (*string, bool)
GetChainIDOk returns a tuple with the ChainID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetChainID(v string)
SetChainID sets ChainID field to given value.
func (o *Transaction) GetBlockNumber() int32
GetBlockNumber returns the BlockNumber field if non-nil, zero value otherwise.
func (o *Transaction) GetBlockNumberOk() (*int32, bool)
GetBlockNumberOk returns a tuple with the BlockNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetBlockNumber(v int32)
SetBlockNumber sets BlockNumber field to given value.
func (o *Transaction) GetBlockHash() string
GetBlockHash returns the BlockHash field if non-nil, zero value otherwise.
func (o *Transaction) GetBlockHashOk() (*string, bool)
GetBlockHashOk returns a tuple with the BlockHash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetBlockHash(v string)
SetBlockHash sets BlockHash field to given value.
func (o *Transaction) GetTxHash() string
GetTxHash returns the TxHash field if non-nil, zero value otherwise.
func (o *Transaction) GetTxHashOk() (*string, bool)
GetTxHashOk returns a tuple with the TxHash field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetTxHash(v string)
SetTxHash sets TxHash field to given value.
func (o *Transaction) GetExplorerLink() string
GetExplorerLink returns the ExplorerLink field if non-nil, zero value otherwise.
func (o *Transaction) GetExplorerLinkOk() (*string, bool)
GetExplorerLinkOk returns a tuple with the ExplorerLink field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetExplorerLink(v string)
SetExplorerLink sets ExplorerLink field to given value.
func (o *Transaction) GetStatus() TransactionStatus
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *Transaction) GetStatusOk() (*TransactionStatus, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetStatus(v TransactionStatus)
SetStatus sets Status field to given value.
func (o *Transaction) GetTenderly() string
GetTenderly returns the Tenderly field if non-nil, zero value otherwise.
func (o *Transaction) GetTenderlyOk() (*string, bool)
GetTenderlyOk returns a tuple with the Tenderly field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetTenderly(v string)
SetTenderly sets Tenderly field to given value.
func (o *Transaction) HasTenderly() bool
HasTenderly returns a boolean if a field has been set.
func (o *Transaction) GetFromAccount() Account
GetFromAccount returns the FromAccount field if non-nil, zero value otherwise.
func (o *Transaction) GetFromAccountOk() (*Account, bool)
GetFromAccountOk returns a tuple with the FromAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetFromAccount(v Account)
SetFromAccount sets FromAccount field to given value.
func (o *Transaction) GetToAccount() Account
GetToAccount returns the ToAccount field if non-nil, zero value otherwise.
func (o *Transaction) GetToAccountOk() (*Account, bool)
GetToAccountOk returns a tuple with the ToAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetToAccount(v Account)
SetToAccount sets ToAccount field to given value.
func (o *Transaction) GetTokenAmount() TokenAmount
GetTokenAmount returns the TokenAmount field if non-nil, zero value otherwise.
func (o *Transaction) GetTokenAmountOk() (*TokenAmount, bool)
GetTokenAmountOk returns a tuple with the TokenAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetTokenAmount(v TokenAmount)
SetTokenAmount sets TokenAmount field to given value.
func (o *Transaction) GetGasDetails() GasDetails
GetGasDetails returns the GasDetails field if non-nil, zero value otherwise.
func (o *Transaction) GetGasDetailsOk() (*GasDetails, bool)
GetGasDetailsOk returns a tuple with the GasDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetGasDetails(v GasDetails)
SetGasDetails sets GasDetails field to given value.
func (o *Transaction) GetTransfers() []Transfer
GetTransfers returns the Transfers field if non-nil, zero value otherwise.
func (o *Transaction) GetTransfersOk() (*[]Transfer, bool)
GetTransfersOk returns a tuple with the Transfers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Transaction) SetTransfers(v []Transfer)
SetTransfers sets Transfers field to given value.