GrpcExecutedTransactionResults
type GrpcExecutedTransactionResults
The results of a batch of transactions, in request order. Each item is either the transaction or the error the server reported for it.
Read items by position with `get`, or in order with `has_next` and `next`. An item's error does not end the iteration: `next` throws it and the following call moves on to the next item. Items can be read any number of times.
type GrpcExecutedTransactionResults struct {
// contains filtered or unexported fields
}
func LiftFromExternalGrpcExecutedTransactionResults
func LiftFromExternalGrpcExecutedTransactionResults(handle uint64) *GrpcExecutedTransactionResults
func (*GrpcExecutedTransactionResults) Destroy
func (object *GrpcExecutedTransactionResults) Destroy()
func (*GrpcExecutedTransactionResults) Get
func (_self *GrpcExecutedTransactionResults) Get(index uint64) (GrpcExecutedTransaction, error)
The item at `index`, or an error carrying the message the server reported for it. Errors if `index` is out of range.
func (*GrpcExecutedTransactionResults) HasNext
func (_self *GrpcExecutedTransactionResults) HasNext() bool
Whether `next` has an item left to return.
func (*GrpcExecutedTransactionResults) IsEmpty
func (_self *GrpcExecutedTransactionResults) IsEmpty() bool
Whether there are no items.
func (*GrpcExecutedTransactionResults) Len
func (_self *GrpcExecutedTransactionResults) Len() uint64
The number of items.
func (*GrpcExecutedTransactionResults) Next
func (_self *GrpcExecutedTransactionResults) Next() (GrpcExecutedTransaction, error)
The next item, or an error carrying the message the server reported for it. Errors once every item has been returned.
`has_next` followed by `next` is not atomic: when several threads share the results, `next` can error as exhausted after `has_next` returned `true`.