Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeltaswapTerraTx ¶
type DeltaswapTerraTx struct { Type string `json:"type"` Value struct { Fee struct { Gas string `json:"gas"` Amount []struct { Denom string `json:"denom"` Amount string `json:"amount"` } `json:"amount"` } `json:"fee"` Msg []struct { Type string `json:"type"` Value struct { Coins []any `json:"coins"` Sender string `json:"sender"` Contract string `json:"contract"` ExecuteMsg struct { SubmitVaa struct { Data []byte `json:"data"` } `json:"submit_vaa"` } `json:"execute_msg"` } `json:"value"` } `json:"msg"` Memo string `json:"memo"` Signatures []struct { PubKey struct { Type string `json:"type"` Value string `json:"value"` } `json:"pub_key"` Signature string `json:"signature"` } `json:"signatures"` TimeoutHeight string `json:"timeout_height"` } `json:"value"` }
type DeltaswapTerraTxLog ¶
type LastBlockResponse ¶
type LastBlockResponse struct { Block struct { Header struct { Height string `json:"height"` } `json:"header"` } `json:"block"` }
type TerraSDK ¶
type TerraSDK struct {
// contains filtered or unexported fields
}
TerraSDK is a client for the Terra blockchain.
func NewTerraSDK ¶
NewTerraSDK creates a new TerraSDK.
func (*TerraSDK) GetLastBlock ¶
GetLastBlock returns the last block height.
func (*TerraSDK) GetTransactionsByBlockHeight ¶
func (t *TerraSDK) GetTransactionsByBlockHeight(ctx context.Context, height int64, offset *int) (*TxByBlockResponse, error)
GetTransactionsByBlockHeight returns the transactions for a given block height.
type TxByBlockResponse ¶
Click to show internal directories.
Click to hide internal directories.