Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooManyRequests = fmt.Errorf("too many requests")
Functions ¶
This section is empty.
Types ¶
type AptosSDK ¶
type AptosSDK struct {
// contains filtered or unexported fields
}
AptosSDK is a client for the Aptos API.
func NewAptosSDK ¶
NewAptosSDK creates a new AptosSDK.
func (*AptosSDK) GetLatestBlock ¶
func (*AptosSDK) GetTransaction ¶
type GetBlockResult ¶
type GetBlockResult struct { BlockHeight string `json:"block_height"` BlockHash string `json:"block_hash"` BlockTimestamp string `json:"block_timestamp"` Transactions []Transaction `json:"transactions"` }
func (*GetBlockResult) GetBlockTime ¶
func (r *GetBlockResult) GetBlockTime() (*time.Time, error)
type GetLatestBlock ¶
type GetLatestBlock struct {
BlockHeight string `json:"block_height"`
}
type GetTransactionResult ¶
type GetTransactionResult struct { Version string `json:"version"` Hash string `json:"hash"` StateChangeHash string `json:"state_change_hash"` EventRootHash string `json:"event_root_hash"` StateCheckpointHash any `json:"state_checkpoint_hash"` GasUsed string `json:"gas_used"` Success bool `json:"success"` VMStatus string `json:"vm_status"` }
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.