Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions rpc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ type TransactionMeta struct {
ReturnData ReturnData `json:"returnData"`

ComputeUnitsConsumed *uint64 `json:"computeUnitsConsumed"`

// The cost the block cost model charged this transaction against the block
// limits. Nil when the RPC node does not report it.
CostUnits *uint64 `json:"costUnits"`
}

type ReturnData struct {
Expand Down Expand Up @@ -569,6 +573,10 @@ type ParsedTransactionMeta struct {
ReturnData ReturnData `json:"returnData"`

ComputeUnitsConsumed *uint64 `json:"computeUnitsConsumed"`

// The cost the block cost model charged this transaction against the block
// limits. Nil when the RPC node does not report it.
CostUnits *uint64 `json:"costUnits"`
}

type ParsedInnerInstruction struct {
Expand Down