Documentation ¶
Index ¶
- type CallResult
- type Client
- func (c *Client) CallContext(ctx context.Context, result interface{}, method string, params interface{}) error
- func (c *Client) GetLatestLedger(ctx context.Context) (*LatestLedgerResponse, error)
- func (c *Client) SimulateTransaction(txnXdr string, resourceCfg *ResourceConfig) (*TxSimulationResult, error)
- type HTTPError
- type LatestLedgerResponse
- type ResourceConfig
- type RestorePreamble
- type TxSimulationResult
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) GetLatestLedger ¶
func (c *Client) GetLatestLedger(ctx context.Context) (*LatestLedgerResponse, error)
func (*Client) SimulateTransaction ¶
func (c *Client) SimulateTransaction(txnXdr string, resourceCfg *ResourceConfig) (*TxSimulationResult, error)
type LatestLedgerResponse ¶
type ResourceConfig ¶
type ResourceConfig struct {
InstructionLeeway uint64 `json:"instructionLeeway"`
}
type RestorePreamble ¶
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.