Documentation ¶
Index ¶
- type CallResult
- type Client
- func (c *Client) CallContext(ctx context.Context, result interface{}, method string, params interface{}) error
- func (c *Client) GetEvents(ctx context.Context, eventFilter types.GetEventFilter) (*LedgerEventResponse, error)
- func (c *Client) GetLatestLedger(ctx context.Context) (*LatestLedgerResponse, error)
- func (c *Client) GetTransaction(ctx context.Context, txHash string) (*TransactionResponse, error)
- func (c *Client) SimulateTransaction(txnXdr string, resourceCfg *ResourceConfig) (*TxSimulationResult, error)
- func (c *Client) SubmitTransactionXDR(ctx context.Context, txXDR string) (*TransactionResponse, error)
- type HTTPError
- type LatestLedgerResponse
- type LedgerEventResponse
- type LedgerEvents
- type ResourceConfig
- type RestorePreamble
- type TransactionResponse
- type TxSimulationResult
- type TxnCreationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallResult ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CallContext ¶
func (*Client) GetEvents ¶ added in v1.9.2
func (c *Client) GetEvents(ctx context.Context, eventFilter types.GetEventFilter) (*LedgerEventResponse, error)
func (*Client) GetLatestLedger ¶
func (c *Client) GetLatestLedger(ctx context.Context) (*LatestLedgerResponse, error)
func (*Client) GetTransaction ¶ added in v1.9.2
func (*Client) SimulateTransaction ¶
func (c *Client) SimulateTransaction(txnXdr string, resourceCfg *ResourceConfig) (*TxSimulationResult, error)
func (*Client) SubmitTransactionXDR ¶ added in v1.9.2
type LatestLedgerResponse ¶
type LedgerEventResponse ¶ added in v1.9.2
type LedgerEventResponse struct { Events []LedgerEvents `json:"events"` LatestLedger uint64 `json:"latestLedger"` }
type LedgerEvents ¶ added in v1.9.2
type LedgerEvents struct { Type string `json:"type"` Ledger int64 `json:"ledger"` ContractID string `json:"contractId"` ID string `json:"id"` PagingToken string `json:"pagingToken"` Topic []string `json:"topic"` Value string `json:"value"` InSuccessfulContractCall bool `json:"inSuccessfulContractCall"` TxHash string `json:"txHash"` }
type ResourceConfig ¶
type ResourceConfig struct {
InstructionLeeway uint64 `json:"instructionLeeway"`
}
type RestorePreamble ¶
type TransactionResponse ¶ added in v1.9.2
type TransactionResponse struct { Status string `json:"status"` LatestLedger int64 `json:"latestLedger"` LatestLedgerCloseTime string `json:"latestLedgerCloseTime"` OldestLedger int64 `json:"oldestLedger"` OldestLedgerCloseTime string `json:"oldestLedgerCloseTime"` ApplicationOrder int64 `json:"applicationOrder"` EnvelopeXdr string `json:"envelopeXdr"` ResultXdr string `json:"resultXdr"` ResultMetaXdr string `json:"resultMetaXdr"` Ledger int64 `json:"ledger"` CreatedAt string `json:"createdAt"` Hash string }
type TxSimulationResult ¶
type TxSimulationResult struct { LatestLedger uint64 `json:"latestLedger"` Results []CallResult `json:"results"` MinResourceFee string `json:"minResourceFee"` // Recommended minimum resource fee to add when submitting the transaction. This fee is to be added on top of the Stellar network fee. TransactionDataXDR string `json:"transactionData"` // The recommended Soroban Transaction Data to use when submitting the simulated transaction. This data contains the refundable fee and resource usage information such as the ledger footprint and IO access data (serialized in a base64 string). RestorePreamble *RestorePreamble `json:"restorePreamble,omitempty"` }
Click to show internal directories.
Click to hide internal directories.