Skip to content

Files

Latest commit

e620fe5 · Feb 20, 2025

History

History
156 lines (83 loc) · 4.15 KB

TransactionRequest.md

File metadata and controls

156 lines (83 loc) · 4.15 KB

TransactionRequest

Properties

Name Type Description Notes
Data string Data for smart contract interactions.
To string The address of an account.
Value string The value of native token transfered in this transaction in hexadecimal wei.
From string The address of an account.
ChainID string The unique identifier of a blockchain in CAIP-2 notation.
GasLimit int32 The CAIP-2 identifier for a blockchain.

Methods

NewTransactionRequest

func NewTransactionRequest(data string, to string, value string, from string, chainID string, gasLimit int32, ) *TransactionRequest

NewTransactionRequest instantiates a new TransactionRequest 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

NewTransactionRequestWithDefaults

func NewTransactionRequestWithDefaults() *TransactionRequest

NewTransactionRequestWithDefaults instantiates a new TransactionRequest 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

GetData

func (o *TransactionRequest) GetData() string

GetData returns the Data field if non-nil, zero value otherwise.

GetDataOk

func (o *TransactionRequest) GetDataOk() (*string, bool)

GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetData

func (o *TransactionRequest) SetData(v string)

SetData sets Data field to given value.

GetTo

func (o *TransactionRequest) GetTo() string

GetTo returns the To field if non-nil, zero value otherwise.

GetToOk

func (o *TransactionRequest) GetToOk() (*string, bool)

GetToOk returns a tuple with the To field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTo

func (o *TransactionRequest) SetTo(v string)

SetTo sets To field to given value.

GetValue

func (o *TransactionRequest) GetValue() string

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

func (o *TransactionRequest) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetValue

func (o *TransactionRequest) SetValue(v string)

SetValue sets Value field to given value.

GetFrom

func (o *TransactionRequest) GetFrom() string

GetFrom returns the From field if non-nil, zero value otherwise.

GetFromOk

func (o *TransactionRequest) GetFromOk() (*string, bool)

GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFrom

func (o *TransactionRequest) SetFrom(v string)

SetFrom sets From field to given value.

GetChainID

func (o *TransactionRequest) GetChainID() string

GetChainID returns the ChainID field if non-nil, zero value otherwise.

GetChainIDOk

func (o *TransactionRequest) 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.

SetChainID

func (o *TransactionRequest) SetChainID(v string)

SetChainID sets ChainID field to given value.

GetGasLimit

func (o *TransactionRequest) GetGasLimit() int32

GetGasLimit returns the GasLimit field if non-nil, zero value otherwise.

GetGasLimitOk

func (o *TransactionRequest) GetGasLimitOk() (*int32, bool)

GetGasLimitOk returns a tuple with the GasLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetGasLimit

func (o *TransactionRequest) SetGasLimit(v int32)

SetGasLimit sets GasLimit field to given value.

[Back to Model list] [Back to API list] [Back to README]