diff --git a/multiepoch-getTransaction.go b/multiepoch-getTransaction.go index 74981ca..eeb7c7c 100644 --- a/multiepoch-getTransaction.go +++ b/multiepoch-getTransaction.go @@ -180,8 +180,7 @@ func (multi *MultiEpoch) handleGetTransaction(ctx context.Context, conn *request if err != nil { return nil, status.Errorf(codes.Internal, "Failed to get block: %v", err) } - blocktimeasUint64 := uint64(blocktime) - response.Blocktime = &blocktimeasUint64 + response.Blocktime = &blocktime } else { return &jsonrpc2.Error{ Code: jsonrpc2.CodeInternalError, diff --git a/storage.go b/storage.go index f706eb7..b8469ca 100644 --- a/storage.go +++ b/storage.go @@ -113,7 +113,7 @@ type GetBlockResponse struct { type GetTransactionResponse struct { // TODO: use same format as solana - Blocktime *uint64 `json:"blockTime,omitempty"` + Blocktime *int64 `json:"blockTime,omitempty"` Meta any `json:"meta"` Slot *uint64 `json:"slot,omitempty"` Transaction any `json:"transaction"`